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

Computer screen freezing when using Joplin #5776

Open
d2k2-git opened this issue Nov 23, 2021 · 11 comments
Open

Computer screen freezing when using Joplin #5776

d2k2-git opened this issue Nov 23, 2021 · 11 comments
Labels
bug It's a bug desktop All desktop platforms medium Medium priority issues

Comments

@d2k2-git
Copy link

d2k2-git commented Nov 23, 2021

I have a problem when using Joplin. It happen sometimes when i open Joplin from the windows tray icon.

Whole computerscreen freezes and i can only move the mouse. the maximized Joplin window is also empty. Only a reboot can fix it. I am sure that its problem with Joplin. It happen only when i click on the Joplin icon in the tray bar.

I dont know how to reproduce it. i checked already the log.txt file. but i could not find any error there.

it might be a problem with enabled gpu hardware acceleration. i had similar problem with microsoft teams. if this is the case an option to disable hardware acceleration might fix it in joplin aswell.

Operating System : Windows 10
GPU: Intel UHD Graphics 620
Joplin Version : 2.5.12

@d2k2-git d2k2-git added the bug It's a bug label Nov 23, 2021
@laurent22
Copy link
Owner

@laurent22 laurent22 added desktop All desktop platforms high High priority issues labels Nov 23, 2021
@tessus
Copy link
Collaborator

tessus commented Nov 23, 2021

We should only add this flag for Windows though.

I haven't seen any issues on macOS. On Linux I don't see any issues either, but my VM with Gnome does not show a tray icon at all.

@laurent22 laurent22 added backlog We'll get to it... eventually... and removed high High priority issues labels Mar 3, 2022
@Perkolator
Copy link
Contributor

On Linux I don't see any issues either

I have seen plenty of display problems on linux (with nvidia driver) with Joplin. So, optional setting/cmdline switch to disable hardware acceleration would be nice on linux too. Why limit it to windows only?

@Perkolator
Copy link
Contributor

Just had a total crash of the desktop/xorg on linux (lost all opened stuff) when opening (minimized) Joplin window from taskbar (after coming back from hibernation).

@joplinapp-desk[1253655]: segfault at 10 ip 00007fdae2a50eb0 sp 00007ffffbf175f0 error 4 in libnvidia-glcore.so.450.119.03[7fdae1a62000+133f000]

I know the linux nvidia drivers are really crap, but if I could turn off hardware acceleration, I bet these problems with Joplin would go away, like they have with other electron/etc. hw acc. software. So please, please, option in the Joplin settings and/or cmdline switch. Thank you.

@laurent22 laurent22 added good first issue medium Medium priority issues and removed backlog We'll get to it... eventually... labels Mar 9, 2022
@mirchandani-mohnish
Copy link

So to sum it up, we need to add a switch which can disable hardware accelaration for joplin? Am I right?

@laurent22
Copy link
Owner

laurent22 commented Mar 21, 2022

It would be a setting (see lib/models/Setting.ts) and it should be:

  • An advanced setting
  • Available on the desktop app only
  • It would go under the Application section
  • Automated tests aren't required for this feature, but you need to explain how we can manually check it's working

@rajdama
Copy link

rajdama commented Mar 28, 2022

Can I work on it ?

@evanlabs
Copy link

evanlabs commented Apr 9, 2022

I have the same problem here, the number of notes in the notes list is not rendering correctly.
The device I am using is a NUC with integrated graphics.

Would like to support an option to disable hardware acceleration.

@johanburati
Copy link

I am also seeing this issue with the nvidia 535.129.03 driver on Linux, Joplin keep freezing and also the menu stay black for a few seconds, no such problem when using the nouveau driver.

The new nvidia 545.29.02 driver will hopefully fix the issue but if not, that would be nice to have an option to disable gpu hardware acceleration.

Thanks !

@Perkolator
Copy link
Contributor

The new nvidia 545.29.02 driver will hopefully fix the issue

What makes you think that? Personally I have used many nvidia driver versions and all of them have had this problem with programs using HW acceleration. E.g. Vivaldi browser always hangs for random amount of time (sometimes only second or two, sometimes longer) every time my laptop (Linux Mint) comes out of sleep/suspend or hibernate. HW acceleration is rather needed for that program, so I can't disable it, but with Joplin, I can't see why I would need HW acceleration with a note taking application, so I would definitely like to disable it.

Would it be a big job to make Joplin accept (or rather pass it to Electron at run time) even just a cmdline switch to disable HW acceleration? 2 years since this issue was opened.

@Perkolator
Copy link
Contributor

The new stable version now seems to accept --disable-gpu switch when starting Joplin. The changelog for desktop mentions this for version 2.13.5 (Pre-release), #9179.

Tried to look where I could verify that hardware acceleration is actually disabled in Electron when using this switch, but can't find anything in Joplin where to confirm this.

Maybe now somebody could create an option in Joplin settings to enable/disable this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug desktop All desktop platforms medium Medium priority issues
Projects
None yet
Development

No branches or pull requests

8 participants