-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault when running snis_client #301
Comments
Anything in snis_client_log.txt ? |
Also, long shot, probably not the same, but I found this: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1877879 "As of Ubuntu 20.04, on intel graphics with intel driver (not modesetting), I got segfault whenever anything tries to use GL. This happens unless I export MESA_LOADER_DRIVER_OVERRIDE=i965. One says that it does not happen with modesetting driver." So maybe try "export MESA_LOADER_DRIVER_OVERRIDE=i965" ? |
Same issue, though the backtrace is now referencing the i965 drivers so at least we know that the env variable is being honored.
|
Very mysterious. Anything in snis_client_log.txt ? |
So, this feels like either a driver bug (in which case we're probably hosed), or perhaps my program is doing something wrong which drivers that I've seen up to now have been erroneously allowing me to get away with. In the latter case, we have some hope. Here's a patch which might help to narrow down what I might be doing wrong, if in fact I'm doing something wrong. Give it a try when you get a chance, and hopefully there will be some clues in snis_client_log.txt. |
I'll apply the patch when I get home later tonight. I also have another, more stable system there (Mint). It may be that I'm too much on the cutting edge on my laptop. |
Are you using Wayland perhaps? Probably will have to run Xorg. |
A little bit of tinkering and it seems to be working. Installed an AUR package of glew with support for EGL. It's running like a dream. Thank you, everybody for your time and help! |
Cool! |
I just want to take a moment to appreciate this log message, love it. |
If someone knows how to implement aspect ratio constraints in Wayland, the place to do it is here: https://github.com/smcameron/space-nerds-in-space/blob/master/snis_xwindows_hacks.c#L50 although some renaming of things would be in order. snis_xwindows_hacks -> snis_window_manager_hacks, etc. |
BTW, speaking of Wayland and aspect ratios, I think I may have figured out a way to do aspect ratio constraining for window managers that don't or won't do it for you, see: #302 I haven't tested my fix on Wayland because I don't have any systems running Wayland. I have tested on X11 (disabling the native X11 way of constraining the aspect ratio first) and it seems to work. Or works about 90%, that is, you can drag the window to sizes that do not conform to the aspect ratio, but as soon as you release the mouse button it snaps to the correct size. Since at least one person in this thread is running Wayland, maybe one of you could test that out for me (just resize the snis_client window and make sure it maintains the correct aspect ratio.) |
Version: git main branch
Distribution: Arch
Linux XYZLinux 5.13.12-arch1-1 #1 SMP PREEMPT Wed, 18 Aug 2021 20:49:03 +0000 x86_64 GNU/Linux
gcc:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (GCC)
Window Manager: SwayWM (running under wlroots)
Error message:
Thread 1 "snis_client" received signal SIGSEGV, Segmentation fault.
0x00007ffff77dc738 in __memmove_avx_unaligned_erms () from /usr/lib/libc.so.6
Backtrace:
(gdb) bt
#0 0x00007ffff77dc738 in __memmove_avx_unaligned_erms () from /usr/lib/libc.so.6
#1 0x00007fffee8a2cf2 in ?? () from /usr/lib/dri/iris_dri.so
#2 0x00007fffef392e37 in ?? () from /usr/lib/dri/iris_dri.so
#3 0x00007fffee4d060a in ?? () from /usr/lib/dri/iris_dri.so
#4 0x00005555555c10a5 in draw_vertex_buffer_2d.part ()
#5 0x00005555555c34e7 in graph_dev_draw_entity ()
#6 0x00005555555aac0f in render_entities ()
#7 0x00005555555cf3a5 in show_rotating_wombat ()
#8 0x0000555555609b7e in main_da_expose ()
#9 0x000055555557866c in main ()
quit)
Thoughts: Using Nouveau driver for the internal GPU and Intel Corporation CometLake-H GT2 [UHD Graphics] for the integrated.
The text was updated successfully, but these errors were encountered: