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

AppImage does not work #746

Closed
atropy opened this issue Jul 28, 2020 · 25 comments
Closed

AppImage does not work #746

atropy opened this issue Jul 28, 2020 · 25 comments
Labels
bug This issue identifies a bug in Nuclear.

Comments

@atropy
Copy link

atropy commented Jul 28, 2020

I cant seem to get the AppImage working. Haven't been able to install the web app using the snap release. I attach the error log here.

-------------------- ERROR LOG ------------------
main › something fail during app bootstrap
main › TypeError: Cannot read property 'indexOf' of undefined
at Function.t.getFileName (/tmp/.mount_nuclead1er5L/resources/app.asar/dist/main.js:1931:112553)
at t (/tmp/.mount_nuclead1er5L/resources/app.asar/dist/main.js:1931:111703)
at Object../node_modules/abstract-socket/lib/abstract_socket.js (/tmp/.mount_nuclead1er5L/resources/app.asar/dist/main.js:1925:99612)
at n (/tmp/.mount_nuclead1er5L/resources/app.asar/dist/main.js:1:211)
at /tmp/.mount_nuclead1er5L/resources/app.asar/dist/main.js:1985:16185
at e.exports (/tmp/.mount_nuclead1er5L/resources/app.asar/dist/main.js:1985:16778)
at c (/tmp/.mount_nuclead1er5L/resources/app.asar/dist/main.js:1985:5395)
at Object.e.exports.sessionBus (/tmp/.mount_nuclead1er5L/resources/app.asar/dist/main.js:1985:5597)
at lt.p.init (/tmp/.mount_nuclead1er5L/resources/app.asar/dist/main.js:2187:46373)
at new p (/tmp/.mount_nuclead1er5L/resources/app.asar/dist/main.js:2187:46190)

System Information
Ubuntu 16.04
Linux kernel 4.4.0.31

@atropy atropy added the bug This issue identifies a bug in Nuclear. label Jul 28, 2020
@bbhtt
Copy link

bbhtt commented Aug 2, 2020

Can you run the program by extracting the appimage and chmod +x nuclear and ./nuclear?

@atropy
Copy link
Author

atropy commented Aug 2, 2020

@kortewegdevries Thats exactly how I ran the appimage.
I even tried using the .deb and the snap versions. They just dont seem to work.

I have even tried updating the nodejs and npm packages to their latest versions.

@bbhtt
Copy link

bbhtt commented Aug 2, 2020

Duplicate of this #611 (comment) Can't reproduce with deb or appimage on Ubuntu 20.04.

@fabianski7
Copy link

See gatsbyjs/gatsby#24559

@fabianski7
Copy link

fabianski7 commented Oct 3, 2020

I was having the same problem, but after installing the libvips I could start the nuclear. But now I get this:

Gtk-Message: 14:08:03.476: Failed to load module "appmenu-gtk-module"
      main › (node:35689) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      main › renderer › Cannot read property 'name' of undefined
      main › renderer › Cannot read property 'name' of undefined
      main › renderer › Cannot read property 'name' of undefined
      main › renderer › Cannot read property 'name' of undefined
      main › renderer › Cannot read property 'name' of undefined
      main › renderer › Cannot read property 'name' of undefined

The same after installing appmenu-gtk-module

      main › (node:38111) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      main › renderer › Cannot read property 'name' of undefined
      main › renderer › Cannot read property 'name' of undefined
      main › renderer › Cannot read property 'name' of undefined
      main › renderer › Cannot read property 'name' of undefined
      main › renderer › Cannot read property 'name' of undefined
      main › renderer › Cannot read property 'name' of undefined

Seems to be something with the file ~/.config/nuclear. after deleting it I can open the program

@nukeop
Copy link
Owner

nukeop commented Oct 21, 2020

I changed the problematic dependencies, can you try the new release? https://github.com/nukeop/nuclear/releases/tag/v0.6.6

@fabianski7
Copy link

I changed the problematic dependencies, can you try the new release? https://github.com/nukeop/nuclear/releases/tag/v0.6.6

yes, it's working fine now

@nukeop
Copy link
Owner

nukeop commented Oct 26, 2020

Great, thanks

@nukeop nukeop closed this as completed Oct 26, 2020
@chaosmonk1
Copy link

Similar errror with 0.6.11 on Debian 11.

      main › (node:2357) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      main › Something failed during app bootstrap
      main › TypeError: Cannot read property 'indexOf' of undefined
    at Function.t.getFileName (/opt/nuclear/resources/app.asar/dist/main.js:2256:115456)
    at t (/opt/nuclear/resources/app.asar/dist/main.js:2256:114606)
    at Object../node_modules/abstract-socket/lib/abstract_socket.js (/opt/nuclear/resources/app.asar/dist/main.js:2250:309396)
    at r (/opt/nuclear/resources/app.asar/dist/main.js:1:118)
    at /opt/nuclear/resources/app.asar/dist/main.js:2310:16707
    at e.exports (/opt/nuclear/resources/app.asar/dist/main.js:2310:17300)
    at c (/opt/nuclear/resources/app.asar/dist/main.js:2310:5923)
    at Object.e.exports.sessionBus (/opt/nuclear/resources/app.asar/dist/main.js:2310:6125)
    at fr.p.init (/opt/nuclear/resources/app.asar/dist/main.js:2717:44369)
    at new p (/opt/nuclear/resources/app.asar/dist/main.js:2717:44188)
    at new fr (/opt/nuclear/resources/app.asar/dist/main.js:2849:420279)
    at Object.t.resolveInstance (/opt/nuclear/resources/app.asar/dist/main.js:2679:35651)
    at /opt/nuclear/resources/app.asar/dist/main.js:2679:37852
    at Array.map (<anonymous>)
    at Object.t.resolveInstance (/opt/nuclear/resources/app.asar/dist/main.js:2679:35421)
    at /opt/nuclear/resources/app.asar/dist/main.js:2679:37852

I would really love a working release of this project. The last version that didn't immediately crash on startup for me was 0.5.1 back in 2019.

@nukeop
Copy link
Owner

nukeop commented Apr 7, 2021

Can you try deleting ~/.config/Electron/config.json?

@XutaxKamay
Copy link
Contributor

XutaxKamay commented Apr 7, 2021

I've tried this ^ and got the same issue. I suppose this is because it uses my current electron's system installed instead the one inside the AppImage?

I'll try to build the program for my own system to see if it changes anything.

EDIT:
Still same issue:

lerna notice cli v3.22.1
lerna info Executing command in 2 packages: "npm run start"
@nuclear/app: > @nuclear/[email protected] start /media/sda2/git/nuclear/packages/app
@nuclear/app: > webpack-dev-server --inline --env.NODE_ENV=development
@nuclear/main: > @nuclear/[email protected] start /media/sda2/git/nuclear/packages/main
@nuclear/main: > shx rm -rf build && webpack --env.NODE_ENV=development && electron build/main.js --inspect=9001
@nuclear/app: ℹ 「wds」: Project is running at http://localhost:8080/
@nuclear/app: ℹ 「wds」: webpack output is served from /
@nuclear/app: ℹ 「wds」: Content not from webpack is served from /
@nuclear/app: ℹ 「wdm」: wait until bundle finished: /
@nuclear/app: ℹ 「wdm」: Compiled with warnings.
@nuclear/main: Debugger listening on ws://127.0.0.1:9001/7ca0b864-dc54-4ff3-9595-98a00b0fcbad
@nuclear/main: For help, see: https://nodejs.org/en/docs/inspector
@nuclear/main:       main › (node:9941) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
@nuclear/main:       main › development Env variables loaded
@nuclear/main:       main › Initialized settings store at /home/kamay/.config/Electron/config.json
@nuclear/main:       main › Thumbnails cache directory created
@nuclear/main:       main › something fails while trying to install devtools
@nuclear/main:       main › Sqlite database created at /home/kamay/.config/Electron/nuclear-local-db.sqlite
@nuclear/main:       main › Something failed during app bootstrap
@nuclear/main:       main › TypeError: Cannot read property 'indexOf' of undefined
@nuclear/main:     at Function.getFileName (webpack:///./node_modules/bindings/bindings.js?:178:16)
@nuclear/main:     at bindings (webpack:///./node_modules/bindings/bindings.js?:82:48)
@nuclear/main:     at eval (webpack:///./node_modules/abstract-socket/lib/abstract_socket.js?:4:91)
@nuclear/main:     at Object../node_modules/abstract-socket/lib/abstract_socket.js (/media/sda2/git/nuclear/packages/main/build/main.js:29946:1)
@nuclear/main:     at __webpack_require__ (/media/sda2/git/nuclear/packages/main/build/main.js:26:30)
@nuclear/main:     at createStream (webpack:///./node_modules/dbus-next/lib/connection.js?:39:23)
@nuclear/main:     at createConnection (webpack:///./node_modules/dbus-next/lib/connection.js?:73:31)
@nuclear/main:     at createClient (webpack:///./node_modules/dbus-next/index.js?:9:20)
@nuclear/main:     at Object.module.exports.sessionBus (webpack:///./node_modules/dbus-next/index.js?:40:10)
@nuclear/main:     at LinuxMediaService.Player.init (webpack:///./node_modules/mpris-service/dist/index.js?:192:20)
@nuclear/main:     at new Player (webpack:///./node_modules/mpris-service/dist/index.js?:184:8)
@nuclear/main:     at new LinuxMediaService (webpack:///./src/services/@linux/system-api.ts?:62:9)
@nuclear/main:     at _createInstance (webpack:///./node_modules/inversify/lib/resolution/instantiation.js?:21:12)
@nuclear/main:     at Object.resolveInstance (webpack:///./node_modules/inversify/lib/resolution/instantiation.js?:41:18)
@nuclear/main:     at eval (webpack:///./node_modules/inversify/lib/resolution/resolver.js?:72:42)
@nuclear/main:     at Array.map (<anonymous>)

@chaosmonk1
Copy link

Can you try deleting ~/.config/Electron/config.json?

That file doesn't exist.

@GutsyHeart
Copy link

Gentoo

./nuclear-0.6.11.AppImage
      main › (node:22219) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      main › Something failed during app bootstrap
      main › TypeError: Cannot read property 'indexOf' of undefined
    at Function.t.getFileName (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2256:115456)
    at t (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2256:114606)
    at Object../node_modules/abstract-socket/lib/abstract_socket.js (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2250:309396)
    at r (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:1:118)
    at /tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2310:16707
    at e.exports (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2310:17300)
    at c (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2310:5923)
    at Object.e.exports.sessionBus (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2310:6125)
    at fr.p.init (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2717:44369)
    at new p (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2717:44188)
    at new fr (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2849:420279)
    at Object.t.resolveInstance (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2679:35651)
    at /tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2679:37852
    at Array.map (<anonymous>)
    at Object.t.resolveInstance (/tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2679:35421)
    at /tmp/.mount_nuclearyD3si/resources/app.asar/dist/main.js:2679:37852

@nukeop nukeop reopened this Apr 8, 2021
@nukeop
Copy link
Owner

nukeop commented Apr 8, 2021

Debugging this now

@nukeop
Copy link
Owner

nukeop commented Apr 9, 2021

90% sure this happens when dbus daemon is not running.

@XutaxKamay
Copy link
Contributor

XutaxKamay commented Apr 9, 2021

dbus daemon seems to be running fine, so I don't think it's the problem, I'm also using Gentoo.

EDIT:

      main › Something failed during app bootstrap
      main › TypeError: Cannot read property 'indexOf' of undefined
    at Function.t.getFileName (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2256:115456)
    at t (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2256:114606)
    at Object../node_modules/abstract-socket/lib/abstract_socket.js (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2250:309396)
    at r (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:1:118)
    at /tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2310:16707
    at e.exports (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2310:17300)
    at c (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2310:5923)
    at Object.e.exports.sessionBus (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2310:6125)
    at fr.p.init (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2717:44369)
    at new p (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2717:44188)
    at new fr (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2849:420279)
    at Object.t.resolveInstance (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2679:35651)
    at /tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2679:37852
    at Array.map (<anonymous>)
    at Object.t.resolveInstance (/tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2679:35421)
    at /tmp/.mount_nucleaXr7JgR/resources/app.asar/dist/main.js:2679:37852

well I'm not much into web dev, but if there anything I can provide to debug this, tell me.

Here is a maybe a list of related issue(s):

nklayman/vue-cli-plugin-electron-builder#1069
TooTallNate/node-bindings#72

There's also the fact I'm using openrc with elogind, which has changed quite few things for non-root xorg sessions and dbus daemon connection, maybe that's related aswell. But yeah dbus seems to work fine for me.

@nukeop
Copy link
Owner

nukeop commented Apr 9, 2021

Since this seems to be happening mainly on Gentoo, I'll try reproducing it on a VM. I think this might be a bug within the library we're using to handle mpris.

@chaosmonk1
Copy link

chaosmonk1 commented Apr 9, 2021 via email

@nukeop
Copy link
Owner

nukeop commented Apr 10, 2021

@XutaxKamay Could you try this branch and tell me if this problem is fixed? https://github.com/nukeop/nuclear/tree/fix/746

@XutaxKamay
Copy link
Contributor

XutaxKamay commented Apr 10, 2021

@XutaxKamay Could you try this branch and tell me if this problem is fixed? https://github.com/nukeop/nuclear/tree/fix/746

Sure,

npm install & npm start?

EDIT:

Screenshot_20210410_025351

Seems to work, but I'm getting still some errors as you can see..

Watching the fix you did, I see that you added a catch for any exceptions that could occur, something is wrong with the inter process communication api from what I understand, but I've no idea what "abs" stands for.

The nuclear icon is also black on my panel I suppose this has to do with xdg-mime failing somehow.

@nukeop
Copy link
Owner

nukeop commented Apr 10, 2021

abs.connect is from AbstractSocket, as seen here: https://github.com/saghul/node-abstractsocket/blob/b2c915ffb80ebfcc39fe9b87e92305523568b935/README.md

For now, I'm just logging errors and carrying on the init if any service fails to initialize. This allows the program to continue with degraded functionality. I was told that this abstract socket library might not be bundled correctly, causing this problem.

@XutaxKamay
Copy link
Contributor

abs.connect is from AbstractSocket, as seen here: https://github.com/saghul/node-abstractsocket/blob/b2c915ffb80ebfcc39fe9b87e92305523568b935/README.md

For now, I'm just logging errors and carrying on the init if any service fails to initialize. This allows the program to continue with degraded functionality. I was told that this abstract socket library might not be bundled correctly, causing this problem.

Oh okay I see. Though the library doesn't seem very updated as well, but that might be not an issue.
And yeah it's okay, thank you for taking time to fix it.

@nukeop nukeop closed this as completed in 01bd256 May 11, 2021
nukeop added a commit that referenced this issue May 11, 2021
@chaosmonk1
Copy link

If this is fixed now, can you please make a new release?

@nukeop
Copy link
Owner

nukeop commented May 11, 2021

Sure, I'll make one in the coming days.

@C-Entropy
Copy link

Similar errror with 0.6.13 on Gentoo.

./nuclear-0.6.13.AppImage
      main › (node:30672) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `nuclear --trace-deprecation ...` to show where the warning was created)
      main › Something failed during app bootstrap
      main › TypeError: Cannot read property 'indexOf' of undefined
    at Function.t.getFileName (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:7:365763)
    at t (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:7:364913)
    at Object.../../node_modules/abstract-socket/lib/abstract_socket.js (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:1:98823)
    at r (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:1:118)
    at /tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:61:42683
    at e.exports (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:61:43284)
    at d (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:61:31791)
    at Object.e.exports.sessionBus (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:61:31993)
    at ir.p.init (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:478:15614)
    at new p (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:478:15433)
    at new ir (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:2935:173712)
    at Object.t.resolveInstance (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:432:39989)
    at /tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:432:42226
    at Array.map (<anonymous>)
    at Object.t.resolveInstance (/tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:432:39759)
    at /tmp/.mount_nucleabhjGu6/resources/app.asar/dist/main.js:432:42226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue identifies a bug in Nuclear.
Projects
None yet
Development

No branches or pull requests

8 participants