Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug 🐞]: Unexpected end of JSON input on startup #33

Closed
leonbohn opened this issue May 17, 2022 · 4 comments · Fixed by #40
Closed

[Bug 🐞]: Unexpected end of JSON input on startup #33

leonbohn opened this issue May 17, 2022 · 4 comments · Fixed by #40
Assignees
Labels
bug🐛 Something isn't working

Comments

@leonbohn
Copy link

Unexpected end of JSON input on startup 🐞

Describe the bug
When attempting to launch the app, I get a JavaScript error and the process terminates.

Reproduction Steps
Just starting the app is enough to cause the crash, there is nothing I can do to prevent it.

Expected Behavior
I would like it if the app started as it did just a few days ago and I suspect starting up correctly would be the desired behaviour 😀

Technical Info (please complete the following information)

  • OS: Arch Linux (full update just a few moments ago)
  • Kuro Version: 8.1.0

Additional context
I have tried to reinstall kuro and to delete the configuration files under ~/.config, both did nothing to help the problem. Whether I start from Gnome or directly through the terminal does not matter, the following error message is displayed:

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at Config.get _local [as _local] (/opt/Kuro/resources/app.asar/src/config.js:15:19)
at Config._ensureLocalConfig (/opt/Kuro/resources/app.asar/src/config.js:47:64)
at Config.get configuration [as configuration] (/opt/Kuro/resources/app.asar/src/config.js:22:10)
at Config.get shortcutKeys [as shortcutKeys] (/opt/Kuro/resources/app.asar/src/config.js:27:17)
at Object. (/opt/Kuro/resources/app.asar/src/keymap.js:3:9)
at Module._compile (internal/modules/cjs/loader.js:1152:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
at Module.load (internal/modules/cjs/loader.js:992:32)
at Module._load (internal/modules/cjs/loader.js:885:14)
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot convert undefined or null to object
at Function.keys ()
at Config._updateConfig (/opt/Kuro/resources/app.asar/src/config.js:33:12)
at Config._ensureLocalConfig (/opt/Kuro/resources/app.asar/src/config.js:47:45)
at Config.get configuration [as configuration] (/opt/Kuro/resources/app.asar/src/config.js:22:10)
at Config.get shortcutKeys [as shortcutKeys] (/opt/Kuro/resources/app.asar/src/config.js:27:17)
at Object. (/opt/Kuro/resources/app.asar/src/keymap.js:3:9)
at Module._compile (internal/modules/cjs/loader.js:1152:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
at Module.load (internal/modules/cjs/loader.js:992:32)
at Module._load (internal/modules/cjs/loader.js:885:14)


cc:
@davidsmorais

@davidsmorais davidsmorais self-assigned this May 17, 2022
@davidsmorais davidsmorais added the bug🐛 Something isn't working label May 17, 2022
@davidsmorais
Copy link
Owner

davidsmorais commented Jun 20, 2022

Hello @leonbohn , do you have any custom shortcuts enabled ?

EDIT:
Please download Kuro's latest version and let me know if the issue persists 💪

If it does, deleting your ~/.config/Kuro folder may help. Please give it a try and report your findings

@davidsmorais davidsmorais linked a pull request Jun 21, 2022 that will close this issue
@davidsmorais davidsmorais reopened this Jun 21, 2022
@alvarovm
Copy link

alvarovm commented Jun 21, 2022

Hi.
Here, Ubuntu 20.04 ,Kuro 8.1.1 from amd64.deb
I deleted ~/.config/Kuro and I still get an error as the follow:

A JavaScript error occurred in the main process
Uncaught Exception:
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Conf._deserialize (/opt/Kuro/resources/app.asar/node_modules/conf/dist/source/index.js:67:43)
    at get store [as store] (/opt/Kuro/resources/app.asar/node_modules/conf/dist/source/index.js:278:43)
    at ElectronStore._get (/opt/Kuro/resources/app.asar/node_modules/conf/dist/source/index.js:465:33)
    at ElectronStore.get (/opt/Kuro/resources/app.asar/node_modules/conf/dist/source/index.js:155:25)
    at Object.<anonymous> (/opt/Kuro/resources/app.asar/src/settings.js:10:22)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)

@davidsmorais
Copy link
Owner

Hey @alvarovm 👋

Can you try with version 8.1.3 please ?

@alvarovm
Copy link

Fixed! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants