Blender 3.6. Python. Crash after 'bpy.ops.uv.pack_islands()' execution. Silent pack API is required #109507

Closed
opened 2023-06-29 13:55:02 +02:00 by Alex Zhornyak · 4 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 526.86

Blender Version
Broken: version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: c7fc78b81ecb
Worked: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: e1ccd9d4a1d3

Blender is crashed after calling bpy.ops.uv.pack_islands() command

Exact steps for others to reproduce the error

  1. On default cube select something and call bpy.ops.uv.pack_islands() without using INVOKE_DEFAULT

Result:
Blender is crashed

Extra information:
P.S. It works if we are calling bpy.ops.uv.pack_islands('INVOKE_DEFAULT') but operator window is shown everytime.

Request:
I am from ZenUV addon team and we have a lot of functions based on this operator.
If it is possible, we would be highly appreciated if you could create silent version of bpy.ops.uv.pack_islands as it was all previous versions. I think there also many UV addons like MagicUV that will face the same problem

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 526.86 **Blender Version** Broken: version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: `c7fc78b81ecb` Worked: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: `e1ccd9d4a1d3` **Blender is crashed after calling `bpy.ops.uv.pack_islands()` command** **Exact steps for others to reproduce the error** 1. On default cube select something and call `bpy.ops.uv.pack_islands()` without using `INVOKE_DEFAULT` **Result:** Blender is crashed **Extra information:** P.S. It works if we are calling `bpy.ops.uv.pack_islands('INVOKE_DEFAULT')` but operator window is shown everytime. **Request:** I am from [ZenUV addon team](https://zenmastersteam.github.io/Zen-UV/latest/) and we have a lot of functions based on this operator. <b> If it is possible, we would be highly appreciated if you could create silent version of `bpy.ops.uv.pack_islands` as it was all previous versions. I think there also many UV addons like [MagicUV](https://github.com/nutti/Magic-UV) that will face the same problem
Alex Zhornyak added the
Type
Report
Status
Needs Triage
Priority
Normal
labels 2023-06-29 13:55:03 +02:00

I can confirm in 3.6 but not in 4.0.
This is the crash call stack:

 	blender.exe!aligned_free(void * ptr) Line 84	C
 	blender.exe!MEM_lockfree_freeN(void * vmemh) Line 100	C
 	blender.exe!pack_islands_exec(bContext * C, wmOperator * op) Line 1558	C++
 	blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, const wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1541	C++
 	blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const wmOperatorCallContext context, const bool poll_only, const wmEvent * event) Line 1764	C++
 	blender.exe!WM_operator_call_py(bContext * C, wmOperatorType * ot, wmOperatorCallContext context, PointerRNA * properties, ReportList * reports, bool is_undo) Line 1842	C++
 	blender.exe!pyop_call(_object * UNUSED_self, _object * args) Line 305	C

It also fell for this assert:
"Damage before 0x%p which was allocated by aligned routine\n"

I can confirm in 3.6 but not in 4.0. This is the crash call stack: ``` blender.exe!aligned_free(void * ptr) Line 84 C blender.exe!MEM_lockfree_freeN(void * vmemh) Line 100 C blender.exe!pack_islands_exec(bContext * C, wmOperator * op) Line 1558 C++ blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, const wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1541 C++ blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const wmOperatorCallContext context, const bool poll_only, const wmEvent * event) Line 1764 C++ blender.exe!WM_operator_call_py(bContext * C, wmOperatorType * ot, wmOperatorCallContext context, PointerRNA * properties, ReportList * reports, bool is_undo) Line 1842 C++ blender.exe!pyop_call(_object * UNUSED_self, _object * args) Line 305 C ``` It also fell for this assert: `"Damage before 0x%p which was allocated by aligned routine\n"`

If the crash is on line 1558 then it was probably fixed as part of c47074f3bb. The fix is in 4.0 and listed to be back ported to 3.6.x eventually.

If the crash is on line 1558 then it was probably fixed as part of c47074f3bba0d7f3126856dce6507730a5a1d0bb. The fix is in 4.0 and listed to be back ported to 3.6.x eventually.

Thanks for the info @deadpin, I'm closing the report then.

Thanks for the info @deadpin, I'm closing the report then.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-06-30 02:08:41 +02:00

Just commenting to say that, even in Blender 4.0, this operator seems to have become non-blocking. That will screw up a number of addon scripts.

I have been discussing it here - https://devtalk.blender.org/t/numerous-problems-with-the-new-bpy-ops-uv-pack-islands-operator/30096/4

Let me know if I should open a separate bug for this - not sure of the etiquette.

Just commenting to say that, even in Blender 4.0, this operator seems to have become non-blocking. That will screw up a number of addon scripts. I have been discussing it here - https://devtalk.blender.org/t/numerous-problems-with-the-new-bpy-ops-uv-pack-islands-operator/30096/4 Let me know if I should open a separate bug for this - not sure of the etiquette.
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
4 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#109507
No description provided.