I have not overwritten anything outside of channel.cpp and
config.cpp.

- AGLWindow::configInit() *does* returns true
- AGLWindow::makeCurrent I can confirm is called
- I do not set aglSetCurrentContext( 0 )

I added `getWindow()->makeCurrent(false)` and stepping through that
call it does in fact aglSetCurrentcontext( _aglContext ), where
_aglContext != NULL.

In my code I write the image to disk, so I thought that might be
setting some CGL contexts or whatever, so I culled it - still same
problem.
I thought it might be because I included Cocoa.h... so I removed it
but still same problem.

In fact, I've paired Channel::FrameDraw to literally just:

        void Channel::frameDraw( const uint32_t frameID)
        {
                eq::Channel::frameDraw( frameID );
                glEnable(GL_TEXTURE_2D);
        }

And it still crashes on the glEnable call, with a EXC_BAD_ACCESS.
I've even got NSZombieEnabled to force objects to never be released,
but to no avail.

After slogging through the log, I'm convinced that this is some C++/
ObjC memory error... something not being in the right context or
deleted or released or something.

[Switching to process 18081]
18081 2691003616 //Users/slate/Documents/equalizer/XCode/../lib/client/
pipe.cpp:83    82  New eq::Pipe @0x45481c0
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/base/
thread.cpp:120    82 Thread N2eq4Pipe10PipeThreadE successfully
initialized
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
pipe.cpp:296    82 Entered pipe thread
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
pipe.cpp:242    82 Set up pipe message pump for agl
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
pipe.cpp:535    82 Using AGLPipe
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglPipe.cpp:77    82 Using CG displayID 188823026
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/
pipe.cpp:505    82 Pipe pvp set: [ 2048 -1152 2048 1152 ]
18081 2958643200 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglWindow.cpp:367    83 Created AGL context 0x3912a00 shared with 0
18081 2958110720 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglWindow.cpp:367    84 Created AGL context 0x29051800 shared with 0
18081 2691003616 //Users/slate/Documents/equalizer/XCode/../lib/client/
pipe.cpp:83    84  New eq::Pipe @0x284317c0
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/base/
thread.cpp:120    84 Thread N2eq4Pipe10PipeThreadE successfully
initialized
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
window.cpp:83    84  New eq::Window @0x1e5034d0
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
pipe.cpp:296    84 Entered pipe thread
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
pipe.cpp:242    85 Set up pipe message pump for agl
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
pipe.cpp:535    85 Using AGLPipe
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglPipe.cpp:77    85 Using CG displayID 188823028
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/
pipe.cpp:505    85 Pipe pvp set: [ 0 -1152 2048 1152 ]
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
window.cpp:83   135  New eq::Window @0x2f2af40
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
window.cpp:296   135 Window vp set: [ 2048 -1152 2048 1152 ]:[ 0 0 1
1 ]
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
window.cpp:416   135 Using AGLWindow
2010-05-14 09:12:11.607 OsiriX[18081:5903] ***
__NSAutoreleaseNoPool(): Object 0x2f42450 of class
NSCarbonWindowContentView autoreleased with no pool in place - just
leaking
2010-05-14 09:12:11.607 OsiriX[18081:5903] ***
__NSAutoreleaseNoPool(): Object 0x2f42960 of class NSCFArray
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.608 OsiriX[18081:5903] ***
__NSAutoreleaseNoPool(): Object 0x2f428a0 of class NSPathStore2
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.608 OsiriX[18081:5903] ***
__NSAutoreleaseNoPool(): Object 0x1e503310 of class NSCFData
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.609 OsiriX[18081:5903] ***
__NSAutoreleaseNoPool(): Object 0xa026cb08 of class NSCFString
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.609 OsiriX[18081:5903] ***
__NSAutoreleaseNoPool(): Object 0x410f9f0 of class __NSArray0
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.610 OsiriX[18081:5903] ***
__NSAutoreleaseNoPool(): Object 0x41a81f0 of class NSCFNumber
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.610 OsiriX[18081:5903] ***
__NSAutoreleaseNoPool(): Object 0x454b620 of class NSCFArray
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.611 OsiriX[18081:5903] ***
__NSAutoreleaseNoPool(): Object 0x454c570 of class NSConcreteMapTable
autoreleased with no pool in place - just leaking
18081 2958110720 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglWindow.cpp:550   179 set Carbon window 0x2f2aa90
2010-05-14 09:12:11.649 OsiriX[18081:5a03] ***
__NSAutoreleaseNoPool(): Object 0x2f52110 of class
NSCarbonWindowContentView autoreleased with no pool in place - just
leaking
2010-05-14 09:12:11.650 OsiriX[18081:5a03] ***
__NSAutoreleaseNoPool(): Object 0x454fda0 of class NSCFArray
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.650 OsiriX[18081:5a03] ***
__NSAutoreleaseNoPool(): Object 0x284390f0 of class NSCFArray
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.650 OsiriX[18081:5a03] ***
__NSAutoreleaseNoPool(): Object 0x28439a40 of class NSConcreteMapTable
autoreleased with no pool in place - just leaking
18081 2958643200 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglWindow.cpp:550   202 set Carbon window 0x454ed40
18081 2958110720 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglEventHandler.cpp:101   234 Installed event handlers for carbon
window 0x2f2aa90
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
window.cpp:296   234 Window vp set: [ 0 -1152 2048 1152 ]:[ 0 0 1 1 ]
18081 2958643200 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglEventHandler.cpp:101   234 Installed event handlers for carbon
window 0x454ed40
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
window.cpp:416   234 Using AGLWindow
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglWindow.cpp:367   237 Created AGL context 0x290b2200 shared with 0
18081 2958110720 //Users/slate/Documents/equalizer/XCode/../lib/client/
glWindow.cpp:169   237 Window drawable config: GL2.1|DB|st8|rgb8|a8
18081 2958643200 //Users/slate/Documents/equalizer/XCode/../lib/client/
glWindow.cpp:169   237 Window drawable config: GL2.1|DB|st8|rgb8|a8
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglWindow.cpp:367   242 Created AGL context 0x29828c00 shared with 0
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/
window.cpp:282   253 Window viewport update: [ 2048 0 2048 1152 ]:[ 0
0 1 1 ]
18081 2958643200 //Users/slate/Documents/equalizer/XCode/../lib/
client/../fabric/channel.cpp:216   253  viewport update: [ 0 0 1 1 ]:
[ 0 0 2048 1152 ]
18081 2958643200 //Users/slate/Documents/equalizer/XCode/../lib/client/
channel.cpp:53   253  New eq::Channel @0x3181200
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/../
lib/fabric/channel.cpp:216   253 channel-01 viewport update: [ 0 0 1
1 ]:[ 0 0 2048 1152 ]
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/../
lib/fabric/channel.cpp:216   253 channel-01 viewport update: [ 0 0 1
1 ]:[ 0 0 2048 1152 ]
18081 2958643200 //Users/slate/Documents/equalizer/XCode/../lib/
client/../fabric/channel.cpp:216   254 channel-01 viewport update: [ 0
0 1 1 ]:[ 0 0 2048 1152 ]
18081 2958110720 //Users/slate/Documents/equalizer/XCode/../lib/
client/../fabric/channel.cpp:216   276  viewport update: [ 0 0 1 1 ]:
[ 0 0 2048 1152 ]
18081 2958110720 //Users/slate/Documents/equalizer/XCode/../lib/client/
channel.cpp:53   276  New eq::Channel @0x3181600
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/
window.cpp:282   276 Window viewport update: [ 0 0 2048 1152 ]:[ 0 0 1
1 ]
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/../
lib/fabric/channel.cpp:216   276 channel-00 viewport update: [ 0 0 1
1 ]:[ 0 0 2048 1152 ]
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/../
lib/fabric/channel.cpp:216   276 channel-00 viewport update: [ 0 0 1
1 ]:[ 0 0 2048 1152 ]
18081 2958110720 //Users/slate/Documents/equalizer/XCode/../lib/
client/../fabric/channel.cpp:216   277 channel-00 viewport update: [ 0
0 1 1 ]:[ 0 0 2048 1152 ]
2010-05-14 09:12:11.746 OsiriX[18081:8003] ***
__NSAutoreleaseNoPool(): Object 0x4553a80 of class
NSCarbonWindowContentView autoreleased with no pool in place - just
leaking
2010-05-14 09:12:11.747 OsiriX[18081:8003] ***
__NSAutoreleaseNoPool(): Object 0x2f67cb0 of class NSCFArray
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.747 OsiriX[18081:8003] ***
__NSAutoreleaseNoPool(): Object 0x1de15560 of class NSCFArray
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.748 OsiriX[18081:8003] ***
__NSAutoreleaseNoPool(): Object 0x2f68770 of class NSConcreteMapTable
autoreleased with no pool in place - just leaking
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglWindow.cpp:550   300 set Carbon window 0x1fe2a920
2010-05-14 09:12:11.808 OsiriX[18081:8703] ***
__NSAutoreleaseNoPool(): Object 0x2f78880 of class
NSCarbonWindowContentView autoreleased with no pool in place - just
leaking
2010-05-14 09:12:11.808 OsiriX[18081:8703] ***
__NSAutoreleaseNoPool(): Object 0x28434f40 of class NSCFArray
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.809 OsiriX[18081:8703] ***
__NSAutoreleaseNoPool(): Object 0x1fe30d80 of class NSCFArray
autoreleased with no pool in place - just leaking
2010-05-14 09:12:11.809 OsiriX[18081:8703] ***
__NSAutoreleaseNoPool(): Object 0x1fe316f0 of class NSConcreteMapTable
autoreleased with no pool in place - just leaking
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglWindow.cpp:550   381 set Carbon window 0x1de16140
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglEventHandler.cpp:101   381 Installed event handlers for carbon
window 0x1fe2a920
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
aglEventHandler.cpp:101   387 Installed event handlers for carbon
window 0x1de16140
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
glWindow.cpp:169   387 Window drawable config: GL2.1|DB|st8|rgb8|a8
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
glWindow.cpp:169   387 Window drawable config: GL2.1|DB|st8|rgb8|a8
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/
client/../fabric/channel.cpp:216   406  viewport update: [ 0 0 1 1 ]:
[ 0 0 2048 1152 ]
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/
window.cpp:282   406 Window viewport update: [ 0 -1152 2048 1152 ]:[ 0
0 1 1 ]
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/client/
channel.cpp:53   406  New eq::Channel @0x320ac00
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/../
lib/fabric/channel.cpp:216   406 channel-10 viewport update: [ 0 0 1
1 ]:[ 0 0 2048 1152 ]
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/../
lib/fabric/channel.cpp:216   406 channel-10 viewport update: [ 0 0 1
1 ]:[ 0 0 2048 1152 ]
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/
client/../fabric/channel.cpp:216   406  viewport update: [ 0 0 1 1 ]:
[ 0 0 2048 1152 ]
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/
window.cpp:282   406 Window viewport update: [ 2048 -1152 2048 1152 ]:
[ 0 0 1 1 ]
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/client/
channel.cpp:53   406  New eq::Channel @0x481a200
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/../
lib/fabric/channel.cpp:216   406 channel-11 viewport update: [ 0 0 1
1 ]:[ 0 0 2048 1152 ]
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/../
lib/fabric/channel.cpp:216   406 channel-11 viewport update: [ 0 0 1
1 ]:[ 0 0 2048 1152 ]
18081 2959745024 //Users/slate/Documents/equalizer/XCode/../lib/
client/../fabric/channel.cpp:216   407 channel-10 viewport update: [ 0
0 1 1 ]:[ 0 0 2048 1152 ]
18081 2959212544 //Users/slate/Documents/equalizer/XCode/../lib/
client/../fabric/channel.cpp:216   407 channel-11 viewport update: [ 0
0 1 1 ]:[ 0 0 2048 1152 ]
18081 2958110720 //Users/slate/Documents/equalizer/XCode/../lib/client/
window.cpp:278   510 Window pvp set: [ 44 -22 2048 1152 ]:[ 0.0214844
-0.0190972 1 1 ]
18081 2958110720 //Users/slate/Documents/equalizer/XCode/../lib/
client/../fabric/channel.cpp:216   511 channel-00 viewport update: [ 0
0 1 1 ]:[ 0 0 2048 1152 ]
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/
window.cpp:282   511 Window viewport update: [ 44 -22 2048 1152 ]:
[ 0.0214844 -0.0190972 1 1 ]
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/../
lib/fabric/channel.cpp:216   511 channel-00 viewport update: [ 0 0 1
1 ]:[ 0 0 2048 1152 ]
18081 2956513280 //Users/slate/Documents/equalizer/XCode/../server/../
lib/fabric/channel.cpp:216   511 channel-00 viewport update: [ 0 0 1
1 ]:[ 0 0 2048 1152 ]
18081 2957045760 //Users/slate/Documents/equalizer/XCode/../server/
config.cpp:1104   511 Config init successful

Which doesn't make sense to me because Carbon shouldn't be OBJC
objects, yeah?  It's all C++ stuff, which is why you have to do
`Global::enterCarbon();`?

-Stephen

_______________________________________________
eq-dev mailing list
[email protected]
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Reply via email to