Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

JavaScript Error in OSX app 10.12 Sierra #130

Closed
nickooolas opened this issue Dec 8, 2016 · 9 comments
Closed

JavaScript Error in OSX app 10.12 Sierra #130

nickooolas opened this issue Dec 8, 2016 · 9 comments

Comments

@nickooolas
Copy link

nickooolas commented Dec 8, 2016

Hey there,

Getting this error when trying to load up SoundCleod

A JavaScript error occurred in the main process

TypeError: Error processing argument at index 0, conversion failure from #<Object>
    at TypeError (native)
    at validateState (/Applications/SoundCleod.app/Contents/Resources/app.asar/node_modules/electron-window-state/index.js:46:34)
    at module.exports (/Applications/SoundCleod.app/Contents/Resources/app.asar/node_modules/electron-window-state/index.js:154:3)
    at App.<anonymous> (/Applications/SoundCleod.app/Contents/Resources/app.asar/main.js:67:27)
    at emitTwo (events.js:111:20)
    at App.emit (events.js:191:7)

Could there be any environment things affecting it's operation?

If you need any more information, state, logs, let me know what you need and I'll get it.

Cheers,

Nick

@nickooolas
Copy link
Author

Should have done so before, but a fresh install fixed the problem, don't know if this is specific to my env's?

Will leave it open for you to close if it's worthwhile for reference.

@salomvary
Copy link
Owner

Thanks, have not seen this before. Do you happen to know what version you had before the fresh install?

@nickooolas
Copy link
Author

It was 1.1.6. Not sure what happened before it started stuffing up, but can confirm the fresh install fixed it 👌

@nickooolas
Copy link
Author

nickooolas commented Dec 18, 2016

Getting this one again when opening SoundCleod. Any info I can provide to help out? @salomvary

TypeError: Error processing argument at index 0, conversion failure from #<Object>
    at TypeError (native)
    at validateState (/Applications/SoundCleod.app/Contents/Resources/app.asar/node_modules/electron-window-state/index.js:46:34)
    at module.exports (/Applications/SoundCleod.app/Contents/Resources/app.asar/node_modules/electron-window-state/index.js:154:3)
    at App.<anonymous> (/Applications/SoundCleod.app/Contents/Resources/app.asar/main.js:67:27)
    at emitTwo (events.js:111:20)
    at App.emit (events.js:191:7)```

@salomvary
Copy link
Owner

@nickooolas looks like it has to do something with the module that does the remembering of the window position and size but I still have little ideas what might be it. Do you use a macBook with external screen or some other multi-screen setup?

When SoundCleod does this again, can you try sharing the contents of the following file: ~/Library/Application Support/SoundCleod/window-state.json (Open Finder, shift+cmd+g, paste ~/Library/Application Support/SoundCleod)

@nickooolas
Copy link
Author

nickooolas commented Dec 22, 2016

Hey, I do indeed, I often switch between (two external, clamshell mode for MBP) at work, and then at home normally on it's own (internal screen, or one other Thunderbolt Display).

Here's window-state.json:

{"width":1024,"height":640,"x":null,"y":178,"isMaximized":true,"isFullScreen":false,"displayBounds":{"x":0,"y":0,"width":1440,"height":900}}

@salomvary
Copy link
Owner

salomvary commented Dec 22, 2016 via email

@nickooolas
Copy link
Author

Nice one, thanks @salomvary)

@salomvary
Copy link
Owner

Just released the fix in 1.1.7. \o/ Thanks for the patience, let me know if it still crashes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants