Blender OpenGL crash on startup (Linux) #55696

Closed
opened 2018-07-02 22:17:24 +02:00 by Henry · 6 comments

System Information

HARDWARE:
CPU: Intel i5 3337U
GPU: Intel HD Graphics 4000

SOFTWARE:
Arch Linux
Kernel: 4.17.2-1 to 4.17.2-1
Mesa: 18.1.1-1 to 18.1.3-1

Blender Version
Broken: current build (98d2055089)
Worked: (about a month ago (early June))
(2.79b still works fine)
(crashes with both buildbot and home built versions (all done on a system with no 2.80 files in ~/.config/blender))

error

when opening blender2.8 (either home built debug version with default cmake options, or the buildbot version), blender crashes on launch
(this error is also mentioned | here )

terminal output:

./blender --debug --debug-all
Switching to fully guarded memory allocator.
Color management: using fallback mode for management
Blender 2.80 (sub 20)
Build: 2018-07-02 21:01:33 Linux Debug
argv[0] = ../build_linux_debug/bin/blender
argv[1] = --debug
argv[2] = --debug-all
ndof: spacenavd not found
read file 
  Version 272 sub 2 date unknown hash unknown
deg_graph_id_tag_update: id=GRCollection 1 flags=COPY_ON_WRITE
deg_graph_id_tag_update: id=GRCollection 1 flags=COPY_ON_WRITE
deg_graph_id_tag_update: id=GRCollection 1 flags=COPY_ON_WRITE
deg_graph_id_tag_update: id=WS3D View Full flags=TRANSFORM, GEOMETRY, TIME
deg_graph_id_tag_update: id=WSAnimation flags=TRANSFORM, GEOMETRY, TIME
deg_graph_id_tag_update: id=WSCompositing flags=TRANSFORM, GEOMETRY, TIME
deg_graph_id_tag_update: id=WSGame Logic flags=TRANSFORM, GEOMETRY, TIME
deg_graph_id_tag_update: id=WSMotion Tracking flags=TRANSFORM, GEOMETRY, TIME
deg_graph_id_tag_update: id=WSScripting flags=TRANSFORM, GEOMETRY, TIME
deg_graph_id_tag_update: id=WSUV Editing flags=TRANSFORM, GEOMETRY, TIME
deg_graph_id_tag_update: id=WSVideo Editing flags=TRANSFORM, GEOMETRY, TIME
Color management: scene view "Filmic" not found, setting default "Default".
Received X11 Error:
        error code:   167
        request code: 152
        minor code:   34
        error text:   GLXBadFBConfig
Received X11 Error:
        error code:   167
        request code: 152
        minor code:   34
        error text:   GLXBadFBConfig
Received X11 Error:
        error code:   167
        request code: 152
        minor code:   34
        error text:   GLXBadFBConfig
ED_screen_refresh: set screen
Received X11 Error:
        error code:   8
        request code: 152
        minor code:   34
        error text:   BadMatch (invalid parameter attributes)
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  205
  Current serial number in output stream:  205

Blender crashes before it can produce a backtrace. However, I stepped it through slowly with gdb (to find the point of crash) i get a completely different error (this time producing a backtrace)

# Blender 2.80 (sub 20), Commit date: 2018-07-02 18:25, Hash 98d20550897

# backtrace
/home/henry/Desktop/build_linux_debug/bin/blender(BLI_system_backtrace+0x35) [0x5555581f8afb]
/home/henry/Desktop/build_linux_debug/bin/blender(+0x1a08027) [0x555556f5c027]
/home/henry/Desktop/build_linux_debug/bin/blender(+0x1a08229) [0x555556f5c229]
/usr/lib/libc.so.6(+0x368f0) [0x7ffff1f688f0]
/home/henry/Desktop/build_linux_debug/bin/blender(+0x256ec33) [0x555557ac2c33]
/home/henry/Desktop/build_linux_debug/bin/blender(GPU_framebuffer_current_get+0x9) [0x555557ac377b]
/home/henry/Desktop/build_linux_debug/bin/blender(WM_opengl_context_create+0x5c) [0x555556f9169a]
/home/henry/Desktop/build_linux_debug/bin/blender(DRW_opengl_context_create+0x93) [0x555557afa27f]
/home/henry/Desktop/build_linux_debug/bin/blender(WM_init_opengl+0x82) [0x555556f7802c]
/home/henry/Desktop/build_linux_debug/bin/blender(WM_init+0x18f) [0x555556f78228]
/home/henry/Desktop/build_linux_debug/bin/blender(main+0x390) [0x555556f57ae1]
/usr/lib/libc.so.6(__libc_start_main+0xeb) [0x7ffff1f5506b]
/home/henry/Desktop/build_linux_debug/bin/blender(_start+0x2a) [0x555556f575ea]

with it crashing on the line:

WM_opengl_context_create () at /home/henry/Desktop/blender/source/blender/windowmanager/intern/wm_window.c:2201
2201            BLI_assert(GPU_framebuffer_current_get() == 0);
(gdb) 
GPU_framebuffer_current_get () at /home/henry/Desktop/blender/source/blender/gpu/intern/gpu_framebuffer.c:447
447             return gpu_framebuffer_current_get();
(gdb) 
gpu_framebuffer_current_get () at /home/henry/Desktop/blender/source/blender/gpu/intern/gpu_framebuffer.c:180
180             return GET_UINT_FROM_POINTER(BLI_thread_local_get(g_currentfb));
(gdb) 

Thread 1 "blender" received signal SIGSEGV, Segmentation fault.
gpu_framebuffer_current_get () at /home/henry/Desktop/blender/source/blender/gpu/intern/gpu_framebuffer.c:180
180             return GET_UINT_FROM_POINTER(BLI_thread_local_get(g_currentfb));
(gdb) 
sig_handle_crash (signum=32767) at /home/henry/Desktop/blender/source/creator/creator_signals.c:112

I suspect that these 2 crashes are somewhat related

**System Information** HARDWARE: CPU: Intel i5 3337U GPU: Intel HD Graphics 4000 SOFTWARE: Arch Linux Kernel: 4.17.2-1 to 4.17.2-1 Mesa: 18.1.1-1 to 18.1.3-1 **Blender Version** Broken: current build (98d20550897) Worked: (about a month ago (early June)) (2.79b still works fine) (crashes with both buildbot and home built versions (all done on a system with no 2.80 files in ~/.config/blender)) **error** when opening blender2.8 (either home built debug version with default cmake options, or the buildbot version), blender crashes on launch (this error is also mentioned [| here ](https://developer.blender.org/T55584) ) terminal output: ``` ./blender --debug --debug-all ``` ``` Switching to fully guarded memory allocator. Color management: using fallback mode for management Blender 2.80 (sub 20) Build: 2018-07-02 21:01:33 Linux Debug argv[0] = ../build_linux_debug/bin/blender argv[1] = --debug argv[2] = --debug-all ndof: spacenavd not found read file Version 272 sub 2 date unknown hash unknown deg_graph_id_tag_update: id=GRCollection 1 flags=COPY_ON_WRITE deg_graph_id_tag_update: id=GRCollection 1 flags=COPY_ON_WRITE deg_graph_id_tag_update: id=GRCollection 1 flags=COPY_ON_WRITE deg_graph_id_tag_update: id=WS3D View Full flags=TRANSFORM, GEOMETRY, TIME deg_graph_id_tag_update: id=WSAnimation flags=TRANSFORM, GEOMETRY, TIME deg_graph_id_tag_update: id=WSCompositing flags=TRANSFORM, GEOMETRY, TIME deg_graph_id_tag_update: id=WSGame Logic flags=TRANSFORM, GEOMETRY, TIME deg_graph_id_tag_update: id=WSMotion Tracking flags=TRANSFORM, GEOMETRY, TIME deg_graph_id_tag_update: id=WSScripting flags=TRANSFORM, GEOMETRY, TIME deg_graph_id_tag_update: id=WSUV Editing flags=TRANSFORM, GEOMETRY, TIME deg_graph_id_tag_update: id=WSVideo Editing flags=TRANSFORM, GEOMETRY, TIME Color management: scene view "Filmic" not found, setting default "Default". Received X11 Error: error code: 167 request code: 152 minor code: 34 error text: GLXBadFBConfig Received X11 Error: error code: 167 request code: 152 minor code: 34 error text: GLXBadFBConfig Received X11 Error: error code: 167 request code: 152 minor code: 34 error text: GLXBadFBConfig ED_screen_refresh: set screen Received X11 Error: error code: 8 request code: 152 minor code: 34 error text: BadMatch (invalid parameter attributes) X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 205 Current serial number in output stream: 205 ``` Blender crashes before it can produce a backtrace. However, I stepped it through slowly with gdb (to find the point of crash) i get a completely different error (this time producing a backtrace) ``` # Blender 2.80 (sub 20), Commit date: 2018-07-02 18:25, Hash 98d20550897 # backtrace /home/henry/Desktop/build_linux_debug/bin/blender(BLI_system_backtrace+0x35) [0x5555581f8afb] /home/henry/Desktop/build_linux_debug/bin/blender(+0x1a08027) [0x555556f5c027] /home/henry/Desktop/build_linux_debug/bin/blender(+0x1a08229) [0x555556f5c229] /usr/lib/libc.so.6(+0x368f0) [0x7ffff1f688f0] /home/henry/Desktop/build_linux_debug/bin/blender(+0x256ec33) [0x555557ac2c33] /home/henry/Desktop/build_linux_debug/bin/blender(GPU_framebuffer_current_get+0x9) [0x555557ac377b] /home/henry/Desktop/build_linux_debug/bin/blender(WM_opengl_context_create+0x5c) [0x555556f9169a] /home/henry/Desktop/build_linux_debug/bin/blender(DRW_opengl_context_create+0x93) [0x555557afa27f] /home/henry/Desktop/build_linux_debug/bin/blender(WM_init_opengl+0x82) [0x555556f7802c] /home/henry/Desktop/build_linux_debug/bin/blender(WM_init+0x18f) [0x555556f78228] /home/henry/Desktop/build_linux_debug/bin/blender(main+0x390) [0x555556f57ae1] /usr/lib/libc.so.6(__libc_start_main+0xeb) [0x7ffff1f5506b] /home/henry/Desktop/build_linux_debug/bin/blender(_start+0x2a) [0x555556f575ea] ``` with it crashing on the line: ``` WM_opengl_context_create () at /home/henry/Desktop/blender/source/blender/windowmanager/intern/wm_window.c:2201 2201 BLI_assert(GPU_framebuffer_current_get() == 0); (gdb) GPU_framebuffer_current_get () at /home/henry/Desktop/blender/source/blender/gpu/intern/gpu_framebuffer.c:447 447 return gpu_framebuffer_current_get(); (gdb) gpu_framebuffer_current_get () at /home/henry/Desktop/blender/source/blender/gpu/intern/gpu_framebuffer.c:180 180 return GET_UINT_FROM_POINTER(BLI_thread_local_get(g_currentfb)); (gdb) Thread 1 "blender" received signal SIGSEGV, Segmentation fault. gpu_framebuffer_current_get () at /home/henry/Desktop/blender/source/blender/gpu/intern/gpu_framebuffer.c:180 180 return GET_UINT_FROM_POINTER(BLI_thread_local_get(g_currentfb)); (gdb) sig_handle_crash (signum=32767) at /home/henry/Desktop/blender/source/creator/creator_signals.c:112 ``` I suspect that these 2 crashes are somewhat related
Author

Added subscriber: @Skippi

Added subscriber: @Skippi

#55705 was marked as duplicate of this issue

#55705 was marked as duplicate of this issue
Member

Added subscriber: @cgrookie

Added subscriber: @cgrookie
Author

It should also be noted (just noticed this now) both me and cgrookie are both running Intel 3xxx processes with integrated graphics (not sure if it is the cause, but an interesting note)

It should also be noted (just noticed this now) both me and cgrookie are both running Intel 3xxx processes with integrated graphics (not sure if it is the cause, but an interesting note)
Author

I am happy to report that Blender is now working! (cgcookie should also confirm)
having gone through the commits, i have identified and confirmed that 433e3db8d89 is the commit that fixed this problem! (thanks Clément:)

i will now mark this as closed

I am happy to report that Blender is now working! (cgcookie should also confirm) having gone through the commits, i have identified and confirmed that [433e3db8d89 ](https://developer.blender.org/rB433e3db8d89130531424e2468dedcfb36f6eb592) is the commit that fixed this problem! (thanks Clément:) i will now mark this as closed
Author

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Henry closed this issue 2018-07-04 19:22:44 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#55696
No description provided.