Skip to content

JavaScript error occurred in the Main Process - 2.9.0 #540

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

Closed
AlexanderPlaza opened this issue Sep 15, 2017 · 0 comments · Fixed by #546
Closed

JavaScript error occurred in the Main Process - 2.9.0 #540

AlexanderPlaza opened this issue Sep 15, 2017 · 0 comments · Fixed by #546

Comments

@AlexanderPlaza
Copy link

AlexanderPlaza commented Sep 15, 2017

My Setup

Operating System: Ubuntu 16.04.3 LTS - 4.10.0-33-generic
App Version: 2.9.0
Hardware: Lenovo T400
Display: 1080 X 800 (16:10)
Launcher Icon Size: 54

  • [ X] I have tested with the latest version
  • [ X] I can simulate the issue easily - Force it to break

Description

Error occurs when starting up Rocket.Chat within user profile.
When starting up the client in fullscreen and closing the client without resizing the window or unmaximizing will cause this issue to occur. You can sign in successfully and use the client until you close the client or restart the computer.

Once you have shut down the client and attempt to restart it, you will receive the following error.

A JavaScript error occurred in the main process Uncaught Exception: TypeError: Error processing argument at index 1, conversion failure from 7.5 at afterMainWindow (/opt/Rocket.Chat+/resources/app/asar/app/background.js:489:20) at App.<anonymous>(/opt/Rocket.Chat+/resources/app.asar/app/background.js:648:5) at emitTwo (events.js:111:20) at App.emit (events.js:194:7)

You need to mouse over to the top left hand corner and close the hidden window before being able to click OK on the error.

You can also manually reproduce if you edit the file located in ~/.config/Rocket.Chat+/window-state-main.json and in the "y" value enter any non-integer (example: 7.5, 15.5)

Workaround

To currently workaround, users need to edit this .json file, and remove any .x numbers and ensure all values are integers. (Example: 7.5 is turned into 7, 20.5 turned into 20)

Expected Behavior

  • Is there a way to force the client to not accidentally create this malformed .json file?
  • Can we edit it so it will allow decimals? (Like the cool kids on the number line)
@AlexanderPlaza AlexanderPlaza changed the title JacaScript JavaScript error occurred in the Main Process - 2.9.0 Sep 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant