bm.*.sort() leads to strange bytes object and crashes occasionally #45939
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#45939
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 8.1, 64bit
Blender Version
Broken: 2.75a official
Short description of error
Exact steps for others to reproduce the error
Add a Plane, go to edit mode and run below script several times. It should eventually produce an error that bytes object does not have property "index" or "co". Subsequent runs of the script or clicks in viewport may crash Blender.
Changed status to: 'Open'
Added subscriber: @CodeManX
Added subscribers: @ideasman42, @Sergey
Can confirm the crash, it actually happens first time you run the script with asan enabled.
I'm not sure if there's some obvious mistake in the py code, will let @ideasman42 to decide :)
I can't get this to crash.
Even playing back animation (in edit-mode), while holding Enter, over the run script button - is working fine.
Tested with valgrind and asan, - no errors in either.
@Sergey, whats the report you get?
All it prints to console is "Error: EXCEPTION_ACCESS_VIOLATION".
@Sergey / @ideasman42: What OS did you try this on? And what exact Blender version?
Error occurs at least on Windows 8, 64bit in every version since the introduction of sort(), which was 2.64 (had to adapt the test script, because update_edit_mesh() didn't exist back then). I tried 32 and 64 bit releases.
In 2.64, the error is slightly different: 'PyCapsule' object has no attribute 'index' .
It's definitely the sort() call, if I comment it out, everything is fine.
This issue was referenced by blender/blender@9304df5182
Changed status from 'Open' to: 'Resolved'