Insufficient memory in Apple M1

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

Insufficient memory in Apple M1

mahesh
I am getting following error in jogl 2.5, when using with Mac M1. Jogl canvas however continues to work fine but All Swing windows/dialogs become blank once the error occurs. The error occurs doesn't occur instantly but only after using app for some time.

I am using com.jogamp.opengl.util.Animator.Animator and GLCanvas with JFrame to render.

2024-07-05 19:43:55.921 java[2475:219500] GLDRendererMetal command buffer completion error: Error Domain=MTLCommandBufferErrorDomain Code=8 "Insufficient Memory (00000008:kIOGPUCommandBufferCallbackErrorOutOfMemory)" UserInfo={NSLocalizedDescription=Insufficient Memory (00000008:kIOGPUCommandBufferCallbackErrorOutOfMemory), NSUnderlyingError=0x600000996790 {Error Domain=IOGPUCommandQueueErrorDomain Code=8 "(null)"}}


Somebody else getting same problem? Any idea how to fix?

Note: never faced such issue in windows. Is it related to Metal?
Reply | Threaded
Open this post in threaded view
|

Re: Insufficient memory in Apple M1

gouessej
Administrator
Hello

Yes it's related to Metal, have you tried this?
https://stackoverflow.com/a/52655502
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Insufficient memory in Apple M1

mahesh
I can't find this setting on Mac M1 Sonoma !
Is there any fix for Mac OS?
Reply | Threaded
Open this post in threaded view
|

Re: Insufficient memory in Apple M1

gouessej
Administrator
The link I gave seems to indicate that it comes from OS X:
https://stackoverflow.com/a/54373345

VTK has the same problem:
https://gitlab.kitware.com/vtk/vtk/-/issues/18713

Apple has to fix its own bugs. Please report this bug against OS X.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Insufficient memory in Apple M1

mahesh
I noticed that the error comes more often with awt Animator than FPSAnimator.
Once the error appears few times swing windows get blank.

Although I am getting insufficient memory error along with context leak message in FPSAnimator(although less frequent than Animator) I haven't yet encountered swing windows gettting blank issue.

Is it due to the fact that Animator running in AWT thread?