GPv3: Assert when try to transform a stroke #114060

Closed
opened 2023-10-23 12:41:06 +02:00 by Antonio Vazquez · 4 comments

Windows 11
Last source compiled at 23/10/2023 12:35

As soon you try to transform with G or using the Gizmo get an assert (compiled in Debug mode)

To reproduce:

  1. Open default scene.
  2. Add a GPencil Stroke object (be sure to have GPv3 enabled)
  3. Enter in Edit mode
  4. Select some points
  5. Try to move using Transform gizmo o Gkey.

The assert is:

BLI_assert failed: D:\MyBlender\BlenderDEV\blender\source\blender\blenlib\BLI_array.hh:196, operator [](), at 'index < size_'

Call Stack:

>	blender.exe!blender::Array<blender::index_mask::IndexMask,4,blender::GuardedAllocator>::operator[](__int64 index) Line 196	C++
 	blender.exe!blender::ed::transform::greasepencil::createTransGreasePencilVerts::__l6::<lambda>(int __formal, blender::bke::greasepencil::Drawing & drawing) Line 48	C++
 	blender.exe!blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing &)>::callback_fn<`blender::ed::transform::greasepencil::createTransGreasePencilVerts'::`6'::SnapCursorDataIntern <lambda>(void)>(__int64 callable, int <params_0>, blender::bke::greasepencil::Drawing & <params_1>) Line 97	C++
 	blender.exe!blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing &)>::operator()(int <params_0>, blender::bke::greasepencil::Drawing & <params_1>) Line 133	C++
 	blender.exe!GreasePencil::foreach_editable_drawing::__l2::<lambda>(const int layer_index, const blender::bke::greasepencil::Drawing & drawing) Line 1906	C++
 	blender.exe!blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing const &)>::callback_fn<`GreasePencil::foreach_editable_drawing'::`2'::SnapCursorDataIntern <lambda>(void)>(__int64 callable, int <params_0>, const blender::bke::greasepencil::Drawing & <params_1>) Line 97	C++
 	blender.exe!blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing const &)>::operator()(int <params_0>, const blender::bke::greasepencil::Drawing & <params_1>) Line 133	C++
 	blender.exe!foreach_drawing_ex(const GreasePencil & grease_pencil, const int frame, const ForeachDrawingMode mode, blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing const &)> function) Line 1865	C++
 	blender.exe!GreasePencil::foreach_editable_drawing(const int frame, blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing &)> function) Line 1907	C++
 	blender.exe!blender::ed::transform::greasepencil::createTransGreasePencilVerts(bContext * C, TransInfo * t) Line 56	C++
 	blender.exe!create_trans_data(bContext * C, TransInfo * t) Line 1097	C++
 	blender.exe!initTransform(bContext * C, TransInfo * t, wmOperator * op, const wmEvent * event, int mode) Line 1956	C++
 	blender.exe!transformops_data(bContext * C, wmOperator * op, const wmEvent * event) Line 388	C++

Windows 11 Last source compiled at 23/10/2023 12:35 As soon you try to transform with `G` or using the Gizmo get an assert (compiled in Debug mode) To reproduce: 1) Open default scene. 2) Add a GPencil Stroke object (be sure to have GPv3 enabled) 3) Enter in Edit mode 4) Select some points 5) Try to move using Transform gizmo o `G`key. The assert is: `BLI_assert failed: D:\MyBlender\BlenderDEV\blender\source\blender\blenlib\BLI_array.hh:196, operator [](), at 'index < size_'` Call Stack: ``` > blender.exe!blender::Array<blender::index_mask::IndexMask,4,blender::GuardedAllocator>::operator[](__int64 index) Line 196 C++ blender.exe!blender::ed::transform::greasepencil::createTransGreasePencilVerts::__l6::<lambda>(int __formal, blender::bke::greasepencil::Drawing & drawing) Line 48 C++ blender.exe!blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing &)>::callback_fn<`blender::ed::transform::greasepencil::createTransGreasePencilVerts'::`6'::SnapCursorDataIntern <lambda>(void)>(__int64 callable, int <params_0>, blender::bke::greasepencil::Drawing & <params_1>) Line 97 C++ blender.exe!blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing &)>::operator()(int <params_0>, blender::bke::greasepencil::Drawing & <params_1>) Line 133 C++ blender.exe!GreasePencil::foreach_editable_drawing::__l2::<lambda>(const int layer_index, const blender::bke::greasepencil::Drawing & drawing) Line 1906 C++ blender.exe!blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing const &)>::callback_fn<`GreasePencil::foreach_editable_drawing'::`2'::SnapCursorDataIntern <lambda>(void)>(__int64 callable, int <params_0>, const blender::bke::greasepencil::Drawing & <params_1>) Line 97 C++ blender.exe!blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing const &)>::operator()(int <params_0>, const blender::bke::greasepencil::Drawing & <params_1>) Line 133 C++ blender.exe!foreach_drawing_ex(const GreasePencil & grease_pencil, const int frame, const ForeachDrawingMode mode, blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing const &)> function) Line 1865 C++ blender.exe!GreasePencil::foreach_editable_drawing(const int frame, blender::FunctionRef<void __cdecl(int,blender::bke::greasepencil::Drawing &)> function) Line 1907 C++ blender.exe!blender::ed::transform::greasepencil::createTransGreasePencilVerts(bContext * C, TransInfo * t) Line 56 C++ blender.exe!create_trans_data(bContext * C, TransInfo * t) Line 1097 C++ blender.exe!initTransform(bContext * C, TransInfo * t, wmOperator * op, const wmEvent * event, int mode) Line 1956 C++ blender.exe!transformops_data(bContext * C, wmOperator * op, const wmEvent * event) Line 388 C++ ```
Antonio Vazquez added the
Type
Report
Status
Needs Triage
Severity
Normal
labels 2023-10-23 12:41:07 +02:00
Antonio Vazquez added this to the Grease Pencil project 2023-10-23 12:41:17 +02:00
Antonio Vazquez changed title from GPv3: Assert when try transform a stroke to GPv3: Assert when try to transform a stroke 2023-10-23 12:42:57 +02:00
Member

@casey-bianco-davis Do you think you could tackle this?

@casey-bianco-davis Do you think you could tackle this?
Member

Can confirm.

Can confirm.
Philipp Oeser added
Status
Confirmed
Module
Grease Pencil
and removed
Status
Needs Triage
labels 2023-10-23 14:44:20 +02:00

@casey-bianco-davis Do you think you could tackle this?

I'll look into this.

> @casey-bianco-davis Do you think you could tackle this? I'll look into this.
Member
@casey-bianco-davis Thanks !
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-10-30 08:15:05 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#114060
No description provided.