CDAT / cdat

Community Data Analysis Tools
Other
174 stars 68 forks source link

When generating 2D VCS animations, it takes too long to generate the animations. It is also generating a lot of leaking messages to debug text on the terminal window: #605

Closed aashish24 closed 9 years ago

aashish24 commented 9 years ago

When generating 2D VCS animations, it takes too long to generate the animations. It is also generating a lot of leaking messages to debug text on the terminal window:

bjc[77913]: Object 0x7f91e9338140 of class NSDictionaryM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb05120 of class __NSDictionaryM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e2a25720 of class NSDictionaryM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class __NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e96079e0 of class NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e93eb5a0 of class __NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e3e92aa0 of class NSFont autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb998b0 of class _NSThemeCloseWidget autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e2a2a850 of class NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class __NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91eff8b000 of class NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class __NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e3e92aa0 of class NSFont autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381d660 of class _NSThemeWidget autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e382a8d0 of class __NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e93acf90 of class NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class __NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e3e92aa0 of class NSFont autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb8d270 of class _NSThemeWidget autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e290d240 of class NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class __NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb99970 of class NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class __NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e92bfb30 of class NSTrackingArea autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e96deab0 of class NSTrackingArea autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb74e20 of class NSConcreteMapTable autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e96deb00 of class NSView autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb750c0 of class NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1e67b50 of class __NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e2a01250 of class NSUserDefaults autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecaae660 of class NSCFNumber autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ef382e60 of class NSDictionaryI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class __NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e96deb00 of class NSView autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1e67490 of class __NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ef399410 of class NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class __NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb7bbc0 of class NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class __NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c01f60 of class NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ef3f9e90 of class NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e96dec10 of class __NSCFData autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381bfa0 of class NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381fa40 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381fa40 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381fa40 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381fa40 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ef3f9d60 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381fa40 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e96670c0 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e96670c0 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381bfa0 of class NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e96670c0 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381bfa0 of class NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381bfa0 of class NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c07cb0 of class __NSCFDictionary autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381bfa0 of class NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e94a93f0 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ef3f0210 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb7aba0 of class NSTrackingArea autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb8d3c0 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb8d3c0 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381bfa0 of class NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb8d3c0 of class NSConcreteAttributedString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381bfa0 of class NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381bfa0 of class NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1c07cb0 of class __NSCFDictionary autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e381bfa0 of class NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91eff89760 of class NSConcreteValue autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ef325950 of class NSConcreteValue autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb75660 of class NSDictionaryI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1e66670 of class NSConcreteValue autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb75910 of class NSConcreteValue autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e290bf50 of class __NSDictionaryI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e2919340 of class NSConcreteValue autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e1e70bf0 of class NSConcreteValue autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91ecb756e0 of class NSDictionaryI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[77913]: Object 0x7f91e2a29250 of class __NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug

doutriaux1 commented 9 years ago

@aashish24 we talked about optimization on Thursday caching and better generation of unstructured grid should help. Does anyone know where these error message come from? VTK? PyQt? @dakoop i think you mentioned you saw these as well. Any idea. @aashish24 did you get these from command line or GUI?

aashish24 commented 9 years ago

I pushed a branch for optimizations (please have a look at the emails and on issue tracker). I am not sure where thsese are coming from (Dean had it)

dakoop commented 9 years ago

The error messages could be threading-related, but I do not see them in Mac OS 10.9.4. The issue with the old threading code was that it wanted to use the existing vcs canvas to do all animation rendering. This has potential issues due to the fact that someone could interact with that single canvas as the animation is rendering. In addition, I believe under vtkvcs, things were crashing when I tried that. I created a new canvas to do offline animation rendering, but there may be inter-thread object accesses that the system might complain about. The problem is that there do not seem to be easy ways to copy vcs objects.

doutriaux1 commented 9 years ago

@dakoop vcs object should be thread safe, but if you really want to copy say a boxfill object just do: x.createboxfill("new_name",b.name)

On the plots 99% of the time what is rendered is actually a copy of that object, so it should be fairly thread safe anyway.

doutriaux1 commented 9 years ago

duplicte #642