zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

(Bug report) Trilium window gets white and unusable #3040

Closed ghost closed 1 year ago

ghost commented 2 years ago

Trilium Version

0.53.2

What operating system are you using?

Other Linux

What is your setup?

Local (no sync)

Operating System Version

5.18.15-arch1-1

Description

Sometimes Trilium's window gets white and in that state, it is unusable. It does nothing; just a white window. I'm forced to reboot my computer to get it working again.

DynamoFox commented 2 years ago

Would you mind to start Trilium from terminal and report here what it prints? You should also give a look at this: #2071.

ghost commented 2 years ago

Not at all. I've already tried the solution given in #2071 but it didn't work.

DB size: 2527 KB
Becca (note cache) load took 2ms

(trilium:221066): Gtk-WARNING **: 20:04:22.274: Theme parsing error: gtk.css:1:61: Failed to import: The resource at “/org/numixproject/gtk/dist/gtk.css” does not exist
App HTTP server starting up at port 37840
{
  "appVersion": "0.53.2",
  "dbVersion": 196,
  "syncVersion": 25,
  "buildDate": "2022-07-09T13:40:41+02:00",
  "buildRevision": "9b4ef6ea5eb3711c5ebd9d99fffdc771b84dacc1",
  "dataDirectory": "/home/name/.local/share/trilium-data",
  "clipperProtocolVersion": "1.0",
  "utcDateTime": "2022-08-05T15:34:21.648Z"
}
CPU model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, logical cores: 12 freq: 4078 Mhz
Listening on port 37840
Registered global shortcut Ctrl+Alt+P for action createNoteIntoInbox
Generated CSRF token t3bcBver-ZGjm86GC06-a-ZQO5Vw0HpzboHE with secret _csrf=6g7-ZHjk1a_oLZZXE6f0dVl-; Path=/
trilium: tpp.c:83: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio >= fifo_min_prio && new_prio <= fifo_max_prio)' failed.
[221066:0805/200422.851817:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=134
trilium: tpp.c:83: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio >= fifo_min_prio && new_prio <= fifo_max_prio)' failed.
[221066:0805/200423.415049:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=134
trilium: tpp.c:83: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio >= fifo_min_prio && new_prio <= fifo_max_prio)' failed.
[221066:0805/200424.004746:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=134
[2022-08-05 20:04:24.018] [MANGOHUD] [info] [config.cpp:112] skipping config: '/opt/trilium-bin/MangoHud.conf' [ not found ]
[2022-08-05 20:04:24.018] [MANGOHUD] [info] [config.cpp:112] skipping config: '/home/name/.config/MangoHud/trilium.conf' [ not found ]
[2022-08-05 20:04:24.018] [MANGOHUD] [info] [config.cpp:112] skipping config: '/home/name/.config/MangoHud/MangoHud.conf' [ not found ]
[2022-08-05 20:04:24.153] [MANGOHUD] [info] [overlay.cpp:718] Uploading is disabled (permit_upload = 0)
trilium: tpp.c:83: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio >= fifo_min_prio && new_prio <= fifo_max_prio)' failed.
[221066:0805/200424.743406:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=134
[2022-08-05 20:04:24.754] [MANGOHUD] [info] [config.cpp:112] skipping config: '/opt/trilium-bin/MangoHud.conf' [ not found ]
[2022-08-05 20:04:24.754] [MANGOHUD] [info] [config.cpp:112] skipping config: '/home/name/.config/MangoHud/trilium.conf' [ not found ]
[2022-08-05 20:04:24.754] [MANGOHUD] [info] [config.cpp:112] skipping config: '/home/name/.config/MangoHud/MangoHud.conf' [ not found ]
[2022-08-05 20:04:24.887] [MANGOHUD] [info] [overlay.cpp:718] Uploading is disabled (permit_upload = 0)
trilium: tpp.c:83: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio >= fifo_min_prio && new_prio <= fifo_max_prio)' failed.
[221066:0805/200425.499301:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=134
[2022-08-05 20:04:25.510] [MANGOHUD] [info] [config.cpp:112] skipping config: '/opt/trilium-bin/MangoHud.conf' [ not found ]
[2022-08-05 20:04:25.510] [MANGOHUD] [info] [config.cpp:112] skipping config: '/home/name/.config/MangoHud/trilium.conf' [ not found ]
[2022-08-05 20:04:25.510] [MANGOHUD] [info] [config.cpp:112] skipping config: '/home/name/.config/MangoHud/MangoHud.conf' [ not found ]
[2022-08-05 20:04:25.586] [MANGOHUD] [info] [overlay.cpp:718] Uploading is disabled (permit_upload = 0)
trilium: tpp.c:83: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio >= fifo_min_prio && new_prio <= fifo_max_prio)' failed.
[221066:0805/200426.167474:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=134
[221298:0805/200426.171745:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is disabled, ANGLE is
Table counts: notes: 70, note_revisions: 79, branches: 71, attributes: 41, etapi_tokens: 0
All consistency checks passed with no errors detected (took 5ms)
zadam commented 2 years ago

Hmm, that's unfortunate. From the logs it does look like it's crashing because of GPU/acceleration.

DynamoFox commented 2 years ago

Could you avoid to run Trilium with MangoHud? As it's an overlay to display videogame's performance it might be interfering with Electron graphics acceleration.

ghost commented 2 years ago

Could you avoid to run Trilium with MangoHud? As it's an overlay to display videogame's performance it might be interfering with Electron graphics acceleration.

Thanks! I had the MANGOHUD environment variable set to 1 so it ran by default. When I set it to 0 trilium started just fine!

ghost commented 2 years ago

So trilium window got blank again but this time the log is different. I also tried opening it with --disable-gpu flag but it gives me the same log. I'm thinking this is maybe because I am working on my main Nvidia graphics card with optimus-manager. If this is the case, is there a way to not launch it as a desktop app and launch it in a browser? Currently, trilium is listening at port 37840 but when I want to access it, it gives me the following errors:

Error
Error when calling GET options: error - Unauthorized
Error
Error when calling GET tree: error - Unauthorized
Error
Error when calling GET keyboard-actions: error - Unauthorized
Error
Error when calling GET keyboard-shortcuts-for-notes: error - Unauthorized
Error
Error when calling GET script/widgets: error - Unauthorize

This is also the output of trilium command in terminal:

DB size: 2633 KB
Becca (note cache) load took 2ms

(trilium:853251): Gtk-WARNING **: 13:14:26.437: Theme parsing error: gtk.css:1:61: Failed to import: The resource at “/org/numixproject/gtk/dist/gtk.css” does not exist
App HTTP server starting up at port 37840
{
  "appVersion": "0.53.2",
  "dbVersion": 196,
  "syncVersion": 25,
  "buildDate": "2022-07-09T13:40:41+02:00",
  "buildRevision": "9b4ef6ea5eb3711c5ebd9d99fffdc771b84dacc1",
  "dataDirectory": "/home/name/.local/share/trilium-data",
  "clipperProtocolVersion": "1.0",
  "utcDateTime": "2022-08-08T08:44:25.822Z"
}
CPU model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, logical cores: 12 freq: 2600 Mhz
Listening on port 37840
Registered global shortcut Ctrl+Alt+P for action createNoteIntoInbox
[853251:0808/131426.586462:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=256
Generated CSRF token JjugfaYM-mTg4IpVWq7m-KKPGiP-PRyGYba8 with secret _csrf=rbi_qHrDzu0fI0CZbVdWiwfL; Path=/
[853251:0808/131426.701386:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=256
[853251:0808/131426.794137:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=256
[853251:0808/131426.832733:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=256
[853251:0808/131426.887561:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=256
[853251:0808/131426.926172:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=256
[853387:0808/131426.930152:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is disabled, ANGLE is
Table counts: notes: 69, note_revisions: 109, branches: 71, attributes: 37, etapi_tokens: 0
All consistency checks passed with no errors detected (took 4ms)
Nriver commented 2 years ago

goto http://127.0.0.1:37840/login

ghost commented 2 years ago

I can now use trilium on firefox. I think I should let this issue be open for now. Thank you @Nriver.