CGSUpdateManager warning during createContext on OS X 10.11.6

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

CGSUpdateManager warning during createContext on OS X 10.11.6

pcmehlitz
Not sure this is the right place to report, but since Bugzilla requires a password I post it here.

I get reproducible CGSUpdateManager warnings on OS X 10.11.6 (MacPro 2009 with NVidia GeForce GT 120) which do not happen on other platforms (OS X 10.10.5, Ubuntu 16.04). This is with the current jogl 2.3.2 from maven central.

The program in question is from https://github.com/nasarace/race-client-example.git. It needs SBT to build:

  git clone https://github.com/nasarace/race-client-example.git
  cd race-client-example
  sbt stage
  ./race-client-example conf/ISS.conf

dragging to rotate the globe produces the following error:

Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const: conn 0x11e5f token 0x9ffffffffff899
Jan  4 18:53:57  java[1736] <Warning>: Backtrace (at 11639.5):
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  0   CoreGraphics                        0x00007fff9f0a41d0 CGSDisableUpdateToken + 155
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  1   AppKit                              0x00007fff8aa37420 ___disable_updates_sync_block_invoke_2 + 17
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  2   libdispatch.dylib                   0x00007fff9b0da40b _dispatch_client_callout + 8
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  3   libdispatch.dylib                   0x00007fff9b0db9f2 _dispatch_barrier_sync_f_invoke + 74
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  4   AppKit                              0x00007fff8aa372ee NSCGSDisableUpdates + 213
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  5   AppKit                              0x00007fff8aa37124 NSCGSTransactionRunPreCommitActionsForOrder_ + 156
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  6   AppKit                              0x00007fff8aa3706b NSCGSTransactionRunPreCommitActions_ + 21
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  7   AppKit                              0x00007fff8b1e5ce4 -[_NSCGSTransaction synchronize] + 33
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  8   AppKit                              0x00007fff8b1e5f59 NSCGSTransactionSynchronize + 76
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  9   AppKit                              0x00007fff8afd0fc5 -[NSSurface syncSurfaceWantsExtendedDynamicRange] + 150
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  10  AppKit                              0x00007fff8ab092cd -[NSSurface _createSurface] + 677
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  11  AppKit                              0x00007fff8ab08c28 -[NSSurface setFrame:] + 785
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  12  AppKit                              0x00007fff8afd10cb __38-[NSSurface syncToViewUnconditionally]_block_invoke + 154
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  13  AppKit                              0x00007fff8aa26325 NSPerformVisuallyAtomicChange + 147
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  14  AppKit                              0x00007fff8ab0854c -[NSSurface syncToViewUnconditionally] + 100
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  15  AppKit                              0x00007fff8afd1164 __37-[NSSurface orderSurface:relativeTo:]_block_invoke + 44
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  16  AppKit                              0x00007fff8aa26325 NSPerformVisuallyAtomicChange + 147
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  17  AppKit                              0x00007fff8ab0841f -[NSSurface orderSurface:relativeTo:] + 160
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  18  AppKit                              0x00007fff8abfbe56 NSOpenGLContextAttachOnScreenViewSurface + 183
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  19  AppKit                              0x00007fff8af286c7 __27-[NSOpenGLContext setView:]_block_invoke + 192
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  20  AppKit                              0x00007fff8aa26325 NSPerformVisuallyAtomicChange + 147
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  21  AppKit                              0x00007fff8abe8c0d -[NSOpenGLContext setView:] + 119
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  22  libjogl_desktop.jnilib              0x0000000193faddc0 createContext + 400
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  23  libjogl_desktop.jnilib              0x0000000194013ab5 Java_jogamp_opengl_macosx_cgl_CGL_createContext0__JJZJZLjava_lang_Object_2I + 149
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  24  ???                                 0x000000010f5a2794 0x0 + 4552533908
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  25  ???                                 0x000000010f596760 0x0 + 4552484704
Jan  4 18:53:57  java[1736] <Warning>: void CGSUpdateManager::log() const:  26  ???                                 0x000000010f596760 0x0 + 4552484704
Reply | Threaded
Open this post in threaded view
|

Re: CGSUpdateManager warning during createContext on OS X 10.11.6

gouessej
Administrator
Hi

I can create a new bugzilla account for you if you want.

Do you reproduce this bug with a tiny example?
https://gist.github.com/gouessej/3420e2b6f632efdddf98
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: CGSUpdateManager warning during createContext on OS X 10.11.6

pcmehlitz
running your gist I get the "deleted thread with uncommitted CATransaction.." warning in CreateNSWindow that was already reported in Bugzilla (and supposedly fixed). Please note that is a different warning than the one I reported (which happens in createContext). However, I also get the "uncommitted CATransaction.." when closing down the RACE example.

Backtrace for the gist example is attached

Yes, it's probably best to use a Bugzilla account to avoid annoying everyone with debug messages, especially since I'm going to heavily rely on jogl/jocl in RACE and probably will run into more issues.

Thanks,
-- Peter

CoreAnimation: warning, deleted thread with uncommitted CATransaction; created by:
0   QuartzCore                          0x00007fff8a53e69a _ZN2CA11Transaction4pushEv + 318
1   QuartzCore                          0x00007fff8a53e19a _ZN2CA11Transaction15ensure_implicitEv + 276
2   QuartzCore                          0x00007fff8a54beb1 +[CATransaction(CATransactionPrivate) activateBackground:] + 34
3   AppKit                              0x00007fff8aa189de +[_NSCGSTransaction currentTransaction] + 73
4   AppKit                              0x00007fff8aa18eb9 NSCGSTransactionSetObjectForKey + 49
5   AppKit                              0x00007fff8aa193ca NSCGSWindowMark_ + 188
6   AppKit                              0x00007fff8aa1927b -[_NSCGSWindow setFrame:] + 369
7   AppKit                              0x00007fff8aaa0f1e _NXCreateWindowWithStyleMask + 157
8   AppKit                              0x00007fff8aaa0d9a _NSCreateWindow + 184
9   AppKit                              0x00007fff8aaed6c0 -[NSWindow _commonAwake] + 1516
10  AppKit                              0x00007fff8a8fea6f -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 815
11  AppKit                              0x00007fff8a8fcfc3 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1475
12  AppKit                              0x00007fff8a8fc9f9 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
13  libnativewindow_macosx.jnilib       0x00000001150c33fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
14  ???                                 0x00000001061ec834 0x0 + 4397647924
Reply | Threaded
Open this post in threaded view
|

Re: CGSUpdateManager warning during createContext on OS X 10.11.6

seyjay
It looks like you created this bug to track the issue:  https://jogamp.org/bugzilla/show_bug.cgi?id=1350
I don't have an account on the tracker but hopefully this message gets to you!

I see this same warning printout (the CGSUpdateManager::log message, with same stack order as listed on the bug) on OS X 10.11.6 and JOGL 2.3.2 just by running the jogl demos.  The warning is always printed 10 seconds after launch, but the software seems to continue running just fine.

e.g., I see it when executing:
java demos.vertexBufferObject.VertexBufferObject
java demos.gears.Gears

Same problem with Java 8 and 9.
Reply | Threaded
Open this post in threaded view
|

Re: CGSUpdateManager warning during createContext on OS X 10.11.6

gouessej
Administrator
Thank you for the feedback. I can create a bugzilla account for you if you want.
Julien Gouesse | Personal blog | Website