Export GP to PDF or SVG crashes blender #97150

Closed
opened 2022-04-07 20:45:39 +02:00 by Haig Petrus · 11 comments

System Information
Operating system: Linux-5.17.1-arch1-1-x86_64-with-glibc2.35 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 510.60.02

Blender Version
Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: cc66d1020c

Short description of error
Blender crashes every time I export GP to PDF or SVG no matter the options.

Exact steps for others to reproduce the error

  1. Select a GP object
  2. Export GP to PDF or SVG
  3. Adjust options or not (makes no difference that I've noticed)
  4. Blender crashes in a couple of moments

gp2pdf_crash.blend

Here's the backtrace:

# Blender 3.1.2, Commit date: 2022-03-31 17:40, Hash cc66d1020c3b
bpy.ops.outliner.item_activate(deselect_all=True)  # Operator
bpy.ops.outliner.item_activate(deselect_all=True)  # Operator
bpy.ops.object.gpencil_add(align='WORLD', location=(0, 0, 0), scale=(1, 1, 1), type='EMPTY')  # Operator
bpy.ops.gpencil.paintmode_toggle()  # Operator
bpy.context.space_data.context = 'DATA'  # Property
bpy.context.space_data.context = 'MATERIAL'  # Property
bpy.ops.object.material_slot_add()  # Operator
bpy.context.space_data.context = 'DATA'  # Property
bpy.context.object.data.layers["GP_Layer"].use_lights = False  # Property
bpy.ops.gpencil.editmode_toggle()  # Operator
bpy.ops.gpencil.editmode_toggle()  # Operator
bpy.ops.transform.translate(value=(4.74518, 3.85368e-08, -0.88162), orient_axis_ortho='X', orient_type='GLOBAL', orient_matrix=((1, 0, 0), (0, 1, 0), (0, 0, 1)), orient_matrix_type='GLOBAL', mirror=False, use_proportional_edit=False, proportional_edit_falloff='SMOOTH', proportional_size=0.092296, use_proportional_connected=False, use_proportional_projected=False)  # Operator
bpy.ops.outliner.item_activate(deselect_all=True)  # Operator
bpy.ops.outliner.item_activate(deselect_all=True)  # Operator
bpy.ops.action.duplicate_move(ACTION_OT_duplicate={}, TRANSFORM_OT_transform={"mode":'<UNKNOWN ENUM>', "value":(4.80374, 0, 0, 0), "orient_axis":'Z', "orient_type":'GLOBAL', "orient_matrix":((1, 0, 0), (0, 1, 0), (0, 0, 1)), "orient_matrix_type":'GLOBAL', "constraint_axis":(False, False, False), "mirror":False, "use_proportional_edit":False, "proportional_edit_falloff":'SMOOTH', "proportional_size":0.092296, "use_proportional_connected":False, "use_proportional_projected":False, "snap":False, "snap_target":'CLOSEST', "snap_point":(0, 0, 0), "snap_align":False, "snap_normal":(0, 0, 0), "gpencil_strokes":False, "center_override":(0, 0, 0), "release_confirm":False, "use_accurate":False})  # Operator

# backtrace
/home/haig/Apps/blender/blender(BLI_system_backtrace+0x20) [0xb340860]
/home/haig/Apps/blender/blender() [0x113106d]
/usr/lib/libc.so.6(+0x42560) [0x7f2f578f7560]
/home/haig/Apps/blender/blender(MEM_lockfree_allocN_len+0x7) [0xb34ce77]
/home/haig/Apps/blender/blender(MEM_lockfree_freeN+0x18) [0xb34ce98]
/home/haig/Apps/blender/blender(BKE_gpencil_free_point_weights+0x1a) [0x114f82a]
/home/haig/Apps/blender/blender(BKE_gpencil_free_stroke_weights+0x42) [0x114f882]
/home/haig/Apps/blender/blender(BKE_gpencil_free_stroke+0x32) [0x114f922]
/home/haig/Apps/blender/blender(BKE_gpencil_stroke_perimeter_from_view+0xd6b) [0x115d22b]
/home/haig/Apps/blender/blender(_ZN7blender2io7gpencil18GpencilExporterPDF21export_gpencil_layersEv+0x2ef) [0x22397cf]
/home/haig/Apps/blender/blender(_ZN7blender2io7gpencil18GpencilExporterPDF8add_bodyEv+0x9) [0x2239889]
/home/haig/Apps/blender/blender(gpencil_io_export+0x2b6) [0x222e706]
/home/haig/Apps/blender/blender() [0x1eedb9a]
/home/haig/Apps/blender/blender() [0x1573139]
/home/haig/Apps/blender/blender() [0x1575f5e]
/home/haig/Apps/blender/blender() [0x1576bed]
/home/haig/Apps/blender/blender(wm_event_do_handlers+0x410) [0x15773c0]
/home/haig/Apps/blender/blender(WM_main+0x20) [0x156cdb0]
/home/haig/Apps/blender/blender(main+0x31d) [0x101c4bd]
/usr/lib/libc.so.6(+0x2d310) [0x7f2f578e2310]
/usr/lib/libc.so.6(__libc_start_main+0x81) [0x7f2f578e23c1]
/home/haig/Apps/blender/blender() [0x112d97c]

# Python backtrace

**System Information** Operating system: Linux-5.17.1-arch1-1-x86_64-with-glibc2.35 64 Bits Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 510.60.02 **Blender Version** Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: `cc66d1020c` **Short description of error** Blender crashes every time I export GP to PDF or SVG no matter the options. **Exact steps for others to reproduce the error** 1) Select a GP object 2) Export GP to PDF or SVG 3) Adjust options or not (makes no difference that I've noticed) 4) Blender crashes in a couple of moments [gp2pdf_crash.blend](https://archive.blender.org/developer/F12982609/gp2pdf_crash.blend) Here's the backtrace: ```lines=10 # Blender 3.1.2, Commit date: 2022-03-31 17:40, Hash cc66d1020c3b bpy.ops.outliner.item_activate(deselect_all=True) # Operator bpy.ops.outliner.item_activate(deselect_all=True) # Operator bpy.ops.object.gpencil_add(align='WORLD', location=(0, 0, 0), scale=(1, 1, 1), type='EMPTY') # Operator bpy.ops.gpencil.paintmode_toggle() # Operator bpy.context.space_data.context = 'DATA' # Property bpy.context.space_data.context = 'MATERIAL' # Property bpy.ops.object.material_slot_add() # Operator bpy.context.space_data.context = 'DATA' # Property bpy.context.object.data.layers["GP_Layer"].use_lights = False # Property bpy.ops.gpencil.editmode_toggle() # Operator bpy.ops.gpencil.editmode_toggle() # Operator bpy.ops.transform.translate(value=(4.74518, 3.85368e-08, -0.88162), orient_axis_ortho='X', orient_type='GLOBAL', orient_matrix=((1, 0, 0), (0, 1, 0), (0, 0, 1)), orient_matrix_type='GLOBAL', mirror=False, use_proportional_edit=False, proportional_edit_falloff='SMOOTH', proportional_size=0.092296, use_proportional_connected=False, use_proportional_projected=False) # Operator bpy.ops.outliner.item_activate(deselect_all=True) # Operator bpy.ops.outliner.item_activate(deselect_all=True) # Operator bpy.ops.action.duplicate_move(ACTION_OT_duplicate={}, TRANSFORM_OT_transform={"mode":'<UNKNOWN ENUM>', "value":(4.80374, 0, 0, 0), "orient_axis":'Z', "orient_type":'GLOBAL', "orient_matrix":((1, 0, 0), (0, 1, 0), (0, 0, 1)), "orient_matrix_type":'GLOBAL', "constraint_axis":(False, False, False), "mirror":False, "use_proportional_edit":False, "proportional_edit_falloff":'SMOOTH', "proportional_size":0.092296, "use_proportional_connected":False, "use_proportional_projected":False, "snap":False, "snap_target":'CLOSEST', "snap_point":(0, 0, 0), "snap_align":False, "snap_normal":(0, 0, 0), "gpencil_strokes":False, "center_override":(0, 0, 0), "release_confirm":False, "use_accurate":False}) # Operator # backtrace /home/haig/Apps/blender/blender(BLI_system_backtrace+0x20) [0xb340860] /home/haig/Apps/blender/blender() [0x113106d] /usr/lib/libc.so.6(+0x42560) [0x7f2f578f7560] /home/haig/Apps/blender/blender(MEM_lockfree_allocN_len+0x7) [0xb34ce77] /home/haig/Apps/blender/blender(MEM_lockfree_freeN+0x18) [0xb34ce98] /home/haig/Apps/blender/blender(BKE_gpencil_free_point_weights+0x1a) [0x114f82a] /home/haig/Apps/blender/blender(BKE_gpencil_free_stroke_weights+0x42) [0x114f882] /home/haig/Apps/blender/blender(BKE_gpencil_free_stroke+0x32) [0x114f922] /home/haig/Apps/blender/blender(BKE_gpencil_stroke_perimeter_from_view+0xd6b) [0x115d22b] /home/haig/Apps/blender/blender(_ZN7blender2io7gpencil18GpencilExporterPDF21export_gpencil_layersEv+0x2ef) [0x22397cf] /home/haig/Apps/blender/blender(_ZN7blender2io7gpencil18GpencilExporterPDF8add_bodyEv+0x9) [0x2239889] /home/haig/Apps/blender/blender(gpencil_io_export+0x2b6) [0x222e706] /home/haig/Apps/blender/blender() [0x1eedb9a] /home/haig/Apps/blender/blender() [0x1573139] /home/haig/Apps/blender/blender() [0x1575f5e] /home/haig/Apps/blender/blender() [0x1576bed] /home/haig/Apps/blender/blender(wm_event_do_handlers+0x410) [0x15773c0] /home/haig/Apps/blender/blender(WM_main+0x20) [0x156cdb0] /home/haig/Apps/blender/blender(main+0x31d) [0x101c4bd] /usr/lib/libc.so.6(+0x2d310) [0x7f2f578e2310] /usr/lib/libc.so.6(__libc_start_main+0x81) [0x7f2f578e23c1] /home/haig/Apps/blender/blender() [0x112d97c] # Python backtrace ```
Author

Added subscriber: @HaigPetrus

Added subscriber: @HaigPetrus

Added subscriber: @mano-wii

Added subscriber: @mano-wii

I cannot reproduce the problem.
Tested on:
Operating system: macOS-12.2-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Apple 4.1 Metal - 76.3

I cannot reproduce the problem. Tested on: Operating system: `macOS-12.2-arm64-arm-64bit 64 Bits` Graphics card: `Apple M1 Apple 4.1 Metal - 76.3`
Author

True, that some GP objects export without a hitch. However, with some more complex characters (but not all complex characters or objects), it crashes every time. Here's a stripped-down part of a character used in a current production. This crashes every single time in our studio.gp2pdf_crash.blend

I don't understand why this happens with some objects and not others. So, this is going to be an ongoing problem when various departments ask for vector outputs and it crashes on some objects and not others on the same character, often times.

True, that some GP objects export without a hitch. However, with some more complex characters (but not all complex characters or objects), it crashes every time. Here's a stripped-down part of a character used in a current production. This crashes every single time in our studio.[gp2pdf_crash.blend](https://archive.blender.org/developer/F12982609/gp2pdf_crash.blend) I don't understand why this happens with some objects and not others. So, this is going to be an ongoing problem when various departments ask for vector outputs and it crashes on some objects and not others *on the same character, often times*.
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Antonio Vazquez self-assigned this 2022-04-08 12:04:50 +02:00

This issue was referenced by aa1e8bb9ab

This issue was referenced by aa1e8bb9ab925a436fd832bdb958bef8dbcf3164

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Author

Can I test this commit with the 3.1.2 stable buildbot version, or should is it only in 3.2.0 alpha?

Can I test this commit with the 3.1.2 stable buildbot version, or should is it only in 3.2.0 alpha?

This fix will be in the 3.2 build of tomorrow.

This fix will be in the 3.2 build of tomorrow.
Author

Thank you, Antonio! It appears to be working fine, now. Can confirm on the master files it appeared on. This is so far true on Arch, Mint, and Ubuntu current versions.

Just a note: this is a pretty major feature that we use all the time in the studio for various reasons (most having to do directly with production). Would it not make sense to add this fix to another point release for 3.1.x stable? Just a thought.

Thank you, Antonio! It appears to be working fine, now. Can confirm on the master files it appeared on. This is so far true on Arch, Mint, and Ubuntu current versions. Just a note: this is a pretty major feature that we use all the time in the studio for various reasons (most having to do directly with production). Would it not make sense to add this fix to another point release for 3.1.x stable? Just a thought.
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#97150
No description provided.