You are not logged in.

#1 2022-05-22 13:11:02

brunoczim
Member
Registered: 2022-05-22
Posts: 1

Games Having Segmentation Fault With Optirun (only when start drawing)

I have hybrid graphics and bumblebee (version 3.2.1-21) used to work fine, but after some update (although I am not sure if it is update's fault), applications started to segfault with optirun. More specifically, I had segfault with: emulated PS3 games on RPCS3, minecraft and Sonic The Hedgehog Project-06 with wine. However, minecraft did not crash by just using the launcher, it only crashed when starting the actual game program. In the same way RPCS3 did not crash by itself, the crash happens when I start an actual game. Besides that, glxgears works fine, and I have a pure OpenGL program from my undergraduate uni that works fine with optirun. So, I believe the problem is not with NVIDIA or bumblebee, but with a graphics library such as Vulkan.

Here is my graphics card (from lspci):

00:02.0 VGA compatible controller: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] (rev 02) (prog-if 00 [VGA controller])
01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX150] (rev a1)

Here is Xorg configuration used by bumblebee (/etc/bumblebee/xorg.conf.nvidia):

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
    BusID "PCI:1:0:0" # Originally commented

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection

One segmentation fault I found in journalctl:

May 21 18:53:12 bzim systemd-coredump[12684]: [?] Process 12675 (java) of user 1000 dumped core.
                                              
                                              Module /home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/bin/java without build-id.
                                              Module /home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/libjava.so without build-id.
                                              Module /home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/libjimage.so without build-id.
                                              Module /home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/server/libjvm.so without build-id.
                                              Module /home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/libjli.so without build-id.
                                              Module linux-vdso.so.1 with build-id c4fab7a7ee86e62a6272cb22354ad5a06fbf1a5d
                                              Module libbrotlicommon.so.1 with build-id acfd597a977c8087bb6184383daae2e828a9ce42
                                              Module libffi.so.8 with build-id f0a9586cf0f42d2b9971bd1065ca3a6b19f4a2c2
                                              Module libgmp.so.10 with build-id e58d34ab389d1b649c24195c2d145e3ff2e58290
                                              Module libhogweed.so.6 with build-id 2d70cff7b1841b4d9ca4e8e7726cd4b944c07fdc
                                              Module libtasn1.so.6 with build-id ee3429ca5e94718aea4fe5249fc859e0cd88e4e9
                                              Module libunistring.so.2 with build-id 617dbf3d3d6f85d6556a7a036e23845e95490158
                                              Module libidn2.so.0 with build-id 1ce2b50ad9f9821c2c629b521cf5a3c99593d332
                                              Module libbrotlidec.so.1 with build-id 66c54e9301f7e102ecc1d88547e5f0e8a056fe22
                                              Module libbrotlienc.so.1 with build-id 74adbc62e4fbb5da9d37b5aa458471f4130862ff
                                              Module libp11-kit.so.0 with build-id cc372ea3c28c4d3dfc633b4d2e933c8584d2af16
                                              Module libnettle.so.8 with build-id 9a878e513c02007598fcf1e2e286c2203f13536e
                                              Module libgnutls.so.30 with build-id cab291a7adfcc0c6221df6ebc923cd18ac7dd190
                                              Module libzstd.so.1 with build-id 3bccb8fe08e48d5ea135b1d0f99de0d771dd752f
                                              Module liblzma.so.5 with build-id 28b40c7af8098a66af6ee093b6986b91cad7694d
                                              Module libbz2.so.1.0 with build-id 919597c477c9b2cb9cdbb7745ed6494ac0e6da60
                                              Module libzip.so with build-id 68e333db519fa50980d49c7b5747320e87196bd1
                                              Module librt.so.1 with build-id f696f0167950c759f9ea43d46167fae35d43dded
                                              Module libXdmcp.so.6 with build-id 8ca0792d23c8b8b4c0864297512349292bea5955
                                              Module libXau.so.6 with build-id 1c67764663e07bec24d8951e5fd93f4d165979ff
                                              Module libxcb.so.1 with build-id 13d677412a71468381b11092915d231f664d18d3
                                              Module libGLX.so.0 with build-id 02bd4ac6acc4da9288c543ea1a0cdaa70c5e151a
                                              Module libGLdispatch.so.0 with build-id de981c020bd9dbdc159b11f4a2a541310cc3b8d5
                                              Module ld-linux-x86-64.so.2 with build-id fc93487393eea02b5bc6e76e48976fc325294c24
                                              Module libm.so.6 with build-id 210ec9905e41825671210f8f7d0b24d6c371196a
                                              Module libXext.so.6 with build-id d70f24beb4fad748d6becffdcc13e51be0a2ebfa
                                              Module libX11.so.6 with build-id d8e0be8e0323aa421366f19065ecd1c76405c130
                                              Module libXv.so.1 with build-id 39e98148d1ce4f1c09ee966968ce6d6197f56ac2
                                              Module libturbojpeg.so.0 with build-id 39ccebe65b671d31d2385763f55571357256b54d
                                              Module libEGL.so.1 with build-id 30b30de54f2f848a7b8bed469349c9a7ab1b7c22
                                              Module libGL.so.1 with build-id b915a2e48be6c9fd3cc6f9f4c7aab1f7aeed8a4c
                                              Module libc.so.6 with build-id 388993b6ef62f964bc7bf473c069fbfe957b9e44
                                              Module libdl.so.2 with build-id 94198b268228074fa9f405bbedbbae94112593ed
                                              Module libpthread.so.0 with build-id 95ae4f30a6f12ccbff645d30f8e1a3ee23ec7d36
                                              Module libz.so.1 with build-id fefe3219a96d682ec98fcfb78866b8594298b5a2
                                              Module libvglfaker.so with build-id a1281d5d1938ba0c8f06b05201ab9d98e1f4c695
                                              Module libdlfaker.so with build-id a50058dc14206035cd527fc27466574e14bf259b
                                              Stack trace of thread 12677:
                                              #0  0x00007fa83704636c n/a (libc.so.6 + 0x8e36c)
                                              #1  0x00007fa836ff6838 raise (libc.so.6 + 0x3e838)
                                              #2  0x00007fa836fe0535 abort (libc.so.6 + 0x28535)
                                              #3  0x00007fa835a11219 n/a (/home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/server/libjvm.so + 0x252219)
                                              #4  0x00007fa83668b73c n/a (/home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/server/libjvm.so + 0xecc73c)
                                              #5  0x00007fa83668c15b n/a (/home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/server/libjvm.so + 0xecd15b)
                                              #6  0x00007fa83668c18e n/a (/home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/server/libjvm.so + 0xecd18e)
                                              #7  0x00007fa836536613 n/a (/home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/server/libjvm.so + 0xd77613)
                                              #8  0x00007fa836ff68e0 n/a (libc.so.6 + 0x3e8e0)
                                              
                                              Stack trace of thread 12675:
                                              #0  0x00007fa837041119 n/a (libc.so.6 + 0x89119)
                                              #1  0x00007fa837046113 n/a (libc.so.6 + 0x8e113)
                                              #2  0x00007fa8371d9bda _init (/home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/libjli.so + 0x8bda)
                                              #3  0x00007fa8371d6a9d _init (/home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/libjli.so + 0x5a9d)
                                              #4  0x00007fa8371d8324 _init (/home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/lib/libjli.so + 0x7324)
                                              #5  0x000055fb95041b03 n/a (/home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/bin/java + 0xb03)
                                              #6  0x00007fa836fe1290 n/a (libc.so.6 + 0x29290)
                                              #7  0x00007fa836fe134a __libc_start_main (libc.so.6 + 0x2934a)
                                              #8  0x000055fb95041ba1 n/a (/home/bruno/.minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/bin/java + 0xba1)
                                              ELF object binary architecture: AMD x86-64

Another segmentation fault I found in journalctl (this one does not seem to be on the game itself, but a response of rpcs3 to the game's segfault):

May 21 17:24:38 bzim systemd-coredump[2780]: [?] Process 2684 (rpcs3) of user 1000 dumped core.
                                             
                                             Module /usr/bin/rpcs3 without build-id.
                                             Module [exe] without build-id.
                                             Module [exe] without build-id.
                                             Stack trace of thread 2684:
                                             #0  0x00007f2bddeb236c n/a (n/a + 0x0)
                                             ELF object binary architecture: AMD x86-64

A more relevant segfault log:

Module libcairo.so.2 with build-id a222d042e56108d2786ece7bf291b56ba2069591
                                             Module libharfbuzz.so.0 with build-id a11faa61f71b258fb92b717723757fc7dd141c01
                                             Module libpango-1.0.so.0 with build-id 7e27c1e46a1d958f6b16e1ba199f8bdb3f100566
                                             Module libpangocairo-1.0.so.0 with build-id b65f507d9e33adfbd19369acef5e5a0a2422c6d1
                                             Module libgio-2.0.so.0 with build-id 8c411770513e0bc758a1bbe661af14c972e2a3c4
                                             Module libglib-2.0.so.0 with build-id e268e80e668ce871312cf50e9969f88b086e33f2
                                             Module libgmodule-2.0.so.0 with build-id c6df28882f153ee03d0fb33bb8aac2b219ebaacc
                                             Module libXext.so.6 with build-id d70f24beb4fad748d6becffdcc13e51be0a2ebfa
                                             Module libX11.so.6 with build-id d8e0be8e0323aa421366f19065ecd1c76405c130
                                             Module libXv.so.1 with build-id 39e98148d1ce4f1c09ee966968ce6d6197f56ac2
                                             Module libturbojpeg.so.0 with build-id 39ccebe65b671d31d2385763f55571357256b54d
                                             Module libEGL.so.1 with build-id 30b30de54f2f848a7b8bed469349c9a7ab1b7c22
                                             Module libGL.so.1 with build-id b915a2e48be6c9fd3cc6f9f4c7aab1f7aeed8a4c
                                             Module ld-linux-x86-64.so.2 with build-id fc93487393eea02b5bc6e76e48976fc325294c24
                                             Module libc.so.6 with build-id 388993b6ef62f964bc7bf473c069fbfe957b9e44
                                             Module libgcc_s.so.1 with build-id 0e3de903950e35ae59a5de8c00b1817a4a71ca01
                                             Module libm.so.6 with build-id 210ec9905e41825671210f8f7d0b24d6c371196a
                                             Module libstdc++.so.6 with build-id b3eaebcb5369487562e52dd8d016c9cd77f80c54
                                             Module libgobject-2.0.so.0 with build-id 4337ec84b2f33ec39a95863d47bfca0a28afd488
                                             Module libgdk-3.so.0 with build-id 4a9a6d5ddd18f22c56c05773208f8808cefacab6
                                             Module libgtk-3.so.0 with build-id 48baf44dfd4d51f8c2b81d852eb44de692c16b19
                                             Module libpthread.so.0 with build-id 95ae4f30a6f12ccbff645d30f8e1a3ee23ec7d36
                                             Module libdl.so.2 with build-id 94198b268228074fa9f405bbedbbae94112593ed
                                             Module libvglfaker.so with build-id a1281d5d1938ba0c8f06b05201ab9d98e1f4c695
                                             Module libdlfaker.so with build-id a50058dc14206035cd527fc27466574e14bf259b
                                             Stack trace of thread 1106:
                                             #0  0x00007f636d7a06f6 n/a (/home/bruno/.minecraft/launcher/libGLESv2.so + 0x2176f6)
                                             #1  0x00007f636d7c6f15 n/a (/home/bruno/.minecraft/launcher/libGLESv2.so + 0x23df15)
                                             #2  0x00007f636d733ab0 n/a (/home/bruno/.minecraft/launcher/libGLESv2.so + 0x1aaab0)
                                             #3  0x00007f6375eb9880 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x5762880)
                                             #4  0x00007f6376796722 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x603f722)
                                             #5  0x00007f63737098d0 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x2fb28d0)
                                             #6  0x00007f63736f89e2 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x2fa19e2)
                                             #7  0x00007f63737001c1 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x2fa91c1)
                                             #8  0x00007f63736fd5d0 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x2fa65d0)
                                             #9  0x00007f63736ff828 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x2fa8828)
                                             #10 0x00007f63736ff96a n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x2fa896a)
                                             #11 0x00007f6376227cb7 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x5ad0cb7)
                                             #12 0x00007f6374c5a3a4 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x45033a4)
                                             #13 0x00007f6374c6af28 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x4513f28)
                                             #14 0x00007f6374c22727 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x44cb727)
                                             #15 0x00007f6382003163 g_main_context_dispatch (libglib-2.0.so.0 + 0x55163)
                                             #16 0x00007f63820599e9 n/a (libglib-2.0.so.0 + 0xab9e9)
                                             #17 0x00007f63820006c5 g_main_context_iteration (libglib-2.0.so.0 + 0x526c5)
                                             #18 0x00007f6374c22592 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x44cb592)
                                             #19 0x00007f6374c6b5ca n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x45145ca)
                                             #20 0x00007f6374c41e6e n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x44eae6e)
                                             #21 0x00007f63799293da n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x91d23da)
                                             #22 0x00007f6374accc1a n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x4375c1a)
                                             #23 0x00007f6374acdda2 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x4376da2)
                                             #24 0x00007f637742655f n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x6ccf55f)
                                             #25 0x00007f6377426aae n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x6ccfaae)
                                             #26 0x00007f6374acc0f1 n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x43750f1)
                                             #27 0x00007f6374b460ec n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x43ef0ec)
                                             #28 0x00007f6374b2135d n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x43ca35d)
                                             #29 0x00007f637229639a n/a (/home/bruno/.minecraft/launcher/libcef.so + 0x1b3f39a)
                                             #30 0x00007f637a6009f6 n/a (/home/bruno/.minecraft/launcher/liblauncher.so + 0x2009f6)
                                             ELF object binary architecture: AMD x86-64

The libGLESv2.so shared object seems to belong to libglvnd (version 1.4.0-2). It is a potential cause. However, I've already tried reinstalling it (and lots of other packages), and I have already tried downgrading this package. Did not work. What should I do?

Last edited by brunoczim (2022-05-22 14:29:44)

Offline

Board footer

Powered by FluxBB