Blender SEGFAULT on Intel HW and DWM. #51429

Closed
opened 2017-05-06 20:27:12 +02:00 by Romanko Mikhail · 19 comments

System Information
Operating system and graphics card
4.10.12-1-MANJARO (Arch linux)
i965 chipset (HD Graphics 4600)
DWM as window manager

Blender Version
Blender 2.78 (sub 5)

      build date: 2017-05-06
      build time: 20:55:08
      build commit date: 2017-05-06
      build commit time: 17:21
      build hash: bca69783472
      build platform: Linux
      build type: Release
      build c flags:  -Wall -Wcast-align -Werror=implicit-function-declaration -Werror=return-type -Werror=vla -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wlogical-op -Wundef -Winit-self -Wnonnull -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wformat-signedness
  • Wuninitialized -Wredundant-decls -Wshadow -Wno-error=unused-but-set-variable -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fuse-ld=gold -fopenmp -std=gnu11 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -msse2
      build c++ flags:  -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Werror=implicit-function-declaration -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wformat-signedness -Wuninitialized
  • Wundef -Wmissing-declarations -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fuse-ld=gold -fopenmp -std=c++11 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -msse2
      build link flags:
      build system: CMake

Broken: Right clicking on blank space results in SEGFAULT

Blender 2.78 (sub 5), Commit date: 2017-05-06 17:21, Hash bca6978347

backtrace

blender(BLI_system_backtrace+0x30) [0x1370f70]
blender() [0x99c11c]
/usr/lib/libc.so.6(+0x33a90) [0x7f0be3825a90]
/usr/lib/xorg/modules/dri/i965_dri.so(+0x1cbcea) [0x7f0bb47d9cea]
/usr/lib/xorg/modules/dri/i965_dri.so(+0x1c95c9) [0x7f0bb47d75c9]
/usr/lib/xorg/modules/dri/i965_dri.so(+0x1bf6e2) [0x7f0bb47cd6e2]
/usr/lib/xorg/modules/dri/i965_dri.so(+0x1bed22) [0x7f0bb47ccd22]
/usr/lib/xorg/modules/dri/i965_dri.so(+0x1a6f7f) [0x7f0bb47b4f7f]
/usr/lib/xorg/modules/dri/i965_dri.so(+0x1bf412) [0x7f0bb47cd412]
/usr/lib/xorg/modules/dri/i965_dri.so(+0x3bdb4e) [0x7f0bb49cbb4e]
/usr/lib/xorg/modules/dri/i965_dri.so(+0x1a2c70) [0x7f0bb47b0c70]
/usr/lib/xorg/modules/dri/i965_dri.so(+0x1a30f9) [0x7f0bb47b10f9]
blender() [0x103d15c]
blender() [0xa9a4f8]
blender(draw_object+0x145e) [0xaa7e5e]
blender(draw_object_select+0x44) [0xaaa884]
blender(ED_view3d_draw_select_loop+0x1b9) [0xa74319]
blender(view3d_opengl_select+0x1c3) [0xa942e3]
blender() [0xa8aa6c]
blender() [0xa8d8b4]
blender() [0xa8e0c5]
blender() [0x9a3c79]
blender() [0x9a500d]
blender() [0x9a54c8]
blender() [0x9a5958]
blender(wm_event_do_handlers+0x3c5) [0x9a5e55]
blender(WM_main+0x18) [0x99cdb8]
blender(main+0x40f) [0x97df8f]
/usr/lib/libc.so.6(__libc_start_main+0xf1) [0x7f0be3812511]
blender(_start+0x2a) [0x998dba]

Worked: Anything else

Short description of error
Multiple Right clicking on blank space or Object results in SEGFAULT. test_scene.blend

Exact steps for others to reproduce the error

  1. Start with basic scene
  2. Modify Camera to Ortho, turn to x 60, y 0, z 45
  3. Dublicate cubes into 4 cubes
  4. Select one of them and create new material making it less diffuse than original
  5. Apply new material to one more cube
  6. Join 4 cubes into one object
  7. Click multiple times on blank space or object
  8. SEGFAULT
    Based on a (as simple as possible) attached .blend file with minimum amount of steps

My thoughts
I think that DWM and Intel drivers may caused this problem.
Follow up
Under XFCE and LXDE SEGFAULT still present.

**System Information** Operating system and graphics card 4.10.12-1-MANJARO (Arch linux) i965 chipset (HD Graphics 4600) DWM as window manager **Blender Version** Blender 2.78 (sub 5) ``` build date: 2017-05-06 build time: 20:55:08 build commit date: 2017-05-06 build commit time: 17:21 build hash: bca69783472 build platform: Linux build type: Release build c flags: -Wall -Wcast-align -Werror=implicit-function-declaration -Werror=return-type -Werror=vla -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wlogical-op -Wundef -Winit-self -Wnonnull -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wformat-signedness ``` - Wuninitialized -Wredundant-decls -Wshadow -Wno-error=unused-but-set-variable -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fuse-ld=gold -fopenmp -std=gnu11 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -msse2 ``` build c++ flags: -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Werror=implicit-function-declaration -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wformat-signedness -Wuninitialized ``` - Wundef -Wmissing-declarations -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fuse-ld=gold -fopenmp -std=c++11 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -msse2 ``` build link flags: build system: CMake ``` Broken: Right clicking on blank space results in SEGFAULT # Blender 2.78 (sub 5), Commit date: 2017-05-06 17:21, Hash bca69783472 # backtrace blender(BLI_system_backtrace+0x30) [0x1370f70] blender() [0x99c11c] /usr/lib/libc.so.6(+0x33a90) [0x7f0be3825a90] /usr/lib/xorg/modules/dri/i965_dri.so(+0x1cbcea) [0x7f0bb47d9cea] /usr/lib/xorg/modules/dri/i965_dri.so(+0x1c95c9) [0x7f0bb47d75c9] /usr/lib/xorg/modules/dri/i965_dri.so(+0x1bf6e2) [0x7f0bb47cd6e2] /usr/lib/xorg/modules/dri/i965_dri.so(+0x1bed22) [0x7f0bb47ccd22] /usr/lib/xorg/modules/dri/i965_dri.so(+0x1a6f7f) [0x7f0bb47b4f7f] /usr/lib/xorg/modules/dri/i965_dri.so(+0x1bf412) [0x7f0bb47cd412] /usr/lib/xorg/modules/dri/i965_dri.so(+0x3bdb4e) [0x7f0bb49cbb4e] /usr/lib/xorg/modules/dri/i965_dri.so(+0x1a2c70) [0x7f0bb47b0c70] /usr/lib/xorg/modules/dri/i965_dri.so(+0x1a30f9) [0x7f0bb47b10f9] blender() [0x103d15c] blender() [0xa9a4f8] blender(draw_object+0x145e) [0xaa7e5e] blender(draw_object_select+0x44) [0xaaa884] blender(ED_view3d_draw_select_loop+0x1b9) [0xa74319] blender(view3d_opengl_select+0x1c3) [0xa942e3] blender() [0xa8aa6c] blender() [0xa8d8b4] blender() [0xa8e0c5] blender() [0x9a3c79] blender() [0x9a500d] blender() [0x9a54c8] blender() [0x9a5958] blender(wm_event_do_handlers+0x3c5) [0x9a5e55] blender(WM_main+0x18) [0x99cdb8] blender(main+0x40f) [0x97df8f] /usr/lib/libc.so.6(__libc_start_main+0xf1) [0x7f0be3812511] blender(_start+0x2a) [0x998dba] Worked: Anything else **Short description of error** Multiple Right clicking on blank space or Object results in SEGFAULT. [test_scene.blend](https://archive.blender.org/developer/F590108/test_scene.blend) **Exact steps for others to reproduce the error** 1) Start with basic scene 2) Modify Camera to Ortho, turn to x 60, y 0, z 45 3) Dublicate cubes into 4 cubes 4) Select one of them and create new material making it less diffuse than original 5) Apply new material to one more cube 6) Join 4 cubes into one object 7) Click multiple times on blank space or object 8) SEGFAULT Based on a (as simple as possible) attached .blend file with minimum amount of steps **My thoughts** I think that DWM and Intel drivers may caused this problem. **Follow up** Under XFCE and LXDE SEGFAULT still present.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @RomankoMikhail

Added subscriber: @RomankoMikhail
Member

Added subscriber: @TheOnlyJoey

Added subscriber: @TheOnlyJoey
Member

What is the Mesa version and driver you are using, i was not able to reproduce this on my similar Intel GPU on Ubuntu with Mesa 17.

What is the Mesa version and driver you are using, i was not able to reproduce this on my similar Intel GPU on Ubuntu with Mesa 17.

Here is is:

lshw -c video

*-display
description: VGA compatible controller
product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 06
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:33 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff

modinfo i915
modinfo_i915.txt

And mesa is:

glxinfo | grep "OpenGL version"

OpenGL version string: 3.0 Mesa 17.0.5

On my system, bug still present in Blender versions 2.79 and 2.80

Here is is: lshw -c video > *-display > description: VGA compatible controller > product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller > vendor: Intel Corporation > physical id: 2 > bus info: pci@0000:00:02.0 > version: 06 > width: 64 bits > clock: 33MHz > capabilities: msi pm vga_controller bus_master cap_list rom > configuration: driver=i915 latency=0 > resources: irq:33 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff > modinfo i915 [modinfo_i915.txt](https://archive.blender.org/developer/F592583/modinfo_i915.txt) And mesa is: glxinfo | grep "OpenGL version" > OpenGL version string: 3.0 Mesa 17.0.5 On my system, bug still present in Blender versions 2.79 and 2.80

In 2.8 it's outputs more detailed info about it:

blender
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or dir
attempt to connect to server failed
Received X11 Error:
error code: 178
request code: 155
minor code: 34
error text: GLXBadFBConfig
Received X11 Error:
error code: 178
request code: 155
minor code: 34
error text: GLXBadFBConfig
Received X11 Error:
error code: 178
request code: 155
minor code: 34
error text: GLXBadFBConfig
Received X11 Error:
error code: 178
request code: 155
minor code: 34
error text: GLXBadFBConfig
Received X11 Error:
error code: 178
request code: 155
minor code: 34
error text: GLXBadFBConfig
Received X11 Error:
error code: 178
request code: 155
minor code: 34
error text: GLXBadFBConfig
Received X11 Error:
error code: 178
request code: 155
minor code: 34
error text: GLXBadFBConfig
Read blend: /root/Downloads/test_scene.blend
GPUShader: compile error:
0:9(1): error: syntax error, unexpected NEW_IDENTIFIER

Writing: /tmp/test_scene.crash.txt

  • 20151 segmentation fault (core dumped) blender

test_scene.crash.txt

In 2.8 it's outputs more detailed info about it: > blender > connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or dir > attempt to connect to server failed > Received X11 Error: > error code: 178 > request code: 155 > minor code: 34 > error text: GLXBadFBConfig > Received X11 Error: > error code: 178 > request code: 155 > minor code: 34 > error text: GLXBadFBConfig > Received X11 Error: > error code: 178 > request code: 155 > minor code: 34 > error text: GLXBadFBConfig > Received X11 Error: > error code: 178 > request code: 155 > minor code: 34 > error text: GLXBadFBConfig > Received X11 Error: > error code: 178 > request code: 155 > minor code: 34 > error text: GLXBadFBConfig > Received X11 Error: > error code: 178 > request code: 155 > minor code: 34 > error text: GLXBadFBConfig > Received X11 Error: > error code: 178 > request code: 155 > minor code: 34 > error text: GLXBadFBConfig > Read blend: /root/Downloads/test_scene.blend > GPUShader: compile error: > 0:9(1): error: syntax error, unexpected NEW_IDENTIFIER > > Writing: /tmp/test_scene.crash.txt > - [x] 20151 segmentation fault (core dumped) blender [test_scene.crash.txt](https://archive.blender.org/developer/F592596/test_scene.crash.txt)

Added subscriber: @rjg

Added subscriber: @rjg

Today I had a similar/related problem, that may have the same underlying cause. I had a memory access error during selection of one specific object. If another object was selected first, the bug didn't occur.

This also happens with Blender 2.78 on a i965 chipset, using Ubuntu 16.04. If you need more information, let me know.RoboCup_v22.crash.txt

I am new to the blender dev's, sorry if this post isn't in the right place.

Today I had a similar/related problem, that may have the same underlying cause. I had a memory access error during selection of one specific object. If another object was selected first, the bug didn't occur. This also happens with Blender 2.78 on a i965 chipset, using Ubuntu 16.04. If you need more information, let me know.[RoboCup_v22.crash.txt](https://archive.blender.org/developer/F594265/RoboCup_v22.crash.txt) I am new to the blender dev's, sorry if this post isn't in the right place.
Member

Please don't change the status of a task yourself, confirmed status is for when blender developers are able to confirm the task by reproducing, i have not been able to do this yet on my Ubuntu system with Intel gpu.

Please don't change the status of a task yourself, confirmed status is for when blender developers are able to confirm the task by reproducing, i have not been able to do this yet on my Ubuntu system with Intel gpu.
Mike Erwin was assigned by Aaron Carlisle 2017-05-10 15:45:03 +02:00

Added subscriber: @brecht

Added subscriber: @brecht

You can try changing to a different Selection Method in User Preferences > System.

You can try changing to a different Selection Method in User Preferences > System.

The segfault only occurs with OpenGL Select, OpenGL Occlusion Queries works fine.

The segfault only occurs with *OpenGL Select*, *OpenGL Occlusion Queries* works fine.
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

I think this is a driver issue with OpenGL Select. So nothing we can fix (besides removing it which will happen in 2.8). I had this same issue on Intel HD 4600 on windows.

I think this is a driver issue with OpenGL Select. So nothing we can fix (besides removing it which will happen in 2.8). I had this same issue on Intel HD 4600 on windows.

Added subscriber: @VukGardasevic

Added subscriber: @VukGardasevic

Is this similar to #48215, #50479 etc. ?

There were several reports concerning right click selection and Intel drivers on Linux.

https://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.77/UI#Other_Improvements_2

Since 2.77 the VBO are enabled by default and causes the Mesa Intel driver for certain chipsets to bail out.

Is this similar to #48215, #50479 etc. ? There were several reports concerning right click selection and Intel drivers on Linux. https://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.77/UI#Other_Improvements_2 Since 2.77 the VBO are enabled by default and causes the Mesa Intel driver for certain chipsets to bail out.
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

Sounds correct I think we can close this see the reply in #48215:

In #48215#370821, @JulianEisel wrote:
Most likely this is caused by a bug in Mesa drivers for Intel which has been fixed in the meanwhile. Updating your Mesa package should fix the issue, or as a workaround you can change the selection method ({nav User Preferences > System > Selection Method}).
More precisely it was an issue with VBOs which are enabled by default since Blender 2.77, I also added a note to release logs recently to communicate this better (see https://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.77/UI#Other_Improvements_2).

Closing since it's unlikely an issue on Blender's side, we can reopen if the steps above didn't help.

Sounds correct I think we can close this see the reply in #48215: > In #48215#370821, @JulianEisel wrote: > Most likely this is caused by a bug in Mesa drivers for Intel which has been fixed in the meanwhile. Updating your Mesa package should fix the issue, or as a workaround you can change the selection method ({nav User Preferences > System > Selection Method}). > More precisely it was an issue with VBOs which are enabled by default since Blender 2.77, I also added a note to release logs recently to communicate this better (see https://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.77/UI#Other_Improvements_2). > > Closing since it's unlikely an issue on Blender's side, we can reopen if the steps above didn't help.
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
6 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#51429
No description provided.