GPencil: Blender crashes after Malloc returns null while drawing a line when use lot of points #71260
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#71260
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
Operating system: Debian GNU/Linux stable
Graphics card: Intel Corporation HD Graphics 5500
Blender Version
Broken: v 2.81 Beta Date: 2019-10-30 21:42 Hash:
ed079850cb
Short description of error
Blender crashes after Malloc returns null while drawing a line in "Edit Mode" on a "Greace Pencil" object
Exact steps for others to reproduce the error
Open a new "2D Animation" file just draw a very long line.
After a while blender will crash. If you opened it in a terminal it states:
Malloc returns null: len=18446744073708109824 in recalloc, total 327907528
The crash report states the following:
Blender 2.81 (sub 16), Commit date: 2019-10-30 21:42, Hash
ed079850cb
backtrace
./blender(BLI_system_backtrace+0x1d) [0x14ee30d]
./blender() [0x12cb7b9]
/lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7fefa93bc840]
./blender() [0x2e7b430]
./blender() [0x2e7d036]
./blender() [0x2e7d79c]
./blender() [0x2e7eaf4]
./blender() [0x16a505c]
./blender() [0x16a6216]
./blender() [0x16a795c]
./blender(wm_event_do_handlers+0x312) [0x16a8032]
./blender(WM_main+0x20) [0x169d750]
./blender(main+0x2fe) [0x1237bbe]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7fefa93a909b]
./blender() [0x12c80dc]
Added subscriber: @cybercow
Added subscribers: @antoniov, @mano-wii
@antoniov, do you know what might be happening?
It looks is not expading the buffer allocation, but I cannot reproduce it drawing a very long stroke...never had this issue.
And...how draw a line in
Edit Mode
?I can reproduce the problem by quickly scribbling until the value of
bufer_size
in theED_gpencil_sbuffer_ensure
reaches26624
.This problem is easily solved by changing the position of this line:
But as I continue I run into another problem.
gpd->runtime.sbuffer_size
is ashort
and soon the value will be clamped turning negative.Negative
buff_size
is problematic.I recommend using
unsigned
and preferablyint
.This comment was removed by @antoniov
Blender crashes after Malloc returns null while drawing a line in "Edit Mode" on a "Greace Pencil" objectto GPencil: Blender crashes after Malloc returns null while drawing a line when use lot of pointsThis issue was referenced by
782f36d6a8
Changed status from 'Open' to: 'Resolved'