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

"A Javascript error occurred in the main process" On Gui open #1423

Closed
tuyuribr opened this issue Jan 19, 2024 · 11 comments
Closed

"A Javascript error occurred in the main process" On Gui open #1423

tuyuribr opened this issue Jan 19, 2024 · 11 comments
Labels
bug TYPE: a report on something that isn't working

Comments

@tuyuribr
Copy link

What happened:
When openning the GUI. it gives this error:

err

Debug Information:

debug info.txt

No relevant logs were found

@tuyuribr tuyuribr added the bug TYPE: a report on something that isn't working label Jan 19, 2024
Copy link

Greetings and welcome to our community! As this is the first issue you opened here, we wanted to share some useful infos with you:

  • 🗣️ Our community on Discord is super helpful and active. We also have an AI-enabled support bot that knows Portmaster well and can give you immediate help.
  • 📖 The Wiki answers all common questions and has many important details. If you can't find an answer there, let us know, so we can add anything that's missing.

@IamVendetta
Copy link

I Have the EXACT Same ERROR Happening Right now.

@tuyuribr
Copy link
Author

Still active in Windows 10 Enterprise and v1-6-5

@tuyuribr
Copy link
Author

I found a "hack" to stop the error message.

First install 7-zip and the ASAR extension ( I'm using this one: https://www.tc4shell.com/en/7zip/asar/ )
Then unpack the C:\ProgramData\Safing\Portmaster\updates\windows_amd64\app\portmaster-app_v0-2-8\resources\app.asar
Edit the index.js, put this process.on('uncaughtException', function (err) {}) before the var electron_1 = require("electron"); line.
I put in line 38 rn.

Make a backup of app.asar, delete app.asar then zip again the folder in asar.

Or if you trust a lot in other people ( I doubt since you are using this program ), you can use my app.asar :
app.zip

Run portmaster.

Copy link

This issue has been automatically marked as inactive because it has not had activity in the past two months.

If no further activity occurs, this issue will be automatically closed in one week in order to increase our focus on active topics.

@github-actions github-actions bot added the stale ATTRIBUTE: this issue has not had recent activity label May 20, 2024
@tuyuribr
Copy link
Author

Only gives error in Windows enterprise

@IamVendetta
Copy link

IamVendetta commented May 21, 2024 via email

@github-actions github-actions bot removed the stale ATTRIBUTE: this issue has not had recent activity label May 21, 2024
@Raphty
Copy link
Member

Raphty commented Jun 15, 2024

the issue is does not impact Portmasters operation. It appears for some people when they pin Portmaster to their taskbar and open it through that.

We are fixing this in the new UI back-end.

In the meantime you can either ignore the error message, or open Portmaster via the start menu or the tray icon.

If someone wants to help fix this in the electron version of Portmaster you are welcome to contribute, let me know in that case I can reopen the issue as well.

@Raphty Raphty closed this as completed Jun 15, 2024
@TurtleIs
Copy link

TurtleIs commented Jul 9, 2024

I've been getting tis error, and is preventing any farther progress
awakened trade

what can I do to fix this?

@Raphty
Copy link
Member

Raphty commented Jul 9, 2024

click ok and it should go away

it only happens when you open portmaster from an on the taskbar pinned icon
you can just open it from the start menu, we are fixing this with the new UI engine

@TurtleIs
Copy link

TurtleIs commented Jul 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TYPE: a report on something that isn't working
Projects
None yet
Development

No branches or pull requests

4 participants