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

App does not start at all - Error processing argument at index 1 #57

Closed
jsgoupil opened this issue Dec 6, 2019 · 3 comments
Closed

Comments

@jsgoupil
Copy link

jsgoupil commented Dec 6, 2019

When trying to start the app, I get an error. I also have uninstalled it and re-installed it.
I have 2 monitors, they have different DPI. I remember the app was not liking that much when it came to use the pipet.

[Window Title]
Error

[Main Instruction]
A JavaScript error occurred in the main process

[Content]
Uncaught Exception:
TypeError: Error processing argument at index 1, conversion failure from Error: Invalid data: 
    at Object.showErrorBox (C:\Users\asus\AppData\Local\Programs\Colorpicker\resources\electron.asar\browser\api\dialog.js:283:20)
    at electronStorage.get (C:\Users\asus\AppData\Local\Programs\Colorpicker\resources\app.asar\src\storage.js:33:16)
    at C:\Users\asus\AppData\Local\Programs\Colorpicker\resources\app.asar\node_modules\async\dist\async.js:473:16
    at next (C:\Users\asus\AppData\Local\Programs\Colorpicker\resources\app.asar\node_modules\async\dist\async.js:5315:29)
    at C:\Users\asus\AppData\Local\Programs\Colorpicker\resources\app.asar\node_modules\async\dist\async.js:958:16
    at C:\Users\asus\AppData\Local\Programs\Colorpicker\resources\app.asar\node_modules\electron-json-storage\lib\storage.js:150:16
    at nextTask (C:\Users\asus\AppData\Local\Programs\Colorpicker\resources\app.asar\node_modules\async\dist\async.js:5310:14)
    at next (C:\Users\asus\AppData\Local\Programs\Colorpicker\resources\app.asar\node_modules\async\dist\async.js:5317:9)
    at C:\Users\asus\AppData\Local\Programs\Colorpicker\resources\app.asar\node_modules\async\dist\async.js:958:16
    at C:\Users\asus\AppData\Local\Programs\Colorpicker\resources\app.asar\node_modules\electron-json-storage\lib\storage.js:135:18

[OK]
@jsgoupil
Copy link
Author

jsgoupil commented Dec 6, 2019

I did some digging, the file here:
"C:\Users\asus\AppData\Roaming\Colorpicker\storage\colorpicker.json"
was fully empty.
I deleted the storage folder and it started to work again.

You might have 2 problems to fix with this bug.

  1. You apparently can't pass "err" to the dialog
  2. Fallback better when this problem happens on startup, otherwise I am stuck forever and could not start the software.

@Toinane Toinane self-assigned this Dec 11, 2019
@Toinane Toinane added the Bug label Dec 11, 2019
@Toinane
Copy link
Owner

Toinane commented Dec 11, 2019

Hey ! Sorry for the late response, yeah I know this issue, it was fixed for the next big update, I just don't have so much time for the moment to continue this update but it will be cool to fix this as soon as possible!

@Toinane
Copy link
Owner

Toinane commented May 14, 2024

should now fixed in https://github.com/Toinane/colorpicker/releases/tag/2.2.1
Feel free to reopen if needed!

@Toinane Toinane closed this as completed May 14, 2024
Colorpicker 3.0.0 automation moved this from TO DO to DONE May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants