Black screen on startup #399

Closed
opened 2023-06-10 05:33:07 +12:00 by josephkerkhof · 9 comments
josephkerkhof commented 2023-06-10 05:33:07 +12:00 (Migrated from github.com)

When I start gossip in my dwm window manager, I get a black screen.

Here are the logs from the initial startup:

gossip
2023-06-09T17:22:17.925912Z  INFO src/db/mod.rs:129: Upgrading database to version 1
2023-06-09T17:22:44.004351Z  INFO src/db/mod.rs:129: Upgrading database to version 2
2023-06-09T17:22:51.195178Z  INFO src/db/mod.rs:129: Upgrading database to version 3
2023-06-09T17:23:10.504207Z  INFO src/db/mod.rs:129: Upgrading database to version 4
2023-06-09T17:23:11.541258Z  INFO src/db/mod.rs:129: Upgrading database to version 5
2023-06-09T17:23:12.188110Z  INFO src/db/mod.rs:129: Upgrading database to version 6
2023-06-09T17:23:12.244018Z  INFO src/db/mod.rs:129: Upgrading database to version 7
2023-06-09T17:23:12.335093Z  INFO src/db/mod.rs:129: Upgrading database to version 8
2023-06-09T17:23:12.416149Z  INFO src/db/mod.rs:129: Upgrading database to version 9
2023-06-09T17:23:13.265651Z  INFO src/db/mod.rs:129: Upgrading database to version 10
2023-06-09T17:23:13.448874Z  INFO src/db/mod.rs:129: Upgrading database to version 11
2023-06-09T17:23:14.330209Z  INFO src/db/mod.rs:129: Upgrading database to version 12
2023-06-09T17:23:15.705993Z  INFO src/db/mod.rs:129: Upgrading database to version 13
2023-06-09T17:23:16.759870Z  INFO src/db/mod.rs:129: Upgrading database to version 14
2023-06-09T17:23:17.815476Z  INFO src/db/mod.rs:129: Upgrading database to version 15
2023-06-09T17:23:17.868106Z  INFO src/db/mod.rs:129: Upgrading database to version 16
2023-06-09T17:23:17.998231Z  INFO src/db/mod.rs:129: Upgrading database to version 17
2023-06-09T17:23:18.873246Z  INFO src/db/mod.rs:129: Upgrading database to version 18
2023-06-09T17:23:18.938025Z  INFO src/db/mod.rs:129: Upgrading database to version 19
2023-06-09T17:23:19.886222Z  INFO src/db/mod.rs:129: Upgrading database to version 20
2023-06-09T17:23:19.991132Z  INFO src/db/mod.rs:129: Upgrading database to version 21
2023-06-09T17:23:21.787179Z  INFO src/db/mod.rs:129: Upgrading database to version 22
2023-06-09T17:23:21.879540Z  INFO src/db/mod.rs:129: Upgrading database to version 23
2023-06-09T17:23:23.715924Z  INFO src/db/mod.rs:129: Upgrading database to version 24
2023-06-09T17:23:27.694670Z  INFO src/db/mod.rs:129: Upgrading database to version 25
2023-06-09T17:23:28.733882Z  INFO src/db/mod.rs:129: Upgrading database to version 26
2023-06-09T17:23:30.217415Z  INFO src/db/mod.rs:129: Upgrading database to version 27
2023-06-09T17:23:33.600360Z  INFO src/db/mod.rs:129: Upgrading database to version 28
2023-06-09T17:23:33.836839Z  INFO src/db/mod.rs:129: Upgrading database to version 29
2023-06-09T17:23:34.285861Z  INFO src/db/mod.rs:129: Upgrading database to version 30
2023-06-09T17:23:34.979803Z  INFO src/db/mod.rs:129: Upgrading database to version 31
2023-06-09T17:23:37.239270Z  INFO src/db/mod.rs:129: Upgrading database to version 32
2023-06-09T17:23:38.208385Z  INFO src/db/mod.rs:129: Upgrading database to version 33
2023-06-09T17:23:38.829238Z  INFO src/db/mod.rs:143: Database is at version 33
2023-06-09T17:23:38.831037Z  INFO src/db/mod.rs:173: Normalizing Database URLs (this will take some time)
2023-06-09T17:23:39.176674Z  INFO src/overlord/mod.rs:156: Loaded 0 reply related events from the database
2023-06-09T17:23:39.177014Z  INFO src/overlord/mod.rs:194: Loaded 0 feed related events from the database
2023-06-09T17:23:39.177279Z  INFO src/events.rs:224: Loading event seen-on data...
2023-06-09T17:23:39.177560Z  INFO src/overlord/mod.rs:240: Loaded 0 relay list events from the database
2023-06-09T17:23:39.177605Z  INFO src/overlord/mod.rs:303: Done picking relays: All people accounted for.
2023-06-09T17:23:39.370792Z  INFO /home/joseph/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.3/src/platform_impl/linux/x11/window.rs:156: Guessed window scale factor: 1
2023-06-09T17:23:39.373979Z  WARN /home/joseph/.local/share/cargo/git/checkouts/egui-8c292eaa01d4c64e/a18ee5e/crates/eframe/src/native/run.rs:489: failed to create context using default context attributes ContextAttributes { release_behavior: Flush, debug: false,
robustness: NotRobust, profile: None, api: None, shared_context: None, raw_window_handle: Some(Xlib(XlibWindowHandle { window: 29360130, visual_id: 0 })) } due to error: [a7] GLXBadFBConfig
2023-06-09T17:24:00.729989Z  INFO src/overlord/mod.rs:659: Overlord shutting down
2023-06-09T17:24:00.730061Z  INFO src/overlord/mod.rs:52: Overlord signalling UI to shutdown
2023-06-09T17:24:00.730082Z  INFO src/overlord/mod.rs:56: Overlord signalling minions to shutdown
2023-06-09T17:24:00.730101Z  INFO src/overlord/mod.rs:66: Overlord waiting for minions to all shutdown
2023-06-09T17:24:00.730118Z  INFO src/overlord/mod.rs:75: Overlord confirms all minions have shutdown

image

Let me know if there's any other information you need to debug this issue. Maybe it's the WARN statement in the log. I get that WARN every time I start the application.

When I start gossip in my dwm window manager, I get a black screen. Here are the logs from the initial startup: ``` gossip 2023-06-09T17:22:17.925912Z INFO src/db/mod.rs:129: Upgrading database to version 1 2023-06-09T17:22:44.004351Z INFO src/db/mod.rs:129: Upgrading database to version 2 2023-06-09T17:22:51.195178Z INFO src/db/mod.rs:129: Upgrading database to version 3 2023-06-09T17:23:10.504207Z INFO src/db/mod.rs:129: Upgrading database to version 4 2023-06-09T17:23:11.541258Z INFO src/db/mod.rs:129: Upgrading database to version 5 2023-06-09T17:23:12.188110Z INFO src/db/mod.rs:129: Upgrading database to version 6 2023-06-09T17:23:12.244018Z INFO src/db/mod.rs:129: Upgrading database to version 7 2023-06-09T17:23:12.335093Z INFO src/db/mod.rs:129: Upgrading database to version 8 2023-06-09T17:23:12.416149Z INFO src/db/mod.rs:129: Upgrading database to version 9 2023-06-09T17:23:13.265651Z INFO src/db/mod.rs:129: Upgrading database to version 10 2023-06-09T17:23:13.448874Z INFO src/db/mod.rs:129: Upgrading database to version 11 2023-06-09T17:23:14.330209Z INFO src/db/mod.rs:129: Upgrading database to version 12 2023-06-09T17:23:15.705993Z INFO src/db/mod.rs:129: Upgrading database to version 13 2023-06-09T17:23:16.759870Z INFO src/db/mod.rs:129: Upgrading database to version 14 2023-06-09T17:23:17.815476Z INFO src/db/mod.rs:129: Upgrading database to version 15 2023-06-09T17:23:17.868106Z INFO src/db/mod.rs:129: Upgrading database to version 16 2023-06-09T17:23:17.998231Z INFO src/db/mod.rs:129: Upgrading database to version 17 2023-06-09T17:23:18.873246Z INFO src/db/mod.rs:129: Upgrading database to version 18 2023-06-09T17:23:18.938025Z INFO src/db/mod.rs:129: Upgrading database to version 19 2023-06-09T17:23:19.886222Z INFO src/db/mod.rs:129: Upgrading database to version 20 2023-06-09T17:23:19.991132Z INFO src/db/mod.rs:129: Upgrading database to version 21 2023-06-09T17:23:21.787179Z INFO src/db/mod.rs:129: Upgrading database to version 22 2023-06-09T17:23:21.879540Z INFO src/db/mod.rs:129: Upgrading database to version 23 2023-06-09T17:23:23.715924Z INFO src/db/mod.rs:129: Upgrading database to version 24 2023-06-09T17:23:27.694670Z INFO src/db/mod.rs:129: Upgrading database to version 25 2023-06-09T17:23:28.733882Z INFO src/db/mod.rs:129: Upgrading database to version 26 2023-06-09T17:23:30.217415Z INFO src/db/mod.rs:129: Upgrading database to version 27 2023-06-09T17:23:33.600360Z INFO src/db/mod.rs:129: Upgrading database to version 28 2023-06-09T17:23:33.836839Z INFO src/db/mod.rs:129: Upgrading database to version 29 2023-06-09T17:23:34.285861Z INFO src/db/mod.rs:129: Upgrading database to version 30 2023-06-09T17:23:34.979803Z INFO src/db/mod.rs:129: Upgrading database to version 31 2023-06-09T17:23:37.239270Z INFO src/db/mod.rs:129: Upgrading database to version 32 2023-06-09T17:23:38.208385Z INFO src/db/mod.rs:129: Upgrading database to version 33 2023-06-09T17:23:38.829238Z INFO src/db/mod.rs:143: Database is at version 33 2023-06-09T17:23:38.831037Z INFO src/db/mod.rs:173: Normalizing Database URLs (this will take some time) 2023-06-09T17:23:39.176674Z INFO src/overlord/mod.rs:156: Loaded 0 reply related events from the database 2023-06-09T17:23:39.177014Z INFO src/overlord/mod.rs:194: Loaded 0 feed related events from the database 2023-06-09T17:23:39.177279Z INFO src/events.rs:224: Loading event seen-on data... 2023-06-09T17:23:39.177560Z INFO src/overlord/mod.rs:240: Loaded 0 relay list events from the database 2023-06-09T17:23:39.177605Z INFO src/overlord/mod.rs:303: Done picking relays: All people accounted for. 2023-06-09T17:23:39.370792Z INFO /home/joseph/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.3/src/platform_impl/linux/x11/window.rs:156: Guessed window scale factor: 1 2023-06-09T17:23:39.373979Z WARN /home/joseph/.local/share/cargo/git/checkouts/egui-8c292eaa01d4c64e/a18ee5e/crates/eframe/src/native/run.rs:489: failed to create context using default context attributes ContextAttributes { release_behavior: Flush, debug: false, robustness: NotRobust, profile: None, api: None, shared_context: None, raw_window_handle: Some(Xlib(XlibWindowHandle { window: 29360130, visual_id: 0 })) } due to error: [a7] GLXBadFBConfig 2023-06-09T17:24:00.729989Z INFO src/overlord/mod.rs:659: Overlord shutting down 2023-06-09T17:24:00.730061Z INFO src/overlord/mod.rs:52: Overlord signalling UI to shutdown 2023-06-09T17:24:00.730082Z INFO src/overlord/mod.rs:56: Overlord signalling minions to shutdown 2023-06-09T17:24:00.730101Z INFO src/overlord/mod.rs:66: Overlord waiting for minions to all shutdown 2023-06-09T17:24:00.730118Z INFO src/overlord/mod.rs:75: Overlord confirms all minions have shutdown ``` ![image](https://github.com/mikedilger/gossip/assets/5824820/86fc7bc0-d4b6-48be-be7e-ea90addeb655) Let me know if there's any other information you need to debug this issue. Maybe it's the `WARN` statement in the log. I get that `WARN` every time I start the application.
mikedilger commented 2023-06-14 07:23:01 +12:00 (Migrated from github.com)

2023-06-09T17:23:39.373979Z WARN /home/joseph/.local/share/cargo/git/checkouts/egui-8c292eaa01d4c64e/a18ee5e/crates/eframe/src/native/run.rs:489: failed to create context using default context attributes ContextAttributes { release_behavior: Flush, debug: false,
robustness: NotRobust, profile: None, api: None, shared_context: None, raw_window_handle: Some(Xlib(XlibWindowHandle { window: 29360130, visual_id: 0 })) } due to error: [a7] GLXBadFBConfig

This is definitely the problem. But it's deeper than the code that I maintain. I would look for similar bugs via google, or filed at one of these repos:

> 2023-06-09T17:23:39.373979Z WARN /home/joseph/.local/share/cargo/git/checkouts/egui-8c292eaa01d4c64e/a18ee5e/crates/eframe/src/native/run.rs:489: failed to create context using default context attributes ContextAttributes { release_behavior: Flush, debug: false, robustness: NotRobust, profile: None, api: None, shared_context: None, raw_window_handle: Some(Xlib(XlibWindowHandle { window: 29360130, visual_id: 0 })) } due to error: [a7] GLXBadFBConfig This is definitely the problem. But it's deeper than the code that I maintain. I would look for similar bugs via google, or filed at one of these repos: - https://github.com/emilk/egui - https://github.com/rust-windowing/winit
josephkerkhof commented 2023-06-17 00:37:50 +12:00 (Migrated from github.com)

https://github.com/emilk/egui/issues/2661 This issue describes a problem that sounds very similar. The reporter even has an ancient thinkpad (which is what I'm also running while encountering this problem). It sounds like upgrading to glutin 0.30.5 might contain the fix for this bug? I'm happy to compile and test something for you if you'd like.

https://github.com/emilk/egui/issues/2661 This issue describes a problem that sounds very similar. The reporter even has an ancient thinkpad (which is what I'm also running while encountering this problem). It sounds like upgrading to glutin 0.30.5 might contain the fix for this bug? I'm happy to compile and test something for you if you'd like.
mikedilger commented 2023-06-18 12:01:26 +12:00 (Migrated from github.com)

We are using glutin 0.30.7 on master

We are using glutin 0.30.7 on master
josephkerkhof commented 2023-06-20 04:38:04 +12:00 (Migrated from github.com)

Hmm. Well I'm really not sure what else to investigate. I was previously using the 0.6 build from the AUR, but I tried building from master too and that also had the same warning message and black screen problem.

On June 17, 2023 7:01:37 PM CDT, Michael Dilger @.***> wrote:

We are using glutin 0.30.7 on master

--
Reply to this email directly or view it on GitHub:
https://github.com/mikedilger/gossip/issues/399#issuecomment-1595895669
You are receiving this because you authored the thread.

Message ID: @.***>

Hmm. Well I'm really not sure what else to investigate. I was previously using the 0.6 build from the AUR, but I tried building from master too and that also had the same warning message and black screen problem. On June 17, 2023 7:01:37 PM CDT, Michael Dilger ***@***.***> wrote: >We are using glutin 0.30.7 on master > >-- >Reply to this email directly or view it on GitHub: >https://github.com/mikedilger/gossip/issues/399#issuecomment-1595895669 >You are receiving this because you authored the thread. > >Message ID: ***@***.***>
josephkerkhof commented 2023-07-02 16:08:31 +12:00 (Migrated from github.com)

I get a very similar behavior while trying to run the "hello world" application in the egui project. The error is slightly different, but I filed a new bug in the egui project anyways. https://github.com/emilk/egui/issues/3131

I get a very similar behavior while trying to run the "hello world" application in the egui project. The error is slightly different, but I filed a new bug in the egui project anyways. https://github.com/emilk/egui/issues/3131
mikedilger commented 2023-09-29 17:30:27 +13:00 (Migrated from github.com)

I've just upgraded to egui 0.23.0 on the unstable branch. I don't know if that will make a difference or not.

I've just upgraded to egui 0.23.0 on the unstable branch. I don't know if that will make a difference or not.
josephkerkhof commented 2023-10-18 13:21:03 +13:00 (Migrated from github.com)

I've just tried recompiling the latest egui "hello world" example and my problem still persists. 🤷🏻 I'm not sure there's any urgency to fix this issue. I seem to be a pretty niche case.

I'm not a rust or egui programmer, but maybe I'll take a stab at trying to fix the problem.

I've just tried recompiling the latest egui "hello world" example and my problem still persists. 🤷🏻 I'm not sure there's any urgency to fix this issue. I seem to be a pretty niche case. I'm not a rust or egui programmer, but maybe I'll take a stab at trying to fix the problem.
bu5hm4nn commented 2023-10-21 11:36:07 +13:00 (Migrated from github.com)

@josephkerkhof egui uses direct graphics interfaces like OpenGL to render it's content. Do other OpenGL programs run on your machine? You might need to update your graphics drivers.

@josephkerkhof egui uses direct graphics interfaces like OpenGL to render it's content. Do other OpenGL programs run on your machine? You might need to update your graphics drivers.
josephkerkhof commented 2023-10-21 12:59:58 +13:00 (Migrated from github.com)

Thank you very much @bu5hm4nn for shoving me in the right direction. I have now installed the arch mesa-amber package on my machine (older hardware) and now egui and gossip work! This is great!

Thank you very much @bu5hm4nn for shoving me in the right direction. I have now installed the arch `mesa-amber` package on my machine (older hardware) and now egui and gossip work! This is great!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nostr/gossip#399
No description provided.