Closed ChrisJAllan closed 8 years ago
Seems ok here. Can you provide an example of an application it's happening with and how you are closing it?
It happens with mpv by pressing 'q' and various wine games, but not with anything else I tried (gedit, chromium, native games) and also not when closing with alt-f4. Could it be an application error?
Not sure. I tried it with a couple things and couldn't reproduce it so was just hoping to figure out how.
Yes, I have been seeing this also under Fedora 23/24 (64bit). For me it happens with mplayer. Currently running cinnamon-3.0.6 & muffin-3.0.5
It doesn't happen consistently. The first time running mplayer after logging into cinnamon it will crash cinnamon, then it can be run several times before crashing it again, until logging out and in again where it will happen on the first run of mplayer.
I haven't seen this with vlc, totem or ffplay.
I'm running on an Intel Baytrail system if that makes any difference.
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
$ glxinfo | grep ^OpenGL OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) Bay Trail OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.2.2 (git-5de088f) OpenGL core profile shading language version string: 3.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: OpenGL version string: 3.0 Mesa 11.2.2 (git-5de088f) OpenGL shading language version string: 1.30 OpenGL context flags: (none) OpenGL extensions: OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.2 (git-5de088f) OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00 OpenGL ES profile extensions:
I tried here with mpv. Start playing something fullscreen the window and then close with 'q'. No problems. This is on Mint 18
I've the same issue with the Tomb Raider game running under LMDE2 Cinnamon 64bit.
The game runs smoothly in full screen but when I exit the game the following segfault appears and cinnamon restarts.
When running again Tomb Raider no segfaults observed anymore only after logout/login of DE.
dmesg: [ 7727.667689] cinnamon[3797]: segfault at 18 ip 00007f9ddd1c8b80 sp 00007ffe01d77eb8 error 4 in libmuffin.so.0.0.0[7f9ddd166000+bc000]
.xsession-errors: TombRaider: crash reporter initialised with path "/home/jdoe/.local/share/feral-interactive/Tomb Raider/crashes" Setting breakpad minidump AppID = 203160 Steam_SetMinidumpSteamID: Caching Steam ID: 76561198074590943 [API loaded no] Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number Window manager warning: Treating resize request of legacy application 0x4a0001a (Tomb Raide) as a fullscreen request ERROR: ld.so: object 'libminimum_thread_stack_size_wrapper.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. Total loaded objects: 0Game removed: AppID 203160 "Tomb Raider", ProcID 14080 No cached sticky mapping in ActivateActionSet.Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
(gnome-panel:14202): Gtk-CRITICAL **: gtk_accelerator_parse_with_keycode: assertion 'accelerator != NULL' failed
\ (gnome-panel:14202): WARNING **: Unable to parse mouse modifier '(null)'
** metacity:ERROR:ui/ui.c:604:meta_ui_get_default_window_icon: assertion failed: (default_icon) cinnamon-session[3596]: WARNING: t+5959.91061s: App 'cinnamon.desktop' respawning too quickly cinnamon-session[3596]: CRITICAL: t+5959.91088s: We failed, but the fail whale is dead. Sorry.... cinnamon-session[3596]: WARNING: t+5959.91385s: Application 'cinnamon.desktop' killed by signal 15 cinnamon-session[3596]: WARNING: t+5959.91390s: App 'cinnamon.desktop' respawning too quickly Panel leaving: a new panel shell is starting.
(gnome-panel:14202): EggSMClient-CRITICAL **: egg_sm_client_set_mode: assertion 'global_client == NULL || global_client_mode == EGG_SM_CLIENT_MODE_DISABLED' failed cinnamon-session[3596]: WARNING: t+5960.11237s: App 'cinnamon.desktop' respawning too quickly cinnamon-session[3596]: WARNING: t+5960.11255s: App 'cinnamon.desktop' respawning too quickly Cjs-Message: JS LOG: About to start Cinnamon
inxi -Fxz
System: Host: chatool Kernel: 3.16.7-ckt20-2-amd64-bfq x86_64 (64 bit gcc: 4.9.2)
Desktop: Cinnamon 3.0.6 (Gtk 3.14.5) Distro: Linux Mint Debian Edition
Machine: Mobo: Gigabyte model: Z97-HD3 v: x.x Bios: American Megatrends v: F9 date: 07/31/2015
CPU: Quad core Intel Core i5-4460 (-MCP-) cache: 6144 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 25608
Clock Speeds: 1: 3273 MHz 2: 3357 MHz 3: 3251 MHz 4: 3202 MHz
Graphics: Card: NVIDIA GM107 [GeForce GTX 750] bus-ID: 01:00.0
Display Server: X.Org 1.16.4 driver: nvidia Resolution: 1920x1080@60.00hz
GLX Renderer: GeForce GTX 750/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 367.27 Direct Rendering: Yes
Audio: Card-1 NVIDIA Device 0fbc bus-ID: 01:00.1 Sound: ALSA v: k3.16.7-ckt20-2-amd64-bfq
Card-2 Creative Labs SB Audigy driver: snd_emu10k1 port: c000 bus-ID: 05:01.0
Network: Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8169 v: 2.3LK-NAPI port: d000 bus-ID: 03:00.0
IF: eth2 state: up speed: 100 Mbps duplex: full mac:
nvidia drivers Tested following nvidia drivers with same result: 352.79, 364.19 and 367.27.
Here's a more thorough backtrace from the core file in gdb
at core/window.c:11279
at compositor/compositor.c:1351
at clutter-master-clock-default.c:437
at clutter-master-clock-default.c:567
at gmain.c:3154
at main.c:329
So it looks like the segfault is due to window being null in meta_window_get_display()
Given the proceeding call to meta_window_actor_set_redirected() I'm going to see if I can hit this with org.cinnamon.muffin.unredirect-fullscreen-windows set to false.
Not so far at least...
That seems to work, thanks!
Indeed, setting unredirect-fullscreen-windows to false did the trick. No more segfaults but less fps for Tomb Raider ...
There's an obvious fix/patch for this, but I'm still working to reproduce it on my machine here - I'd like to make sure this isn't just some final symptom of something more devious at work.
Does this happen strictly when closing a program? Not just un-fullscreening? It sounds like it from the posts but I'd like to be clear.
Yes, only when closing.
Sorry I didn't see this bug report before, I have been testing a fix for this issue since May locally. I have opened a PR for it here (also includes some other fixes) https://github.com/linuxmint/muffin/pull/250
I have installed the latest version of muffin with the above fix implemented and find that cinnamon does not crash after closing a full screen window if the compositing is not disabled for full screens. If compositing is disabled for full screen windows then cinnamon does appear to crash and ask if you want to restart or use fall back mode.
Can you get a trace? The bug described in this issue should be fixed. If the trace is different, open a new issue please.
I'm going to reopen this for now. The original issue is that Cinnamon crashes when closing full screen windows with "Disable compositing for full screen windows" turned on. According to @krsoulsby he is still seeing the same problem even with the above fix merged.
Even if the root cause is different it's still the same symptoms.
@krsoulsby Did you compile muffin from git or patch 3.0.5? A version including the fix hasn't been released officially yet.
I compiled muffin from git using the mint-dev-build, I looked in the source code and it looked like the patch was applied, though I might have been mistaken
From my log I get
kernel: [11564.228131] cinnamon[9683]: segfault at 18 ip 00007f2425e94680 sp 00007ffeaa20d818 error 4 in libmuffin.so.0.0.0[7f2425e35000+b9000]
when closing the full screen window. There has been a change, I used to get a crash if compositing was disabled or not. Now I only get the crash with compositing on full screen windows disabled.
Apologies, I may have mislead you. Just recompiled the latest git version and tested with no problems but noticed the update manager now wants to update Muffin to 3.0.5+sarah replacing the 3.0.5 version built by mint-dev-build. I may have updated this with out realising the difference previously and lost the git version. Have temporally stopped update manager updating muffin in the short term
No problem. If the issue persists with the locally compiled version, follow these steps here provided by @mtwebster to get a full backtrace that can help us track down the issue.
https://github.com/linuxmint/Cinnamon/issues/4932#issuecomment-170778051
The debug symbols may not match, though, since you're using a locally compiled version. If that is the case you may need to also generate a cinnamon-dbg package rather than installing the repo version.
Successfully verified fix. After exiting Tomb Raider when unredirect-fullscreen-windows is set to true no more segfaults or crashes are observed. Thank you guys and open source !
It's happening for me with Mint 18 specifically with programs running in Wine.
Cinnamon segfaults in libmuffin any time a fullscreen window is closed.
Arch Linux, Cinnamon 3.0.5, Muffin 3.0.4
dmesg:
[54293.295134] cinnamon[8712]: segfault at 18 ip 00007efbf78f30a0 sp 00007ffbffffb178 error 4 in libmuffin.so.0.0.0[7efbf7890000+bc000]
trace:
Edit: Stack trace with fresh git build and debug symbols: