Blender.Redraw() Segfault #1072

Closed
opened 2004-03-15 18:38:45 +01:00 by alex mole · 3 comments

Group: V 2.32 release
Resolution: Fixed
Category: Python

%%%If you call Blender.Redraw from an autoregistered
script, Blender segfaults just after printing either
the message:
"Memoryblock free: pointer not in memlist" or
something about a double-free [seems to randomly select
one but "...not in memlist" is more common].

A test script:
- 8<-------------------

!BPY

"""
Name: 'Test'
Blender: 231
Group: 'Misc'
"""
import Blender
Blender.Redraw ()
- 8<-------------------

This happens in 2.32 and the latest CVS [March 15th
2004]. I'm running Linux i386, 2.6.3 kernel, 3D card is
an nVidia GeForce MX 440.

gdb backtrace:

0 scrarea_do_winchange (area=0x84f924c)

  at source/blender/src/spacetypes.c:124

1 0x080c8685 in scrarea_dispatch_events (sa=0x84f924c)

  at source/blender/src/editscreen.c:535

2 0x080c931b in screen_dispatch_events ()

  at source/blender/src/editscreen.c:897

3 0x080c96c7 in screenmain () at

source/blender/src/editscreen.c:1120

4 0x0805bfdc in main (argc=1, argv=0xbffffa74)

  at source/creator/creator.c:569

(gdb) p *area
$3 = {next = 0x0, prev = 0x84f9164, v1 = 0x84f8a7c, v2

0x84f8afc,

v3 = 0x84f8b3c, v4 = 0x84f8abc, full = 0x0, winmat =

{{0.0833370239, 0, 0,
0}, {0, 0.16341427, 0, 0}, {0, 0, -0.00200000009,
0}, {-0, -0, -0, 1}},

totrct = {xmin = 0, xmax = 1152, ymin = 221, ymax =

835}, headrct = {

  xmin = 0, xmax = 1152, ymin = 221, ymax = 247},

winrct = {xmin = 0,

  xmax = 1152, ymin = 248, ymax = 835}, headwin = 9,

win = 8,

headertype = 1, spacetype = 0 '\0', butspacetype = 14

'\016', winx = 1153,

winy = 588, head_swap = 2 '\002', head_equal = 0

'\0', win_swap = 0 '\0',

win_equal = 0 '\0', headbutlen = 245, headbutofs = 0,

cursor = 7, flag = 0,

spacedata = {first = 0x8498c34, last = 0x84f9894},

uiblocks = {first = 0x0,

  last = 0x0}, panels = {first = 0x0, last = 0x0}}

%%%

**Group**: V 2.32 release **Resolution**: Fixed **Category**: Python %%%If you call Blender.Redraw from an autoregistered script, Blender segfaults just after printing either the message: "Memoryblock free: pointer not in memlist" or something about a double-free [seems to randomly select one but "...not in memlist" is more common]. A test script: - 8<------------------- # !BPY """ Name: 'Test' Blender: 231 Group: 'Misc' """ import Blender Blender.Redraw () - 8<------------------- This happens in 2.32 and the latest CVS [March 15th 2004]. I'm running Linux i386, 2.6.3 kernel, 3D card is an nVidia GeForce MX 440. gdb backtrace: # 0 scrarea_do_winchange (area=0x84f924c) ``` at source/blender/src/spacetypes.c:124 ``` # 1 0x080c8685 in scrarea_dispatch_events (sa=0x84f924c) ``` at source/blender/src/editscreen.c:535 ``` # 2 0x080c931b in screen_dispatch_events () ``` at source/blender/src/editscreen.c:897 ``` # 3 0x080c96c7 in screenmain () at source/blender/src/editscreen.c:1120 # 4 0x0805bfdc in main (argc=1, argv=0xbffffa74) ``` at source/creator/creator.c:569 ``` (gdb) p *area $3 = {next = 0x0, prev = 0x84f9164, v1 = 0x84f8a7c, v2 # 0x84f8afc, ``` v3 = 0x84f8b3c, v4 = 0x84f8abc, full = 0x0, winmat = ``` {{0.0833370239, 0, 0, 0}, {0, 0.16341427, 0, 0}, {0, 0, -0.00200000009, 0}, {-0, -0, -0, 1}}, ``` totrct = {xmin = 0, xmax = 1152, ymin = 221, ymax = ``` 835}, headrct = { ``` xmin = 0, xmax = 1152, ymin = 221, ymax = 247}, ``` winrct = {xmin = 0, ``` xmax = 1152, ymin = 248, ymax = 835}, headwin = 9, ``` win = 8, ``` headertype = 1, spacetype = 0 '\0', butspacetype = 14 ``` '\016', winx = 1153, ``` winy = 588, head_swap = 2 '\002', head_equal = 0 ``` '\0', win_swap = 0 '\0', ``` win_equal = 0 '\0', headbutlen = 245, headbutofs = 0, ``` cursor = 7, flag = 0, ``` spacedata = {first = 0x8498c34, last = 0x84f9894}, ``` uiblocks = {first = 0x0, ``` last = 0x0}, panels = {first = 0x0, last = 0x0}} ``` %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

This task was automatically closed as archived as part of migration, because the project or tracker this task belonged to is no longer active.

This task was automatically closed as archived as part of migration, because the project or tracker this task belonged to is no longer active.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
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
3 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#1072
No description provided.