Segmentation fault: 11 while opening addon preferences panel OSX #74954

Closed
opened 2020-03-20 06:25:11 +01:00 by Rombout Versluijs · 16 comments

System Information
Operating system: Darwin-15.6.0-x86_64-i386-64bit 64 Bits
Graphics card: Intel Iris Pro OpenGL Engine Intel Inc. 4.1 INTEL-10.14.74

Blender Version
Broken: version: 2.83 (sub 9), branch: master, commit date: 2020-03-16 23:41, hash: 47af235ba9
Worked: (newest version of Blender that worked as expected)

Short description of error
I have an issue where my addon causes a segmentation fault 11 when i try to open the addon pref panel. As soon as i click the triangle to open the panel it crashes. The issue feels related to an error i noticed when EnumProperty return a different value other then 0
See this report: https://developer.blender.org/T74131

Exact steps for others to reproduce the error
01 Install added addon and active it
02 Click open pref panel and crash happens

uvlayout_bridge-bl280_dev.zip
blender.crash.txt

**System Information** Operating system: Darwin-15.6.0-x86_64-i386-64bit 64 Bits Graphics card: Intel Iris Pro OpenGL Engine Intel Inc. 4.1 INTEL-10.14.74 **Blender Version** Broken: version: 2.83 (sub 9), branch: master, commit date: 2020-03-16 23:41, hash: `47af235ba9` Worked: (newest version of Blender that worked as expected) **Short description of error** I have an issue where my addon causes a segmentation fault 11 when i try to open the addon pref panel. As soon as i click the triangle to open the panel it crashes. The issue feels related to an error i noticed when EnumProperty return a different value other then 0 See this report: https://developer.blender.org/T74131 **Exact steps for others to reproduce the error** 01 Install added addon and active it 02 Click open pref panel and crash happens [uvlayout_bridge-bl280_dev.zip](https://archive.blender.org/developer/F8417089/uvlayout_bridge-bl280_dev.zip) [blender.crash.txt](https://archive.blender.org/developer/F8417087/blender.crash.txt)

Added subscriber: @RomboutVersluijs

Added subscriber: @RomboutVersluijs
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'
Ankit Meel self-assigned this 2020-03-20 07:51:39 +01:00
Member

Can't redo on
689606887f
Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits
Graphics card: Intel(R) HD Graphics 6000 Intel Inc. 4.1 INTEL-12.10.12
Screenshot 2020-03-20 at 12.18.48.png
Also, Darwin 15 is macOS 10.11, so that doesn't meet the min requirements to run Blender.

Can't redo on `689606887f` Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits Graphics card: Intel(R) HD Graphics 6000 Intel Inc. 4.1 INTEL-12.10.12 ![Screenshot 2020-03-20 at 12.18.48.png](https://archive.blender.org/developer/F8417174/Screenshot_2020-03-20_at_12.18.48.png) Also, Darwin 15 is macOS 10.11, so that doesn't meet the min [requirements](https://www.blender.org/download/requirements/) to run Blender.

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Archived' to: 'Needs Triage'

Changed status from 'Archived' to: 'Needs Triage'
Ankit Meel was unassigned by Brecht Van Lommel 2020-03-20 09:05:02 +01:00

This is not a graphics issue so the report should not be closed because of old macOS version.

This is not a graphics issue so the report should not be closed because of old macOS version.

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

However do note there is a known issue with enums which can lead to crashes:
https://docs.blender.org/api/current/bpy.props.html#bpy.props.EnumProperty

There is a known bug with using a callback, Python must keep a reference to the strings returned by the callback or Blender will misbehave or even crash.
However do note there is a known issue with enums which can lead to crashes: https://docs.blender.org/api/current/bpy.props.html#bpy.props.EnumProperty ``` There is a known bug with using a callback, Python must keep a reference to the strings returned by the callback or Blender will misbehave or even crash. ```

This add-ons also seems to be storing its preferences in the scene, which is wrong. The correct way is:
https://docs.blender.org/api/current/bpy.types.AddonPreferences.html

This add-ons also seems to be storing its preferences in the scene, which is wrong. The correct way is: https://docs.blender.org/api/current/bpy.types.AddonPreferences.html

{F8418256}>>! In #74954#895046, @brecht wrote:

This add-ons also seems to be storing its preferences in the scene, which is wrong. The correct way is:
https://docs.blender.org/api/current/bpy.types.AddonPreferences.html

Thanks for the help and for noting about saving those properties. I have not read yet that this is bad practice.

Concerning that enum, i had the idea it could perhaps be linked but was not sure. The BlenderCloud addon also shows a warning and i also see this enum warning with other adds. Yet i have not found an addon which causes a crash by just opening the pref panel. Since it works fine in 2.82 and earlier im a bit lost what the issue actually is.

This is what i get from the BlenderCloud addni when it search for projects. I looked at some code and as far as i understand it. It should return "No projects found...", which it doesnt do.

WARN (bpy.rna): /Users/gast/blender-buildbot/mac_x86_64_10_9_cmake/blender.git/source/blender/python/intern/bpy_rna.c:1476 pyrna_enum_to_py: current value '0' matches no enum in 'BlenderCloudProjectGroup', '', 'project'

Today i also see this addon, never seen this earlier in 2.83, i have no idea which addon could cause it since it doesnt give any other info.

Warning: TypeError('bpy_struct: item.attr = val: enum "" not found in (\'OBJECT\', \'EDIT\', \'POSE\', \'SCULPT\', \'VERTEX_PAINT\', \'WEIGHT_PAINT\', \'TEXTURE_PAINT\', \'PARTICLE_EDIT\', \'EDIT_GPENCIL\', \'SCULPT_GPENCIL\', \'PAINT_GPENCIL\', \'VERTEX_GPENCIL\', \'WEIGHT_GPENCIL\')')
Warning: TypeError('bpy_struct: item.attr = val: enum "" not found in (\'OBJECT\', \'EDIT\', \'POSE\', \'SCULPT\', \'VERTEX_PAINT\', \'WEIGHT_PAINT\', \'TEXTURE_PAINT\', \'PARTICLE_EDIT\', \'EDIT_GPENCIL\', \'SCULPT_GPENCIL\', \'PAINT_GPENCIL\', \'VERTEX_GPENCIL\', \'WEIGHT_GPENCIL\')')

I doubt this will help, but i an added OSX crash report

{[F8418256](https://archive.blender.org/developer/F8418256/OSX_crash-report.txt)}>>! In #74954#895046, @brecht wrote: > This add-ons also seems to be storing its preferences in the scene, which is wrong. The correct way is: > https://docs.blender.org/api/current/bpy.types.AddonPreferences.html Thanks for the help and for noting about saving those properties. I have not read yet that this is bad practice. Concerning that enum, i had the idea it could perhaps be linked but was not sure. The BlenderCloud addon also shows a warning and i also see this enum warning with other adds. Yet i have not found an addon which causes a crash by just opening the pref panel. Since it works fine in 2.82 and earlier im a bit lost what the issue actually is. This is what i get from the BlenderCloud addni when it search for projects. I looked at some code and as far as i understand it. It should return "No projects found...", which it doesnt do. ``` WARN (bpy.rna): /Users/gast/blender-buildbot/mac_x86_64_10_9_cmake/blender.git/source/blender/python/intern/bpy_rna.c:1476 pyrna_enum_to_py: current value '0' matches no enum in 'BlenderCloudProjectGroup', '', 'project' ``` Today i also see this addon, never seen this earlier in 2.83, i have no idea which addon could cause it since it doesnt give any other info. ``` Warning: TypeError('bpy_struct: item.attr = val: enum "" not found in (\'OBJECT\', \'EDIT\', \'POSE\', \'SCULPT\', \'VERTEX_PAINT\', \'WEIGHT_PAINT\', \'TEXTURE_PAINT\', \'PARTICLE_EDIT\', \'EDIT_GPENCIL\', \'SCULPT_GPENCIL\', \'PAINT_GPENCIL\', \'VERTEX_GPENCIL\', \'WEIGHT_GPENCIL\')') Warning: TypeError('bpy_struct: item.attr = val: enum "" not found in (\'OBJECT\', \'EDIT\', \'POSE\', \'SCULPT\', \'VERTEX_PAINT\', \'WEIGHT_PAINT\', \'TEXTURE_PAINT\', \'PARTICLE_EDIT\', \'EDIT_GPENCIL\', \'SCULPT_GPENCIL\', \'PAINT_GPENCIL\', \'VERTEX_GPENCIL\', \'WEIGHT_GPENCIL\')') ``` I doubt this will help, but i an added OSX crash report

Added subscriber: @ideasman42

Added subscriber: @ideasman42

It's not efficient for us to debug an entire add-on, please simplify this, removing all unrelated logic to make a test case add-on which crashes on your system.

Also, be sure to test this add-on from factory settings.

It's not efficient for us to debug an entire add-on, please simplify this, removing all unrelated logic to make a test case add-on which crashes on your system. Also, be sure to test this add-on from factory settings.

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Richard Antalik self-assigned this 2020-04-16 20:13:45 +02:00

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
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
5 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#74954
No description provided.