Yes. It seems that it is a system limitation. So I will document that.
Thanks,
Scuri
From: Dave Atkinson [mailto:[email protected]]
Sent: sexta-feira, 22 de junho de 2012 13:58
To: [email protected]
Subject: [Iup-users] Problem with newline in button title, Solaris 5.8
Looks like it's well down inside Motif/X.
I ran this program using iuplua51:
require( "iuplua" )
b1 = iup.button{title="Press\nMe"}
dlg = iup.dialog{b1; title="The Crash Button", size="QUARTERxQUARTER"}
dlg:show()
iup.MainLoop()
I used gdb to examine the core file after the resulting crash. This is the
backtrace:
#0 0xff132b8c in strcmp () from /usr/lib/libc.so.1
#1 0xfed97ca0 in SubStringPosition () from /usr/lib/libXm.so.4
#2 0xfee48fe0 in _XmStringDrawSegment () from /usr/lib/libXm.so.4
#3 0xfed8bf78 in DrawLine () from /usr/lib/libXm.so.4
#4 0xfed8b5d8 in _render () from /usr/lib/libXm.so.4
#5 0xfed93610 in _draw () from /usr/lib/libXm.so.4
#6 0xfed97c10 in XmStringDrawUnderline () from /usr/lib/libXm.so.4
#7 0xfed93348 in Redisplay () from /usr/lib/libXm.so.4
#8 0xfed989b8 in DrawPushButtonLabel () from /usr/lib/libXm.so.4
#9 0xfed986cc in Redisplay () from /usr/lib/libXm.so.4
#10 0xfecbee30 in SendExposureEvent () from /usr/lib/libXt.so.4
#11 0xfecbec54 in CompressExposures () from /usr/lib/libXt.so.4
#12 0xfecbd830 in XtDispatchEventToWidget () from /usr/lib/libXt.so.4
#13 0xfecbd1b4 in _XtDefaultDispatcher () from /usr/lib/libXt.so.4
#14 0xfecbcedc in XtDispatchEvent () from /usr/lib/libXt.so.4
#15 0xfecc0798 in XtAppProcessEvent () from /usr/lib/libXt.so.4
#16 0xfefff1a8 in motLoopProcessEvent () from ./lib/libiup.so
#17 0xfefff28c in IupFlush () from ./lib/libiup.so
#18 0xfefdc590 in iDialogAfterShow () from ./lib/libiup.so
#19 0xfefdc8f8 in iupDialogShowXY () from ./lib/libiup.so
#20 0xfefd7628 in IupShow () from ./lib/libiup.so
#21 0xff0ce8a4 in Show () from ./lib/libiuplua51.so
#22 0x00018078 in luaD_precall ()
#23 0x00020eac in luaV_execute ()
#24 0x00018374 in luaD_call ()
#25 0x000178bc in luaD_rawrunprotected ()
#26 0x0001867c in luaD_pcall ()
#27 0x00015d50 in lua_pcall ()
#28 0x0002692c in luaB_pcall ()
#29 0x00018078 in luaD_precall ()
#30 0x00020eac in luaV_execute ()
#31 0x00018374 in luaD_call ()
#32 0x000178bc in luaD_rawrunprotected ()
#33 0x0001867c in luaD_pcall ()
#34 0x00015d50 in lua_pcall ()
#35 0x0002692c in luaB_pcall ()
#36 0x00018078 in luaD_precall ()
#37 0x00020eac in luaV_execute ()
#38 0x00018374 in luaD_call ()
---Type <return> to continue, or q <return> to quit---
#39 0x000178bc in luaD_rawrunprotected ()
#40 0x0001867c in luaD_pcall ()
#41 0x00015da4 in lua_pcall ()
#42 0xff0cb440 in docall () from ./lib/libiuplua51.so
#43 0xff0cbe98 in iuplua_call () from ./lib/libiuplua51.so
#44 0xff00919c in motButtonActivateCallback () from ./lib/libiup.so
#45 0xfecbc378 in XtCallCallbackList () from /usr/lib/libXt.so.4
#46 0xfee017b8 in ActivateCommon () from /usr/lib/libXm.so.4
#47 0xfecbf330 in HandleActions () from /usr/lib/libXt.so.4
#48 0xfecc5fa0 in HandleComplexState () from /usr/lib/libXt.so.4
#49 0xfecbdd4c in _XtTranslateEvent () from /usr/lib/libXt.so.4
#50 0xfecbdabc in XtDispatchEventToWidget () from /usr/lib/libXt.so.4
#51 0xfecbd3a8 in _XtDefaultDispatcher () from /usr/lib/libXt.so.4
#52 0xfecbcedc in XtDispatchEvent () from /usr/lib/libXt.so.4
#53 0xfecc0798 in XtAppProcessEvent () from /usr/lib/libXt.so.4
#54 0xfefff1a8 in motLoopProcessEvent () from ./lib/libiup.so
#55 0xfefff1f0 in IupMainLoop () from ./lib/libiup.so
#56 0xff0cdca4 in MainLoop () from ./lib/libiuplua51.so
#57 0x00018078 in luaD_precall ()
#58 0x00020eac in luaV_execute ()
#59 0x00018374 in luaD_call ()
#60 0x000178bc in luaD_rawrunprotected ()
#61 0x0001867c in luaD_pcall ()
#62 0x00015d50 in lua_pcall ()
#63 0x00014548 in pmain ()
#64 0x00018078 in luaD_precall ()
#65 0x00018330 in luaD_call ()
#66 0x000178bc in luaD_rawrunprotected ()
#67 0x0001867c in luaD_pcall ()
#68 0x00015e70 in lua_cpcall ()
#69 0x000148f4 in main ()
Dave Atkinson
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users