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

Hakuneko crashes and doesn't open on Ubuntu 22.04 LTS #5792

Open
picklepopper1 opened this issue May 12, 2023 · 12 comments
Open

Hakuneko crashes and doesn't open on Ubuntu 22.04 LTS #5792

picklepopper1 opened this issue May 12, 2023 · 12 comments

Comments

@picklepopper1
Copy link

This is using the .deb nightly. Here is what terminal outputs:

buntu@ubuntu-desktop:~$ hakuneko-desktop -u

Usage:
/usr/lib/hakuneko-desktop/hakuneko [OPTIONS]

Options:
-u, --update-url= URL to be checked for web-application updates
Default: "http://manga-download.github.io/hakuneko/{version}/latest"
--startup-url= URL to the entrypoint of the web-application
Default: "hakuneko://cache/index.html"
-c, --cache-directory=

Directory where the web-application is stored
Default: system's default
--user-directory= Directory where user settings are stored
Default: system's default


Framework Info

Electron : 8.3.4
Chrome : 80.0.3987.165
Node : 12.13.0


Configuration

Update URL : https://manga-download.github.io/hakuneko/master/latest
Connector Protocol : connector
Application Protocol : hakuneko
Startup URL : hakuneko://cache/index.html
AppCache Directory : /home/ubuntu/.cache/hakuneko-desktop
UserData Directory : /home/ubuntu/.config/hakuneko-desktop

(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false". It will change to be "true" in Electron 9. For more information please check electron/electron#18397
[49969:0512/161356.062060:FATAL:gpu_data_manager_impl_private.cc(1034)] The display compositor is frequently crashing. Goodbye.
Trace/breakpoint trap (core dumped)

@Sheepux
Copy link
Contributor

Sheepux commented May 12, 2023

try to start it with --disable-gpu or --no-sandbox

@qunYp3dZSyLjoEoEg
Copy link

Do you maybe know how I could enable the --no-sandbox option by default when simply starting it from my desktop? I can set up an alias to do that and then disown the process so that I don't have to have the console-window I started it from open, but I still wondered.

@Sheepux
Copy link
Contributor

Sheepux commented Jun 16, 2023

app.disableHardwareAcceleration() isn't currently included in the app
Try to update your graphical drivers, they're most probably the culprit

@qunYp3dZSyLjoEoEg
Copy link

It doesn't work if I only use the --disable-gpu option, it's only working with --no-sandbox, and then I don't need to disable my gpu. Though I do get the same error, my exact cmd-output is: (included at the end of the message). And I should definitely have updated gpu-drivers, I use arch btw (well garuda to be exact but arch usually has up-to-date packages so that should be fine). Also, could you point me to some resource where I could understand/learn what --no-sandbox does?

[
Usage:
/usr/lib/hakuneko-desktop/hakuneko [OPTIONS]

Options:
-u, --update-url= URL to be checked for web-application updates
Default: "http://manga-download.github.io/hakuneko/{version}/latest"
--startup-url= URL to the entrypoint of the web-application
Default: "hakuneko://cache/index.html"
-c, --cache-directory=

Directory where the web-application is stored
Default: system's default
--user-directory= Directory where user settings are stored
Default: system's default


Framework Info

Electron : 6.1.7
Chrome : 76.0.3809.146
Node : 12.4.0


Configuration

Update URL : https://manga-download.github.io/hakuneko/6.1.7/latest
Connector Protocol : connector
Application Protocol : hakuneko
Startup URL : hakuneko://cache/index.html
AppCache Directory : /home/nathalie/.cache/hakuneko-desktop
UserData Directory : /home/nathalie/.config/hakuneko-desktop

Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
[746552:0616/223558.933607:FATAL:gpu_data_manager_impl_private.cc(894)] The display compositor is frequently crashing. Goodbye.
Trace/breakpoint trap (core dumped)
]

@qunYp3dZSyLjoEoEg
Copy link

Weirdly enough though on my laptop it works without any issues, even though it's just another arch-based distro on there.

@Sheepux
Copy link
Contributor

Sheepux commented Jun 16, 2023

https://www.electronjs.org/docs/latest/tutorial/sandbox#disabling-chromiums-sandbox-testing-only

"We highly recommend that you only use this flag for testing purposes, and never in production."

@Sheepux
Copy link
Contributor

Sheepux commented Jun 16, 2023

also, try with hakuneko nightly version

@qunYp3dZSyLjoEoEg
Copy link

Thanks, have tried the nightly version too though the problem still persists. Not all that bad now that I have a fix for it, thanks for your help!

@Sheepux
Copy link
Contributor

Sheepux commented Jun 17, 2023

you could give a try with our next version to see if the issue is solved : https://github.com/manga-download/haruneko (you'd have to build the whole thing as we're still in the WIP stage)

@dtantono
Copy link

for my situation, it turns out that I need to enable hybrid graphics switching instead of rely on dgpu if you don't want that extra --no-sandbox

@AvianAnalyst
Copy link

I also have this problem, --no-sandbox works for me as well. I'm on endeavourOS (arch based).
@dtantono do you have any resources you could share on doing that? My computer only has one GPU is that still a thing? When I looked it up I was seeing stuff about laptops with multiple GPUs

@AvianAnalyst
Copy link

I'm working around this by editing the .desktop entry in /usr/application/ to include the start up argument. I also had to change the path in the exec line to /usr/bin/hakuneko-destop it used to be some library file? not sure if thats correct or on purpose

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

No branches or pull requests

5 participants