Desktop environment crashes when working in Intellij IDEA

Bug #1918557 reported by Ivan Senin
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
unity (Ubuntu)
Confirmed
Undecided
Unity7 Maintainers Team

Bug Description

Happens sporadically while I'm working on kotlin code in Intellij IDEA (2020.3.2) doing anything: navigating around my code or trying to create a new project.

My setup:
laptop + external monitor (dual monitor mode).
Ubuntu 20.04.2 LTS

You can find the logged errors in the syslog snippet below.

$ apt-cache policy compiz
compiz:
  Installed: 1:0.9.14.1+20.04.20200211-0ubuntu1

$ apt-cache policy unity
unity:
  Installed: 7.5.0+20.04.20200312-0ubuntu1

## syslog output:
```
Mar 10 23:48:26 hud-service[3768]: #033[31mvoid DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher*)#033[0m: "No such interface “com.canonical.dbusmenu” on object at path /org/ayatana/bamf/window/115343524"
Mar 10 23:48:44 unity-panel-ser[3515]: menus_destroyed: assertion 'IS_WINDOW_MENU(wm)' failed
Mar 10 23:48:48 hud-service[3768]: #033[31mvoid DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher*)#033[0m: "No such interface “com.canonical.dbusmenu” on object at path /org/ayatana/bamf/window/115343534"
Mar 10 23:48:54 compiz[3508]: ERROR 2021-03-10 23:48:54 unity.decoration.shape DecorationsShape.cpp:73 Failed to get shape rectangles
Mar 10 23:48:54 kernel: [68000.270753] compiz[3508]: segfault at 8 ip 00007f7d8705903a sp 00007ffc2f725770 error 4 in libunityshell.so[7f7d86f5d000+345000]
Mar 10 23:48:54 kernel: [68000.270767] Code: 02 00 00 48 89 93 48 02 00 00 48 85 ff 74 1b e8 9c b6 f5 ff 48 8b 7c 24 28 48 85 ff 74 05 e8 8d b6 f5 ff 48 8b 83 40 02 00 00 <48> 8b 50 08 48 39 50 10 0f 84 1c 01 00 00 4c 8b 32 4d 85 f6 0f 84
Mar 10 23:48:54 systemd[2928]: Starting Notification regarding a crash report...
Mar 10 23:48:54 update-notifier-crash[107247]: /usr/bin/whoopsie
Mar 10 23:48:54 systemd[2928]: update-notifier-crash.service: Main process exited, code=exited, status=1/FAILURE
```

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: unity 7.5.0+20.04.20200312-0ubuntu1
ProcVersionSignature: Ubuntu 5.8.0-44.50~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-44-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.driver.nvidia.capabilities.gpu0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/capabilities/gpu0'
.proc.driver.nvidia.capabilities.mig: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/capabilities/mig'
.proc.driver.nvidia.gpus.0000.01.00.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0000:01:00.0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 450.102.04 Tue Dec 29 06:51:23 UTC 2020
 GCC version: gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
.tmp.unity_support_test.0:

ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: skip
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity:Unity7:ubuntu
Date: Wed Mar 10 23:56:47 2021
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
GraphicsCard:
 Intel Corporation UHD Graphics 630 (Mobile) [8086:3e9b] (prog-if 00 [VGA controller])
   Subsystem: Lenovo UHD Graphics 630 (Mobile) [17aa:229f]
 NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] [10de:1f91] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Lenovo TU117M [GeForce GTX 1650 Mobile / Max-Q] [17aa:229f]
InstallationDate: Installed on 2020-07-15 (238 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: LENOVO 20QVCTO1WW
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.8.0-44-generic root=/dev/mapper/vgubuntu-root ro
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/06/2020
dmi.bios.release: 1.34
dmi.bios.vendor: LENOVO
dmi.bios.version: N2OET47W (1.34 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20QVCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0R32862 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.23
dmi.modalias: dmi:bvnLENOVO:bvrN2OET47W(1.34):bd08/06/2020:br1.34:efr1.23:svnLENOVO:pn20QVCTO1WW:pvrThinkPadX1Extreme2nd:rvnLENOVO:rn20QVCTO1WW:rvrSDK0R32862WIN:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad X1 Extreme 2nd
dmi.product.name: 20QVCTO1WW
dmi.product.sku: LENOVO_MT_20QV_BU_Think_FM_ThinkPad X1 Extreme 2nd
dmi.product.version: ThinkPad X1 Extreme 2nd
dmi.sys.vendor: LENOVO
modified.conffile..etc.apport.crashdb.conf: [modified]
mtime.conffile..etc.apport.crashdb.conf: 2021-03-10T23:34:08.612728
version.compiz: compiz 1:0.9.14.1+20.04.20200211-0ubuntu1
version.libdrm2: libdrm2 2.4.102-1ubuntu1~20.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 20.2.6-0ubuntu0.20.04.1
version.libgl1-mesa-glx: libgl1-mesa-glx 20.2.6-0ubuntu0.20.04.1
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.20.9-2ubuntu1.2~20.04.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20200226-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

Revision history for this message
Ivan Senin (ivansenin) wrote :
Ivan Senin (ivansenin)
description: updated
description: updated
Revision history for this message
Ivan Senin (ivansenin) wrote :

WORKAROUND:

Just patch your libunityshell.so (for me, located at /usr/lib/x86_64-linux-gnu/compiz/libunityshell.so).
Among symbols of this library find ComputeShapedShadowQuad and change its first instruction into "ret" using a reverse engineering hex editor of your choice.
DISCLAIMER: I did not check the code there in depth, so I cannot guarantee that this solution won't create a memory leak or something else. But for me it did fix the problem.
I actually tried to find source code of DecorationsShape.cpp:73 but failed to do so. Unity 7 seems to be abandoned or something, that's really strange considering I'm using Ubuntu 20 LTS.

Revision history for this message
Ivan Senin (ivansenin) wrote :

UPD. I found the sources, so nevermind. sorry, my bad

Rudra Saraswat (rs2009)
Changed in unity (Ubuntu):
assignee: nobody → Unity7 Maintainers Team (unity7maintainers)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.