Ubuntu にインストールした Rocket.Chat のデスクトップクライアントアプリが、ある時から急にアプリを起動しても何もウィンドウが表示されなくなってしまいました。
試しにコマンドラインから起動してみたところ、以下のようなエラーが表示されていました。
$ rocketchat-desktop
(node:8749) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at ElectronStore.Conf._deserialize (/opt/Rocket.Chat/resources/app.asar/node_modules/conf/dist/source/index.js:67:43)
at ElectronStore.get store [as store] (/opt/Rocket.Chat/resources/app.asar/node_modules/conf/dist/source/index.js:278:43)
at new Conf (/opt/Rocket.Chat/resources/app.asar/node_modules/conf/dist/source/index.js:131:32)
at new ElectronStore (/opt/Rocket.Chat/resources/app.asar/node_modules/electron-store/index.js:69:3)
at getElectronStore (/opt/Rocket.Chat/resources/app.asar/app/main.js:1311:25)
at getPersistedValues (/opt/Rocket.Chat/resources/app.asar/app/main.js:1324:34)
at /opt/Rocket.Chat/resources/app.asar/app/main.js:1363:33
at Generator.next (<anonymous>)
at /opt/Rocket.Chat/resources/app.asar/node_modules/tslib/tslib.js:117:75
(Use `rocketchat-desktop --trace-warnings ...` to show where the warning was created)
(node:8749) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
原因はよくわかりませんが、設定ファイルを全削除することで起動するようになりました。
$ rm -rf ~/.config/Rocket.Chat