[CM] Snd and CLM
Richard Liston
liston@cc.gatech.edu
Sun, 14 Mar 2004 14:40:30 -0500
On 03/14/04, Bill Schottstaedt said:
> > but unfortunately on my system Snd crashes
> > when my browser is open. Colormap stuff - I'll have to try using a
> > local colormap.
>
> If possible, please send me a stack trace of this:
>
> gdb snd
> run
> where
>
Maybe "Snd crashes" wasn't exactly accurate. I had to put a
breakpoint on exit to get a stack trace. After starting Snd
I get the "can't get color" output lines, then I open the
listener, define scm-sine (ok), then create a sound using
with-sound. This is where it exits.
A workaround is to start Snd before mozilla. I think (not sure)
mozilla automatically switches to a local colormap if it needs
to. Having a browser open while I'm learning Snd is a definite
plus. :-)
Richard
(gdb) b exit
Breakpoint 1 at 0x325938
(gdb) run
Starting program: /net/ht102/liston/packages/snd-7/snd
Breakpoint 1 at 0xfed1a62c
can't get color AliceBlue -- will use white
can't get color green2 -- will use black
can't get color ivory1 -- will use white
can't get color darkgray -- will use black
can't get color AliceBlue -- will use white
can't get color lightgreen -- will use black
can't get color indianred2 -- will use black
can't get color goldenrod1 -- will use black
can't get color palegreen2 -- will use black
can't get color darkolivegreen1 -- will use black
Warning: Cannot allocate colormap entry for default background.
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request: 14 (X_GetGeometry)
Resource id in failed request: 0x0
Serial number of failed request: 4256
Current serial number in output stream: 4256
Breakpoint 1, 0xfed1a62c in exit ()
(gdb) where
#0 0xfed1a62c in exit ()
#1 0xfedac8e0 in _XDefaultError ()
#2 0xfeda2854 in _XError ()
#3 0xfed94c3c in _XReply ()
#4 0xfeda2624 in XGetGeometry ()
#5 0xfef6c338 in _XmCachePixmap ()
#6 0xfefbc3e4 in XmeGetPixmapData ()
#7 0xfef6a1dc in _XmCalcLabelDimensions ()
#8 0xfef6a080 in Initialize ()
#9 0xfeea63f0 in CallInitialize ()
#10 0xfeea2830 in xtCreate ()
#11 0xfeeaaaac in _XtCreateWidget ()
#12 0xfeeaf5a0 in XtCreateManagedWidget ()
#13 0x186da0 in add_sound_window (
filename=0x6f87b8 "/net/ht102/liston/packages/snd-7/test.snd",
read_only=128) at snd-xsnd.c:1751
#14 0x8827c in open_file_body (context=0x867d48) at snd-file.c:665
#15 0xff2a7b5c in scm_internal_dynamic_wind (
before=0x88260 <before_open_file>, inner=0x8826c <open_file_body>,
after=0x88298 <after_open_file>, inner_data=0x867d48, guard_data=0x867d48)
at dynwind.c:168
#16 0x8837c in snd_open_file_1 (filename=0x88260 "\001", select=true,
read_only=false) at snd-file.c:710
---Type <return> to continue, or q <return> to quit---
#17 0xe0040 in g_open_sound (filename=0x719c20) at snd-snd.c:2792
#18 0xff2b656c in scm_deval (x=0x2974, env=0x7cc1f0) at eval.c:2846
#19 0xff2b741c in scm_deval (x=0x8cc118, env=0x7cc1f0) at eval.c:2194
#20 0xff2b6188 in scm_deval (x=0x7cd398, env=0x7cc1f0) at eval.c:2017
#21 0xff2bae0c in scm_dapply (proc=0x7cd388, arg1=0x2974, args=0x7cc438)
at eval.c:3655
#22 0xff2a7a3c in scm_dynamic_wind (in_guard=0x7cc5c8, thunk=0x7cc588,
out_guard=0x7cc538) at dynwind.c:128
#23 0xff2b667c in scm_deval (x=0x7cd168, env=0x7cc618) at eval.c:3002
#24 0xff2b5484 in scm_i_eval (exp=0xff339ca4, env=0x7cc618) at eval.c:4069
#25 0xff2a7b5c in scm_internal_dynamic_wind (
before=0xff2b552c <change_environment>, inner=0xff2b5618 <inner_eval>,
after=0xff2b5548 <restore_environment>, inner_data=0x7c1d78,
guard_data=0x7c1b68) at dynwind.c:168
#26 0xff2fd340 in scm_internal_lazy_catch (tag=0xff2b552c,
body=0x10f46c <eval_form_wrapper>, body_data=0x7c1d78,
handler=0xff2fd368 <ss_handler>, handler_data=0x0) at throw.c:281
#27 0xff2fd1a8 in scm_internal_catch (tag=0x2374, body=0xff2fd3c0 <cwss_body>,
body_data=0xffbee058, handler=0x10e8ec <snd_catch_scm_error>,
handler_data=0x0) at throw.c:205
#28 0xff2fd430 in scm_internal_stack_catch (tag=0x2374,
body=0x10f46c <eval_form_wrapper>, body_data=0x7c1d78,
handler=0x10e8ec <snd_catch_scm_error>, handler_data=0x0) at throw.c:330
---Type <return> to continue, or q <return> to quit---
#29 0x10ee58 in snd_internal_stack_catch (tag=0x2374,
body=0x10f46c <eval_form_wrapper>, body_data=0x7c1d78,
handler=0x10e8ec <snd_catch_scm_error>, handler_data=0x0) at snd-xen.c:500
#30 0x10f8b0 in snd_report_listener_result (form=0x10f46c) at snd-xen.c:878
#31 0x6fdd8 in command_return (w=0x8a07a0, last_prompt=539)
at snd-listener.c:500
#32 0xfeebc01c in XtCallCallbackList ()
#33 0xff0264a0 in Activate ()
#34 0xfeebefd8 in HandleActions ()
#35 0xfeebddf8 in HandleSimpleState ()
#36 0xfeebd8d0 in _XtTranslateEvent ()
#37 0xfeebd804 in XtDispatchEventToWidget ()
#38 0xfeebd090 in _XtDefaultDispatcher ()
#39 0xfeebcbb8 in XtDispatchEvent ()
#40 0xfeeba748 in XtAppMainLoop ()
#41 0x1917f8 in snd_doit (argc=1, argv=0x32d800) at snd-xmain.c:986
#42 0xff2cf63c in invoke_main_func (body_data=0x2400) at init.c:640
#43 0xff2cf5e8 in scm_boot_guile_1 (base=0x2400, closure=0xffbeea30)
at init.c:616
#44 0xff2cf1d4 in scm_boot_guile (argc=1, argv=0xffbeeb24,
main_func=0x109180 <snd_main>, closure=0x0) at init.c:440
#45 0x109658 in main (argc=1, argv=0xffbeeb24) at snd.c:325
(gdb)