jakeday / linux-surface

Linux Kernel for Surface Devices
2.59k stars 242 forks source link

Resume from sleep breaks Wayland connection, causes plasmashell to crash #550

Open cdt3pm opened 5 years ago

cdt3pm commented 5 years ago

Hi, I'm not sure whether or not linux-surface is causing this, but I saw a couple of questionable lines in my journal so I figured that I would post it here. I am running KDE on arch using Wayland, and when I resume from sleep I receive the following error and plasmashell crashes:

The Wayland connection experienced a fatal error (Invalid argument)

Before that error I get "qt.qpa.wayland.backingstore: Delivering update request through fallback timer, may not be in sync with display" many times. There is also a block where it looks like the NetworkManager experiences some issues, but I have to assume they're unrelated:

Aug 12 09:31:26 cdt3pm-dev kgpg[825]: propsReply "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev akonadi_notes_agent[954]: propsReply "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev akonadi_followupreminder_agent[946]: propsReply "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev akonadi_maildispatcher_agent[950]: propsReply "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev akonadi_sendlater_agent[955]: propsReply "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev akonadi_ical_resource[947]: propsReply "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev NetworkManager[1282]: <info>  [1565616686.7903] bus-manager: acquired D-Bus service "org.freedesktop.NetworkManager"
Aug 12 09:31:26 cdt3pm-dev NetworkManager[1282]: <info>  [1565616686.7907] manager[0x55ad0a9a7080]: monitoring kernel firmware directory '/lib/firmware'.
Aug 12 09:31:26 cdt3pm-dev systemd-logind[411]: Operation 'sleep' finished.
Aug 12 09:31:26 cdt3pm-dev dbus-daemon[412]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.6997' (uid=0 pid=1282 comm="/usr/bin/NetworkManager --no-daemon ")
Aug 12 09:31:26 cdt3pm-dev plasmashell[809]: propsReply "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev akonadi_followupreminder_agent[946]: nmReply "No such interface “org.freedesktop.NetworkManager” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev kgpg[825]: nmReply "No such interface “org.freedesktop.NetworkManager” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev akonadi_notes_agent[954]: nmReply "No such interface “org.freedesktop.NetworkManager” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev kdeinit5[758]: nmReply "No such interface “org.freedesktop.NetworkManager” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev akonadi_ical_resource[947]: nmReply "No such interface “org.freedesktop.NetworkManager” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev akonadi_sendlater_agent[955]: nmReply "No such interface “org.freedesktop.NetworkManager” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev akonadi_maildispatcher_agent[950]: nmReply "No such interface “org.freedesktop.NetworkManager” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev kdeinit5[758]: bluedevil: About to resume
Aug 12 09:31:26 cdt3pm-dev akonadi_followupreminder_agent[946]: "Object path cannot be empty"
Aug 12 09:31:26 cdt3pm-dev plasmashell[809]: nmReply "No such interface “org.freedesktop.NetworkManager” on object at path /org/freedesktop/NetworkManager"
Aug 12 09:31:26 cdt3pm-dev akonadi_sendlater_agent[955]: "Object path cannot be empty"
Aug 12 09:31:26 cdt3pm-dev akonadi_notes_agent[954]: "Object path cannot be empty"
Aug 12 09:31:26 cdt3pm-dev akonadi_ical_resource[947]: "Object path cannot be empty"
Aug 12 09:31:26 cdt3pm-dev kgpg[825]: "Object path cannot be empty"
Aug 12 09:31:26 cdt3pm-dev systemd[1]: Starting Hostname Service...
Aug 12 09:31:26 cdt3pm-dev akonadi_maildispatcher_agent[950]: "Object path cannot be empty"
Aug 12 09:31:26 cdt3pm-dev kdeinit5[758]: "Object path cannot be empty"
Aug 12 09:31:26 cdt3pm-dev plasmashell[809]: "Object path cannot be empty"
Aug 12 09:31:26 cdt3pm-dev org_kde_powerdevil[1009]: UdevQt: unhandled device action "move"

Finally, there looks to be some i915 error thrown towards the beginning of the log:

Aug 12 09:31:26 cdt3pm-dev kernel: Asynchronous wait on fence i915:kwin_wayland[717]/1:57e96 timed out (hint:intel_atomic_commit_ready+0x0/0x50 [i915])
Aug 12 09:31:26 cdt3pm-dev kernel: i915 0000:00:02.0: GPU HANG: ecode 9:0:0x00000000, no progress on rcs0
Aug 12 09:31:26 cdt3pm-dev kernel: i915 0000:00:02.0: Resetting rcs0 for no progress on rcs0
Aug 12 09:31:26 cdt3pm-dev kernel: i915 0000:00:02.0: Resetting rcs0 for hang on rcs0
Aug 12 09:31:26 cdt3pm-dev kernel: [drm:intel_guc_send_mmio [i915]] *ERROR* MMIO: GuC action 0x3 failed with error -110 0x3
Aug 12 09:31:26 cdt3pm-dev kernel: i915 0000:00:02.0: Resetting chip for hang on rcs0
Aug 12 09:31:26 cdt3pm-dev kernel: i915 0000:00:02.0: GPU reset not supported
Aug 12 09:31:26 cdt3pm-dev kernel: [drm] HuC: Loaded firmware i915/kbl_huc_ver02_00_1810.bin (version 2.0)
Aug 12 09:31:26 cdt3pm-dev kernel: [drm] GuC: Loaded firmware i915/kbl_guc_ver9_39.bin (version 9.39)
Aug 12 09:31:26 cdt3pm-dev kernel: i915 0000:00:02.0: GuC firmware version 9.39
Aug 12 09:31:26 cdt3pm-dev kernel: i915 0000:00:02.0: GuC submission enabled
Aug 12 09:31:26 cdt3pm-dev kernel: i915 0000:00:02.0: HuC enabled

I have attached the full journal log from when I opened the lid until when I rebooted. I wasn't able to find much on the actual error message, and it doesn't look like plasmashell dumps core when it crashes. Let me know if this can't be a linux-surface error and I'll take it down. My next step is to look for the error message in kwin's code. resume_journal.log