diamondburned / dissent

Tiny native Discord app
https://flathub.org/apps/details/so.libdb.dissent
GNU General Public License v3.0
1.3k stars 41 forks source link

GTKCord hanging occasionally: pixman_region32_init_rect: Invalid rectangle passed [Pinephone/Manjaro/Phosh] #19

Open rapidewilson opened 2 years ago

rapidewilson commented 2 years ago

Program fires up and works as expected approx 50% of the time. When logged in, after selecting a channel and retracting the channel list, the following gets returned as well as a complete hang of the program (requires killing of the process)

2022/05/16 12:56:35 Warning: Gsk: Unrecognized renderer "ngl". Try GSK_RENDERER=help
2022/05/16 12:56:35 Warning: Gtk: GtkGizmo 0xffff8014a3f0 (progress) reported min width -2, but sizes must be >= 0
2022/05/16 12:56:38 connected: READY
2022/05/16 12:56:53 load channel 213077219424206858
2022/05/16 12:56:53 Discord API: GET /api/v9/channels/213077219424206858/messages
2022/05/16 12:56:54 guild 77710284621357056 requested 3 members
2022/05/16 12:56:55 guild 77710284621357056 requested 1 members
2022/05/16 12:56:56 Warning: Gdk: Compositor doesn't support moving popups, relying on remapping
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

2022/05/16 12:56:56 Critical: Gdk: gdk_surface_ensure_egl_surface: assertion 'priv->egl_native_window != NULL' failed
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

Rebooting seems to sometimes fix this, but if the program is closed and reopened, the error occurs again.

Happy to help out however I can but my knowledge and experience is entry-level and may need guidance.

diamondburned commented 2 years ago

This looks like a GTK bug. I've had a bug where GTK4 would crash with the software (Cairo) renderer when it tries to draw a GtkSwitch. They didn't care.