Toinane / colorpicker

A mininal but complete colorpicker desktop app
https://colorpicker.fr
GNU General Public License v3.0
1.6k stars 120 forks source link

Unable to launch #41

Closed Elias-Graf closed 5 years ago

Elias-Graf commented 5 years ago

Today I wanted to launch the colorpicker and was greeted by this error:

Uncaught Exception: TypeError: Error processing argument at index 1, conversion failure from Error: Invalid data: at Object.showErrorBox (/Applications/Colorpicker.app/Contents/Resources/electron.asar/browser/api/dialog.js:283:20) at electronStorage.get (/Applications/Colorpicker.app/Contents/Resources/app.asar/src/storage.js:33:16) at /Applications/Colorpicker.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:473:16 at next (/Applications/Colorpicker.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:5315:29) at /Applications/Colorpicker.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:958:16 at /Applications/Colorpicker.app/Contents/Resources/app.asar/node_modules/electron-json-storage/lib/storage.js:150:16 at nextTask (/Applications/Colorpicker.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:5310:14) at next (/Applications/Colorpicker.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:5317:9) at /Applications/Colorpicker.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:958:16 at /Applications/Colorpicker.app/Contents/Resources/app.asar/node_modules/electron-json-storage/lib/storage.js:135:18

I tried downloading a fresh version but that didn't change anything.

In hope the issue is not to bad and it's not an error on my side

Elias :)

Toinane commented 5 years ago

Hey @Elias-Graf! Thanks for your issues. I'm sorry to say it's an error from your side. The storage file is corrupted, you have to delete it..

To found the file colorpicker.json, you have to go :

Delete it and relaunch the app, it will work again πŸ˜„

Toinane commented 5 years ago

I will add a solution to delete this corrupted file directly from the app in future update

Elias-Graf commented 5 years ago

May I ask how the file got corrupted? Or why?

Elias-Graf commented 5 years ago

Mhh... I'm sorry to say but the path '/Library/Application Support/colorpicker/storage/' Does not seem to exist on my system.

Toinane commented 5 years ago

don't miss ~ before /Library -> ~/Library/... πŸ‘ Before delete this file, can you copy the content here? It will be allow me to understand why this file being corrupted

Elias-Graf commented 5 years ago

Oh, gee... I forgot I'm on mac I'm so sorry... used to windows... well the file is empty as far as I'm concerned.

Elias-Graf commented 5 years ago

Hm yeah.. renamed it, started the picker and it generated a new file... sorry to bother... people like me shouldn't call themselves programer ':D

Toinane commented 5 years ago

Oh, gee... I forgot I'm on mac I'm so sorry... used to windows... well the file is empty as far as I'm concerned.

Oh okey, really strange.. I suppose Colorpicker don't like an empty file. I will prevent this type of bug in future πŸ˜„

Toinane commented 5 years ago

Ahah no worries! This bug shouldn't happen anyway.

s73b4n commented 5 years ago

Just to indicate the correct path to windows users:

C:\Users\AppData\Roaming\Colorpicker\storage

And delete colorpicker.json

Toinane commented 5 years ago

Just to indicate the correct path to windows users:

C:\Users\AppData\Roaming\Colorpicker\storage

And delete colorpicker.json

Thank you! I've updated my post with the good path πŸ‘