DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2588
Version: 1.3-current


The FLTK library crashes in an uncaught exception when the Cocoa version of
the Tk library is in the process of initializing itself.  This issue is
specific to the Cocoa-based versions of FLTK and Tk.  The old Carbon-based
FLTK and Tk versions don't have this problem.  The Cocoa versions are
required in order to build 64-bit applications for MacOS X, thus we are
running into this problem now that we've ported our code to MacOS X 10.6
with the new FLTK and new Tk versions.  I am assuming that the problem
also occurs with 32-bit Cocoa builds, but since we are currently using
Carbon based FLTK/Tk on 32-bit builds, I haven't tested that case yet.

If we disable Tk and just use the Tcl scripting only (no GUI windows),
then no crash occurs, and FLTK seems to operate fine.

When both FLTK and Tk are enabled, during the initialization of Tk in our
application startup, we get the following traceback:

Info) http://www.ks.uiuc.edu/Research/vmd/
Info) Email questions and bug reports to [email protected]
Info) Please include this reference in published work using VMD:
Info)    Humphrey, W., Dalke, A. and Schulten, K., `VMD - Visual
Info)    Molecular Dynamics', J. Molec. Graphics 1996, 14.1, 33-38.
Info) -------------------------------------------------------------
Info) Multithreading available, 16 CPUs detected.
Info) OpenCL Platform[0]: Apple, FULL_PROFILE  Devices: 2
Info)   [0] Quadro FX 4800                         24 CU @ 1.18 GHz,
1610MB RAM
Info)   [1] Intel(R) Xeon(R) CPU E5620 @ 2.40GHz   16 CU @ 2.34 GHz,
19327MB RAM
Info) OpenGL renderer: NVIDIA Quadro FX 4800 OpenGL Engine
Info)   Features: STENCIL MTX NPOT PS GLSL(VF)
Info)   GLSL rendering mode is NOT available.
Info)   Textures: 2-D (8192x8192), 3-D (2048x2048x2048), Multitexture (8)
2011-03-10 15:52:48.047 vmd_MACOSXX86_64[12459:903] -[FLApplication
_setup:]: unrecognized selector sent to instance 0x1015091a0
2011-03-10 15:52:48.049 vmd_MACOSXX86_64[12459:903] An uncaught exception
was raised
2011-03-10 15:52:48.049 vmd_MACOSXX86_64[12459:903] -[FLApplication
_setup:]: unrecognized selector sent to instance 0x1015091a0
2011-03-10 15:52:48.050 vmd_MACOSXX86_64[12459:903] *** Terminating app
due to uncaught exception 'NSInvalidArgumentException', reason:
'-[FLApplication _setup:]: unrecognized selector sent to instance
0x1015091a0'
*** Call stack at first throw:
(
        0   CoreFoundation                      0x00007fff865c97b4
__exceptionPreprocess + 180
        1   libobjc.A.dylib                     0x00007fff85f740f3
objc_exception_throw + 45
        2   CoreFoundation                      0x00007fff86623110
+[NSObject(NSObject) doesNotRecognizeSelector:] + 0
        3   CoreFoundation                      0x00007fff8659b91f
___forwarding___ + 751
        4   CoreFoundation                      0x00007fff86597a68
_CF_forwarding_prep_0 + 232
        5   Tk                                  0x000000010048aa3e TkpInit
+ 491
        6   Tk                                  0x00000001003f8587
Tk_PkgInitStubsCheck + 2142
        7   Tk                                  0x00000001003f862d Tk_Init
+ 9
        8   vmd_MACOSXX86_64                    0x00000001000f442e
_ZN13TclTextInterpC2EP6VMDApp + 442
        9   vmd_MACOSXX86_64                    0x00000001000b8f50
_ZN6UITextC2EP6VMDApp + 132
        10  vmd_MACOSXX86_64                    0x00000001000bfbca
_ZN6VMDApp7VMDinitEiPPcPKcPiS4_ + 1092
        11  vmd_MACOSXX86_64                    0x00000001000dd121 main +
154
        12  vmd_MACOSXX86_64                    0x00000001000035f4 start +
52
)
terminate called after throwing an instance of 'NSException'
Abort


Link: http://www.fltk.org/str.php?L2588
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to