From: SourceForge.net <no...@so...> - 2010-02-02 20:17:32
|
Bugs item #2944777, was opened at 2010-02-02 12:29 Message generated for change (Comment added) made by starseeker You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2944777&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: development: 8.6b1.1 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Cliff Yapp (starseeker) Assigned to: Nobody/Anonymous (nobody) Summary: Tcl_WaitForEvent: CFRunLoop finished on MacOSX Initial Comment: Using tcl 8.6cvs compiled for X11 graphics on Mac OSX, I have been attempting to get an application working whose purpose is to incrementally display an image onscreen as it is generated by a raytracer. To do this, the general approach is: 1. Set up the window and Tk Photo 2. Enter a loop where the image generation routine calls a function to put blocks into the photo (this is in C) The loop: a. Calls Tk_PhotoPutBlock to write the generated information b. Calls Tcl_DoOneEvent(TCL_ALL_EVENTS|TCL_DONT_WAIT); to immediately update the view. It's the latter step that seems to be failing: the window appears, but there is no visible output and the error on the command line is: Tcl_WaitForEvent: CFRunLoop finished Abort trap If I comment out the Tcl_DoOneEvent line, the display eventually does show the image but only upon completion of the entire raytrace. This same code did succeed with Tcl/Tk 8.5 X11 on the Mac, although the 8.5 AquaTk results were similar to the above - it either didn't update until the end or produced the same error as seen above. If any additional information or example code is needed I will do my best to supply it. Any help appreciated. ---------------------------------------------------------------------- >Comment By: Cliff Yapp (starseeker) Date: 2010-02-02 14:17 Message: One important update I just found - the above behavior is observed only when raytracing using multiple cores, which may indicate that the issue is thread related - is Tcl_DoOneEvent supposed to be thread safe? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2944777&group_id=10894 |