[PD-dev] crashes with "popup" when using loadbangs

B. Bogart ben at ekran.org
Tue Sep 28 18:03:33 CEST 2004


hey all,

I just realized that the "popup" external crashes (on OSX) when I use a
load-bang to set a default selection.

Following is the gdb trace on OSX.

I don't have a linux machine here to test on so I don't know what would
happen on that platform. I've attached a example patch that crashes this
machine. The way around the bug I found was to put a delay of 180ms after
the loadbang. Any less and the patch still crashes. Anyone have an idea
about what is happening in those first 180ms that is causing the thing to
crash? The popup external is in CVS under bbogart. Please take a look if
you suspect the code! Is the external actually taking 180ms to init?

Anyone have any suggestions/ideas?

Thanks,
Ben

Program received signal EXC_BAD_ACCESS, Could not access memory.
glist_getcanvas (x=0x0) at g_graph.c:150
150         while (x->gl_owner && !x->gl_havewindow && x->gl_isgraph)
(gdb) where
#0  glist_getcanvas (x=0x0) at g_graph.c:150
#1  0x001eb458 in popup_iselect ()
#2  0x000334c0 in outlet_float (x=0x437990, f=0) at m_obj.c:355
#3  0x000356c4 in binbuf_eval (x=0x0, target=0x43986c, argc=0, argv=0x0)
at m_binbuf.c:581
#4  0x000333c8 in outlet_bang (x=0x437990) at m_obj.c:323
#5  0x000325f8 in pd_typedmess (x=0x22004228, s=0x571cc, argc=0,
argv=0xbffff5b0) at m_class.c:719
#6  0x000328bc in pd_vmess (x=0x22004228, sel=0x0, fmt=0x1 <Address 0x1
out of bounds>) at m_class.c:775
#7  0x0000496c in canvas_loadbangsubpatches (x=0x43986c) at g_canvas.c:1019
#8  0x000325f8 in pd_typedmess (x=0x22004228, s=0x571cc, argc=0,
argv=0xbffff5b0) at m_class.c:719
#9  0x000328bc in pd_vmess (x=0x22004228, sel=0x0, fmt=0x1 <Address 0x1
out of bounds>) at m_class.c:775
#10 0x00031418 in pd_doloadbang () at m_pd.c:263
#11 0x00037808 in glob_evalfile (ignore=0x0, name=0x22004228, dir=0x0) at
m_binbuf.c:1213
#12 0x00032654 in pd_typedmess (x=0x795cc, s=0x571cc, argc=0,
argv=0xbffff5b0) at m_class.c:723
#13 0x000356ac in binbuf_eval (x=0x0, target=0xbffff8c0, argc=0, argv=0x0)
at m_binbuf.c:578
#14 0x0003a6d0 in socketreceiver_read (x=0xbffff8ac, fd=497100) at
s_inter.c:379
#15 0x0003a1e8 in sys_domicrosleep (microsec=0, pollem=4429932) at
s_inter.c:216
#16 0x0003afb4 in sys_pollgui () at s_inter.c:907
#17 0x00038a64 in m_scheduler () at m_sched.c:454
#18 0x00002464 in _start (argc=462556, argv=0x0, envp=0x1) at
/SourceCache/Csu/Csu-47/crt.c:267
#19 0x8fe1a700 in __dyld__dyld_start ()

-------------- next part --------------
A non-text attachment was scrubbed...
Name: popup-crash-on-set.pd
Type: application/octet-stream
Size: 155 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20040928/eee5e328/attachment.obj>


More information about the Pd-dev mailing list