Home

Blender.Redraw() Segfault
Closed, ArchivedPublic

Description

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}}

lordbosh (alex mole) set Type to Bug.Via Old WorldMar 15 2004, 6:38 PM
ianwill (Willian Padovani Germano) closed this task as "Archived".Via Old WorldJul 22 2004, 5:51 AM
None (Nobody) added a comment.Via Old WorldMar 15 2004, 6:38 PM

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

Add Comment