Commit 944e4f25f5
Unsigned
Layout: unified · split
README.md +20
| @@ -219,6 +219,26 @@ The plugin keeps Matrix state and encryption data in | |||
| 219 | If the cache grows or causes too much disk I/O, disconnect WeeChat and remove | 219 | If the cache grows or causes too much disk I/O, disconnect WeeChat and remove |
| 220 | only the `-cache` directory. Do not remove the main server directory unless you | 220 | only the `-cache` directory. Do not remove the main server directory unless you |
| 221 | want to reset stored Matrix state. | 221 | want to reset stored Matrix state. |
| 222 | |||
| 223 | # Troubleshooting | ||
| 224 | |||
| 225 | If startup or login fails with a Matrix SDK state-store decode error, first make | ||
| 226 | sure the plugin was built from current sources and try starting WeeChat again so | ||
| 227 | SDK migrations can run. If the same error still stops login, disconnect WeeChat | ||
| 228 | and move `$WEECHAT_HOME/matrix-rust/<server>/` aside before reconnecting. This | ||
| 229 | resets the stored Matrix state for that server, including encryption/session | ||
| 230 | data, so keep the old directory until the new login is verified. | ||
| 231 | |||
| 232 | For crashes, aborts, or a blocked WeeChat UI during startup or `/quit`, collect | ||
| 233 | a full thread backtrace from another shell while the process is still stopped or | ||
| 234 | blocked: | ||
| 235 | |||
| 236 | gdb -p $(pidof weechat) -batch -ex 'thread apply all bt' | ||
| 237 | |||
| 238 | A short `bt` from the crashing thread is often not enough to tell whether the | ||
| 239 | Matrix plugin, WeeChat itself, another plugin, or shutdown cleanup owns the | ||
| 240 | block. | ||
| 241 | |||
| 222 | Nick prefix colors for Matrix power levels can be changed with: | 242 | Nick prefix colors for Matrix power levels can be changed with: |
| 223 | 243 | ||
| 224 | /set matrix-rust.color.nick_prefix_admin lightgreen | 244 | /set matrix-rust.color.nick_prefix_admin lightgreen |