pop-os / cosmic-epoch

Next generation Cosmic desktop environment
3.23k stars 88 forks source link

[crash] Something crashing very frequently. Intel Xe Graphics, Scaling 200%. #262

Closed elevenhsoft closed 5 months ago

elevenhsoft commented 7 months ago

Hey.

Today installed Cosmic desktop because I want to rewrite my app from Iced to libcosmic. Unfortunately I'm getting crash very frequently. I don't know if it's compositor or panel or what. Maybe srceenshot will help IMG_20240416_220633

To back to work I'm just need to enter for example tty2 and back to tty1 and everything is back to normal for some time (few minutes). Apps etc are in place.

When using gdm3 I was in lock screen after back to tty1 from tt2y so maybe it's locking my screen from time to time? For now I'm using cosmic-greeter because it's not giving me lock screen so changing tty fixes all the problems.

Please inform me where to find some logs from session so we can investigate those crashes.

I'm using Huawei Matebook X Pro with 11th Gen Intel i7-1165G7 and Intel Xe graphics (TigerLake-LP GT2). It's 3000x2000 screen with set scaling to 200%.

Drakulix commented 7 months ago

any chance you can provide some logs containing some of the crashes? e.g. run journalctl --user _EXE=/usr/bin/cosmic-session > ~/cosmic.log on tty2 should give you a log file in your home-directory.

elevenhsoft commented 7 months ago

Well, thank you. I dumped those logs. cosmic.log

It's log right after crash, log in to tty2 and dumped.

elevenhsoft commented 7 months ago

Next crash and again my log ends on this:

kwi 17 12:26:09 pop-os cosmic-session[1130]: 2024-04-17T10:26:09.136150Z  INFO Scale factor changed 2 for as surface in space "Panel" on eDP-1
kwi 17 12:51:33 pop-os cosmic-session[1130]: 2024-04-17T10:51:33.561311Z  INFO Scale factor changed 2 for as surface in space "Panel" on eDP-1
kwi 17 12:51:49 pop-os cosmic-session[1130]: 2024-04-17T10:51:49.572616Z  INFO Scale factor changed 2 for as surface in space "Panel" on eDP-1
Drakulix commented 7 months ago

Hmm, it looks like a bunch of components are having trouble reading some config files:

kwi 16 21:21:02 pop-os cosmic-session[1257]: 2024-04-16T19:21:02.516032Z ERROR stderr{client=InnerClientId { ptr: 0x5c5409170640, alive: true }}: com.system76.CosmicAppletPower:   ERROR  Error when loading Panel container config., err: RonSpanned(SpannedError { code: TrailingCharacters, position: Position { line: 1, col: 13 } })
kwi 16 21:21:02 pop-os cosmic-session[1257]: 2024-04-16T19:21:02.516039Z ERROR stderr{client=InnerClientId { ptr: 0x5c5409170640, alive: true }}: com.system76.CosmicAppletPower:     at cosmic-settings/src/pages/desktop/panel/inner.rs:62 on main

Not sure that is the issue, but could you try deleting ~/.config/cosmic to reset your config state?

@wash2 Do you see possibly anything problematic in these log files? Looking at the screenshot and log we might create a lot of layer-surfaces for some reason. Possibly something isn't cleaning them up correctly in cosmic-comp, but I suspect the original issue is in some other component.

elevenhsoft commented 7 months ago

Not sure that is the issue, but could you try deleting ~/.config/cosmic to reset your config state?

Just deleted whole cosmic folder. Crash happened about not even minute after reboot ^^ Sometimes screen flashing with this state what you can see on previous photo I attached.

elevenhsoft commented 7 months ago

Ok, got something else, this time it looks more interesting:

cosmic-comp.log

Drakulix commented 7 months ago

Ok, got something else, this time it looks more interesting:

cosmic-comp.log

The log looks pretty normal, none of the messages are unusual. :S

elevenhsoft commented 7 months ago

Ok, so I won't give up ^^ Maybe this time: cosmic-sudo.log

elevenhsoft commented 7 months ago

I removed com.system76.CosmicAppletPower from my panel and so far no crash at all. Seems stable. Maybe it's related?

Drakulix commented 7 months ago

Yes, there are a bunch of cosmic-applet-power related errors in your latest log.

elevenhsoft commented 7 months ago

I will observe this and give you a feedback after a while.

wash2 commented 7 months ago

None of the Config errors should really cause a crash, because the values just fall back to defaults. Maybe you could try updating the submodules before building to see if the issue still occurs with the power applet enabled? I don't believe anything in the logs looks too weird, aside from the panel labeling logs for applets that arent the Power applet (the Time applet for example) as the Power applet

elevenhsoft commented 7 months ago

Thanks for reply. Sorry I forgot to mention. I installed cosmic via apt and popdev:master branch

After apt-manage i just did apt install cosmic-*

elevenhsoft commented 7 months ago

Removing this applet helps. Unfortunately some other like notifications (after clearing the notifications dialog) also crashing. However it's much more stable in use without power applet.

wash2 commented 7 months ago

Removing this applet helps. Unfortunately some other like notifications (after clearing the notifications dialog) also crashing. However it's much more stable in use without power applet.

Does it always draw a bunch of panels when it crashes?

elevenhsoft commented 7 months ago

Oh, I'm not 100% sure but I think yes. Artifacts + panels.

elevenhsoft commented 7 months ago

Opening and closing calendar produces some glitches too. Weird things mostly happening with applets.

CosmicFusion commented 5 months ago

Update: The issue is not Resolution related, when properly muxed to nvidia gpu 1920x1200 works

It's either and intel gpu issue

Or intel gpu + weird Resolution issue

Edit: I can't test resolution, cuz my panel edid only allows native res in all compsitors and x11

Drakulix commented 5 months ago

Likely same issue as: https://github.com/pop-os/cosmic-comp/issues/499

elevenhsoft commented 5 months ago

Looks like it's fixed :partying_face: :tada: