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 Hi, I tried using the patch on the latest snapshot r8514, but I still get a crash. I contacted Daniel Steffen, the Apple engineer that used to maintain the Cocoa port of Tk about this as well. He suggested that the likely cause of the problem is that Tk Cocoa assumes that it can create its own TKApplication subclass of NSApplication and control its behaviors by the methods in that class, and that one might be able to fix the problem by comparing what the Tk cocoa is doing in its NSApplication subclass vs. what FLTK is doing in its FLApplication class. I know nothing about cocoa personally (thus the reason I use FLTK!) so it isn't obvious to me what the ramifications of this are, or what would have to be done in either or both of FLTK and Tk to make them coexist under Cocoa like they do have for the last 10 years under X11 and Carbon... I asked Daniel what portion of the Tk code is relevant and he suggested that the best place to look for starters is in the code that creates the TKApplication class, in TkpInit(), in the tkMacOSXInit.c source file. The cocoa-version of Tk 8.5.9 I'm building against is available here: https://github.com/das/tcltk/downloads The traceback for the crash that occurs with the patched version of FLTK r8514 is similar but not identical to the one I posted originally. In particular, in this one, I don't see any mention of "FLApplication" now: Info) VMD for MACOSXX86_64, version 1.9 (March 11, 2011) 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-11 18:17:01.657 VMD[60134:903] -[NSApplication _setup:]: unrecognized selector sent to instance 0x101607b40 2011-03-11 18:17:01.659 VMD[60134:903] An uncaught exception was raised 2011-03-11 18:17:01.659 VMD[60134:903] -[NSApplication _setup:]: unrecognized selector sent to instance 0x101607b40 2011-03-11 18:17:01.670 VMD[60134:903] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x101607b40' *** 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 0x000000010042da3e TkpInit + 491 6 Tk 0x000000010039b587 Tk_PkgInitStubsCheck + 2142 7 Tk 0x000000010039b62d Tk_Init + 9 8 VMD 0x00000001000f40e2 _ZN18CmdDelAtomSelMacroD1Ev + 66750 9 VMD 0x00000001000b8c00 _ZN8UIObject11check_eventEv + 990 10 VMD 0x00000001000bf87e _ZN8UIObject11check_eventEv + 28764 11 VMD 0x00000001000dcdd5 _ZN18Vrml2DisplayDeviceD1Ev + 18901 12 VMD 0x0000000100003308 _ZN9Fl_PixmapC2EPKPKc + 708 ) terminate called after throwing an instance of 'NSException' /Scratch/VMD 1.9.app/Contents/MacOS/startup.command: line 7: 60134 Abort trap "$p/../Resources/VMD.app/Contents/MacOS/VMD" $* logout [Process completed] 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
