Skip to main content
added 107 characters in body
Source Link
nycynik
  • 220
  • 3
  • 12

I am using pygame on a mac, and when the app runs, it draws a frame of the screen fine, and then crashes with the following error:

Assertion failed: (NSViewIsCurrentlyBuildingLayerTreeForDisplay() != currentlyBuildingLayerTree), 
function NSViewSetCurrentlyBuildingLayerTreeForDisplay, 
file /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.10.101/AppKit.subproj/NSView.m, 
line 14480.

Everything was working fine, but I did switch to multi-threading, and I think this might be related. Has anyone a clue as to what might be going wrong?

I call:

pygame.init()
pygame_size = 1280, 960  # image dimensions
pygame_screen = pygame.display.set_mode(pygame_size)

in the main thread, and then I have many pygame draw calls.

I am using pygame on a mac, and when the app runs, it draws a frame of the screen fine, and then crashes with the following error:

Assertion failed: (NSViewIsCurrentlyBuildingLayerTreeForDisplay() != currentlyBuildingLayerTree), 
function NSViewSetCurrentlyBuildingLayerTreeForDisplay, 
file /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.10.101/AppKit.subproj/NSView.m, 
line 14480.

Everything was working fine, but I did switch to multi-threading, and I think this might be related. Has anyone a clue as to what might be going wrong?

I call:

pygame.init()

in the main thread, and then I have many pygame draw calls.

I am using pygame on a mac, and when the app runs, it draws a frame of the screen fine, and then crashes with the following error:

Assertion failed: (NSViewIsCurrentlyBuildingLayerTreeForDisplay() != currentlyBuildingLayerTree), 
function NSViewSetCurrentlyBuildingLayerTreeForDisplay, 
file /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.10.101/AppKit.subproj/NSView.m, 
line 14480.

Everything was working fine, but I did switch to multi-threading, and I think this might be related. Has anyone a clue as to what might be going wrong?

I call:

pygame.init()
pygame_size = 1280, 960  # image dimensions
pygame_screen = pygame.display.set_mode(pygame_size)

in the main thread, and then I have many pygame draw calls.

Source Link
nycynik
  • 220
  • 3
  • 12

Using pygame on mac, strange errors

I am using pygame on a mac, and when the app runs, it draws a frame of the screen fine, and then crashes with the following error:

Assertion failed: (NSViewIsCurrentlyBuildingLayerTreeForDisplay() != currentlyBuildingLayerTree), 
function NSViewSetCurrentlyBuildingLayerTreeForDisplay, 
file /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.10.101/AppKit.subproj/NSView.m, 
line 14480.

Everything was working fine, but I did switch to multi-threading, and I think this might be related. Has anyone a clue as to what might be going wrong?

I call:

pygame.init()

in the main thread, and then I have many pygame draw calls.