Skip to content
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

blender seg fault on nixos-24.05 #334143

Closed
husnoo opened this issue Aug 12, 2024 · 5 comments
Closed

blender seg fault on nixos-24.05 #334143

husnoo opened this issue Aug 12, 2024 · 5 comments
Labels
0.kind: bug Something is broken

Comments

@husnoo
Copy link

husnoo commented Aug 12, 2024

$ cat /proc/cpuinfo  | grep "model name" | head -n1
model name      : Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz

$ glxinfo  | grep Graphics
    Device: Mesa Intel(R) HD Graphics 4000 (IVB GT2) (0x166)
OpenGL renderer string: Mesa Intel(R) HD Graphics 4000 (IVB GT2)

$ nix-info 
system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.18.5, channels(root): "nixos-24.05", channels(nawal): "", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

$ nix-shell -p blender
[nix-shell:~]$ blender
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)

[nix-shell:~]$ cat /tmp/blender.crash.txt
# Blender 4.1.1, Unknown revision

# backtrace
/nix/store/67wzn3pw3100q86qazcwkrkwg99zidi2-blender-4.1.1/bin/blender() [0xd8cf43]
/nix/store/67wzn3pw3100q86qazcwkrkwg99zidi2-blender-4.1.1/bin/blender() [0x66c78c]
/nix/store/87848rvrg5c7jmplpi0iapvbxyj9kfid-glibc-2.39-52/lib/libc.so.6(+0x3ff30) [0x7f2809252f30]
/nix/store/67wzn3pw3100q86qazcwkrkwg99zidi2-blender-4.1.1/bin/blender() [0xe14dac]
/nix/store/67wzn3pw3100q86qazcwkrkwg99zidi2-blender-4.1.1/bin/blender() [0xe14e0d]
/nix/store/67wzn3pw3100q86qazcwkrkwg99zidi2-blender-4.1.1/bin/blender() [0xdd9404]
/nix/store/67wzn3pw3100q86qazcwkrkwg99zidi2-blender-4.1.1/bin/blender() [0xdf0cb7]
/nix/store/67wzn3pw3100q86qazcwkrkwg99zidi2-blender-4.1.1/bin/blender() [0xdf653f]
/nix/store/67wzn3pw3100q86qazcwkrkwg99zidi2-blender-4.1.1/bin/blender() [0x61dbb0]
/nix/store/87848rvrg5c7jmplpi0iapvbxyj9kfid-glibc-2.39-52/lib/libc.so.6(+0x2a10e) [0x7f280923d10e]
/nix/store/87848rvrg5c7jmplpi0iapvbxyj9kfid-glibc-2.39-52/lib/libc.so.6(__libc_start_main+0x89) [0x7f280923d1c9]
/nix/store/67wzn3pw3100q86qazcwkrkwg99zidi2-blender-4.1.1/bin/blender() [0x6683c5]
# Python backtrace




[nix-shell:~]$ env LIBGL_DEBUG=verbose blender
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/nawal/.drirc: No such file or directory.
using driver i915 for 11
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/nawal/.drirc: No such file or directory.
pci id for fd 11: 8086:0166, driver crocus
MESA-LOADER: dlopen(/run/opengl-driver/lib/dri/crocus_dri.so)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/nawal/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/nawal/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/nawal/.drirc: No such file or directory.
Using DRI3 for screen 0
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)





$ nix-shell -p blender -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz
[nix-shell:~]$ blender
/build/blender-2.90.0/intern/ghost/intern/GHOST_WindowX11.cpp:206: X11 glXChooseVisual() failed, verify working openGL system!
initial window could not find the GLX extension
Writing: /tmp/blender.crash.txt

[nix-shell:~]$ cat /tmp/blender.crash.txt
# Blender 2.90.0, Unknown revision

# backtrace
/nix/store/nxyrxj02c7qdr2rph45a5pbqz9rvlxjj-blender-2.90.0/bin/blender(BLI_system_backtrace+0x33) [0x32301a3]
/nix/store/nxyrxj02c7qdr2rph45a5pbqz9rvlxjj-blender-2.90.0/bin/blender() [0xbc025c]
/nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6(+0x380f0) [0x7f82fd4940f0]
/nix/store/nxyrxj02c7qdr2rph45a5pbqz9rvlxjj-blender-2.90.0/bin/blender() [0xea6278]
/nix/store/nxyrxj02c7qdr2rph45a5pbqz9rvlxjj-blender-2.90.0/bin/blender(wm_window_ghostwindows_ensure+0x2d) [0xea62ed]
/nix/store/nxyrxj02c7qdr2rph45a5pbqz9rvlxjj-blender-2.90.0/bin/blender(WM_check+0x5e) [0xe7c6ae]
/nix/store/nxyrxj02c7qdr2rph45a5pbqz9rvlxjj-blender-2.90.0/bin/blender(wm_homefile_read+0x31d) [0xe8a98d]
/nix/store/nxyrxj02c7qdr2rph45a5pbqz9rvlxjj-blender-2.90.0/bin/blender(WM_init+0x137) [0xe8ef17]
/nix/store/nxyrxj02c7qdr2rph45a5pbqz9rvlxjj-blender-2.90.0/bin/blender(main+0x2dd) [0xb6fbed]
/nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6(__libc_start_main+0xed) [0x7f82fd47fc7d]
/nix/store/nxyrxj02c7qdr2rph45a5pbqz9rvlxjj-blender-2.90.0/bin/blender(_start+0x2a) [0xbbc8aa]
# Python backtrace

This seems related: #75868

I have this in configuration.nix:

    hardware.opengl.extraPackages = [
        pkgs.vaapiIntel
        pkgs.mesa.drivers
    ];
@husnoo husnoo added the 0.kind: bug Something is broken label Aug 12, 2024
@amarshall
Copy link
Member

This is indeed likely the linked issue, which is not really Blender-specific, but instead a generic issue with OpenGL runtime mismatches. Please ensure and verify that Blender is coming from the same nixpkgs commit that NixOS is (e.g., Blender is not from Home Manager), and that the system has been rebooted since the last nixpkgs update.

@amarshall
Copy link
Member

Closing as believe this is a duplicate of above-mentioned issue, and no response from reporter for some time. Feel free to reopen if you believe this is in error.

@amarshall amarshall closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2024
@cxandru
Copy link

cxandru commented Nov 10, 2024

@husnoo did you manage to get blender to run on your system? I have the same graphics hardware, so I'm curious if there's some way you got it to work.

@cxandru
Copy link

cxandru commented Nov 10, 2024

(In my case I do have blender installed via my configuration.nix, so I would expect the issue to not be one of OpenGL runtime mismatch)

@husnoo
Copy link
Author

husnoo commented Nov 10, 2024

no sorry, I haven't rebooted in ages, I tend to have so much open that I can't be bothered. it wasn't an urgent thing for me, I'll pick it up at the next upgrade I imagine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

3 participants