cosmic-panel icon indicating copy to clipboard operation
cosmic-panel copied to clipboard

Right click causes the app list applet to exit

Open snaggen opened this issue 1 year ago • 9 comments

When I right click on some application icons in the dock, the applications goes away. When I check the system log I see: nov 08 09:19:00 locke cosmic-panel[4219]: com.system76.CosmicAppList: exited with code 0 So, it seems that the app list just exits for some unknown reason.

It doen't happen every time I think, but almost. For some applications I was able to get the context meny some time, but most of the time it just seems to exit. I can easliy reproduce this by right clicking just a few times. It is so bad, that I never dare to right click, since most of the time the applications goes away and I have to restart the dock to get them back.

I'm on Fedora 41 with the cosmic copr packages installed. The version I use is:

cosmic-applets-1.0.0~alpha.3^git20241107.110c68d-1.fc41.x86_64
cosmic-panel-1.0.0~alpha.3^git20241106.d0d7972-1.fc41.x86_64

snaggen avatar Nov 08 '24 09:11 snaggen

This might be related to the use of external screens. I normally have the laptop lid closed, with two external screens (one is rotated 90 degrees). When I now used the laptop without the screens, I can right click without any crashes.

snaggen avatar Nov 10 '24 17:11 snaggen

+1

ypli0629 avatar Nov 19 '24 05:11 ypli0629

I have some error messages

11月 19 13:49:37 pop-os cosmic-panel[2033]: com.system76.CosmicAppletStatusArea: exited with code 0 11月 19 13:49:37 pop-os clash-verge[2087]: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed 11月 19 13:49:39 pop-os systemd[1904]: app-cosmic-com.system76.CosmicAppList-9095.scope: Couldn't move process 9095 to requested cgroup '/user.slice/user-1000.slice/[email protected]/app> 11月 19 13:49:39 pop-os systemd[1904]: app-cosmic-com.system76.CosmicAppList-9095.scope: Failed to add PIDs to scope's control group: No such process 11月 19 13:49:39 pop-os systemd[1904]: app-cosmic-com.system76.CosmicAppList-9095.scope: Failed with result 'resources'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit UNIT has entered the 'failed' state with result 'resources'. 11月 19 13:49:39 pop-os systemd[1904]: Failed to start app-cosmic-com.system76.CosmicAppList-9095.scope - Application launched by COSMIC. ░░ Subject: A start job for unit UNIT has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit UNIT has finished with a failure. ░░ ░░ The job identifier is 615 and the job result is failed. 11月 19 13:49:43 pop-os chronyd[1160]: Selected source 52.10.183.132 (oregon.time.system76.com) 11月 19 13:49:44 pop-os cosmic-comp[1970]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 24 > 10) 11月 19 13:49:49 pop-os cosmic-comp[1970]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 24 > 10) 11月 19 13:49:52 pop-os cosmic-comp[1970]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 24 > 10) 11月 19 13:49:55 pop-os cosmic-comp[1970]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 24 > 10) 11月 19 13:49:57 pop-os cosmic-comp[1970]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 24 > 10) 11月 19 13:49:57 pop-os fcitx5[2145]: I2024-11-19 13:49:57.534009 instance.cpp:1187] Running autosave... 11月 19 13:49:57 pop-os fcitx5[2145]: I2024-11-19 13:49:57.613400 instance.cpp:1189] End autosave 11月 19 13:50:00 pop-os com.docker.backend[2202]: [05:50:00.053194338Z][main.idle ] cache << GET /images/json 11月 19 13:50:01 pop-os cosmic-comp[1970]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 24 > 10) 11月 19 13:50:16 pop-os cosmic-comp[1970]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 24 > 10) 11月 19 13:50:17 pop-os cosmic-comp[1970]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 24 > 10)

ypli0629 avatar Nov 19 '24 05:11 ypli0629

@wash2

ypli0629 avatar Nov 19 '24 05:11 ypli0629

Hi, I've been looking into this, but unfortunately I've not been able to recreate the issue. I'll let you know when I've made progress.

wash2 avatar Nov 19 '24 12:11 wash2

Unfortunately, due to https://github.com/pop-os/cosmic-epoch/issues/1174 and the fact that I need to have my laptop in at least a semi stable state, I cannot fiddle around much to determine how to trigger this case. But I would start by using and external screen, since it seemed to work reliably when I only had my laptop screen. Also, rotating the screen (or in my case one of two external screens). Possibly some scaling, since I think I might have a fractional scaling configured on my screens. This is where I should start my testing.

snaggen avatar Nov 19 '24 13:11 snaggen

Hi, I've been looking into this, but unfortunately I've not been able to recreate the issue. I'll let you know when I've made progress.

When I use fractional scaling (set scale to 150%), right click will causes panel crash. if change scale to 100%, crash no longer occur.

ypli0629 avatar Nov 19 '24 13:11 ypli0629

Hi, I've been looking into this, but unfortunately I've not been able to recreate the issue. I'll let you know when I've made progress.

Some of the current crashes related to applets and the panel seem to be related to fractional scaling.

There's something going wrong with the panel and applets at set scaling, though it seems inconsistent at which scaling stuff starts breaking depending on user.

For me if I have scaling set above 150% the time applet and various panel crashes occur. If I leave it at 150% it all works fine.

Link to applet issue I believe is related: https://github.com/pop-os/cosmic-applets/issues/714

J4ckWh0 avatar Nov 19 '24 15:11 J4ckWh0

ok i think i've got a fix for this issue that should be merged sometime today :) https://github.com/pop-os/iced/pull/196 is related

wash2 avatar Nov 19 '24 18:11 wash2