# "Uncaught exception" error across multiple modules

**URL:** <https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866>\
**Category:** Technical Support & Bugs\
**Created:** [February 1, 2024, 4:54pm UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866 "2024-02-01T16:54:12Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScipioO](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@ScipioO](https://forum.vassalengine.org/u/ScipioO)\
**Post date:** [February 1, 2024, 4:54pm UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/1 "2024-02-01T16:54:12Z")

</div>

- VASSAL 3.7.7
- MacOS Ventura 32GB RAM
- I am having a graphics issue leading to freezing and generating an “Uncaught exception” error across multiple modules. The Vassal error text is not viewable nor are any of the “Yes/No/Cancel” options. Not sure if there’s a way for me to capture the error details.

 ![Screenshot 2024-02-01 at 8.28.04 AM](https://forum.vassalengine.org/uploads/default/original/2X/9/9b079a23207c05d5f27b1a9a42b96f8b2b7acc1c.jpeg)  
 ![Screenshot 2024-02-01 at 8.27.50 AM](https://forum.vassalengine.org/uploads/default/original/2X/1/130edb0d0dac1c91395ee7701bb76d82ecf05853.png)  
 ![Screenshot 2024-02-01 at 8.27.37 AM](https://forum.vassalengine.org/uploads/default/original/2X/5/51e06519b93e92dcd0c6c459ebeec55e208e3708.jpeg)

---

<div class="post-metadata">

**Author:** ![JoelCFC25](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/joelcfc25/32/2687_2.png) [@JoelCFC25](https://forum.vassalengine.org/u/JoelCFC25)\
**Post date:** [February 1, 2024, 5:13pm UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/2 "2024-02-01T17:13:44Z")

</div>

> [@ScipioO](#):
>
> Not sure if there’s a way for me to capture the error details.

[Here’s info about where the error log itself resides in MacOS](https://vassalengine.org/wiki/Error_Logs).

---

<div class="post-metadata">

**Author:** ![ScipioO](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@ScipioO](https://forum.vassalengine.org/u/ScipioO)\
**Post date:** [February 1, 2024, 11:15pm UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/3 "2024-02-01T23:15:34Z")

</div>

I appreciate the reply; yes I cannot find that folder on my mac.

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [February 1, 2024, 11:31pm UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/4 "2024-02-01T23:31:00Z")

</div>

`~/Library/Application Support/VASSAL` has to exist. Have you tried looking for it from a terminal?

E.g., open a terminal and at the prompt type:

```auto
cd "~/Library/Application Support/VASSAL"

```

and then

```auto
ls

```

What do you get for output?

---

<div class="post-metadata">

**Author:** ![ScipioO](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@ScipioO](https://forum.vassalengine.org/u/ScipioO)\
**Post date:** [February 2, 2024, 12:57am UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/5 "2024-02-02T00:57:25Z")

</div>

> [@uckelman](#):
>
> `/Library/Application Support/VASSAL`

I think I’m in the wrong place?  
 ![Screenshot 2024-02-01 at 4.57.02 PM](https://forum.vassalengine.org/uploads/default/original/2X/f/fabd214766a8d12a3aa265495e72808172595192.png)

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [February 2, 2024, 12:59am UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/6 "2024-02-02T00:59:42Z")

</div>

You’re not running the commands as stated above. You need to enter the commands _exactly_.

What you typed,

```plaintext
/Library/Application Support/VASSAL

```

is not the same thing as

```plaintext
cd "~/Library/Application Support/VASSAL"

```

Please try again.

---

<div class="post-metadata">

**Author:** ![ScipioO](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@ScipioO](https://forum.vassalengine.org/u/ScipioO)\
**Post date:** [February 2, 2024, 1:11am UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/8 "2024-02-02T01:11:03Z")

</div>

My experience with the command prompt goes back to 1980s BASIC programming class but it’s been a few… decades

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [February 2, 2024, 1:14am UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/9 "2024-02-02T01:14:09Z")

</div>

What’s the result of

```auto
cd "~/Library/Application Support"

```

followed by

```auto
ls

```

?

---

<div class="post-metadata">

**Author:** ![JoelCFC25](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/joelcfc25/32/2687_2.png) [@JoelCFC25](https://forum.vassalengine.org/u/JoelCFC25)\
**Post date:** [February 2, 2024, 1:55am UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/10 "2024-02-02T01:55:35Z")

</div>

> [@uckelman](#):
>
> What’s the result of
> 
> ```auto
> cd "~/Library/Application Support"
> 
> ```

This actually won’t work for some reason. It won’t replace the `~` with his home directory path when inside the quotes (tried this myself to verify). Assuming @ScipioO is starting out in his home directory (which should be the default), this will work:

`cd "Library/Application Support/VASSAL"`

Then to open this location with the Finder:  
`open .`  
(for clarity, this is the word `open` followed by a space and then a single period)

You should find a file named `errorLog`. It is a plain text file, so you can open it with TextEdit, an app found on every Mac.

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [February 2, 2024, 11:24am UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/12 "2024-02-02T11:24:17Z")

</div>

1. Is this the complete errorLog?
2. Did you experience the problem on the most recent run of Vassal before you pasted the contents of the errorLog here?

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [February 2, 2024, 11:35am UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/13 "2024-02-02T11:35:40Z")

</div>

I suspect I know the cause of the graphics problem, from this:

```plaintext
+[CATransaction synchronize] called within transaction

```

There’s a bug in MacOS Ventura 13, detailed [here](https://developer.apple.com/forums/thread/722889), [here](https://forums.meteor.com/t/electron-catransaction-synchronize-called-within-transaction/60234), [here](https://github.com/EPICLab/synectic/issues/1263), and [here](https://bugs.openjdk.org/browse/JDK-8299489).

The solution appears to be to upgrade to MacOS Sonoma 14.

---

<div class="post-metadata">

**Author:** ![ScipioO](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@ScipioO](https://forum.vassalengine.org/u/ScipioO)\
**Post date:** [February 3, 2024, 5:14pm UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/15 "2024-02-03T17:14:12Z")

</div>

OK, thanks and I have upgraded to Sonoma and I’m still having graphics issues.

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [February 3, 2024, 6:51pm UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/16 "2024-02-03T18:51:02Z")

</div>

In that case, we need the complete contents of an errorLog from a run where you’ve had a problem on Sonoma. Please post that.

---

<div class="post-metadata">

**Author:** ![ScipioO](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@ScipioO](https://forum.vassalengine.org/u/ScipioO)\
**Post date:** [February 5, 2024, 1:26am UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/17 "2024-02-05T01:26:08Z")

</div>

> [@JoelCFC25](#):
>
> cd “Library/Application Support/VASSAL”

The “triggering” circumstance appears to be logging back and forth between mac accounts, not sure.

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [February 5, 2024, 11:53am UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/21 "2024-02-05T11:53:41Z")

</div>

This is the start of the Exception Vassal is trying to report to you:

```raw
2024-02-04 17:02:25,431 [11019-AWT-EventQueue-0] ERROR VASSAL.tools.ErrorDialog -
java.lang.ClassCastException: class sun.java2d.opengl.CGLGraphicsConfig cannot be cast to class sun.java2d.metal.MTLGraphicsConfig

```

The stack trace for it contains none of our code.

The cause of that exception is shown in this message, passed through to Vassal from Java:

```raw
2024-02-04 17:02:25,388 [372-ProcessLauncher-2] WARN VASSAL.tools.logging.LoggedOutputStream - 2024-02-04 17:02:25.388 java[11019:320104] GLDRendererMetal command buffer completion error: Error Domain=MTLCommandBufferErrorDomain Code=8 “Insufficient Memory (00000008:kIOGPUCommandBufferCallbackErrorOutOfMemory)” UserInfo={NSLocalizedDescription=Insufficient Memory (00000008:kIOGPUCommandBufferCallbackErrorOutOfMemory), NSUnderlyingError=0x600002a53390 {Error Domain=IOGPUCommandQueueErrorDomain Code=8 “(null)”}}

```

That’s a not a message from Java, however; it’s Java’s passing on a system message.

Similar exceptions appear after this one in the errorLog when Vassal is trying to show you a dialog indicating that there wasn’t enough video RAM, but trying to show you a dialog triggers the error again because video RAM is needed to show you the dialog and there still isn’t enough video RAM.

Other people have reported the same problem with apps such as Blender ([1](https://projects.blender.org/blender/blender/issues/107934), [2](https://blenderartists.org/t/render-fails-on-mac/1502433/15)), [VTK](https://gitlab.kitware.com/vtk/vtk/-/issues/18713), [pyvista](https://github.com/pyvista/pyvista/issues/3474) and JetBrains ([1](https://youtrack.jetbrains.com/issue/MPS-34536/GLDRendererMetal-command-buffer-completion-error-Error-DomainMTLCommandBufferErrorDomain-Code8-Insufficient-Memory-...), [2](https://youtrack.jetbrains.com/issue/JBR-5871/On-Apple-M1-jetbrains-IDE-consumes-too-much-metal-command-queue-which-will-cause-some-other-applications-using-metal-to-occur)).

It looks like this is a bug in MacOS, or possibly in the way Java is handling a lack of VRAM (though I’m not sure what Java could do about that realistically).

> [@ScipioO](#):
>
> The “triggering” circumstance appears to be logging back and forth between mac accounts, not sure.

I don’t understand what this is. Would you describe what you’re doing in more detail?

---

<div class="post-metadata">

**Author:** ![ScipioO](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@ScipioO](https://forum.vassalengine.org/u/ScipioO)\
**Post date:** [February 5, 2024, 3:08pm UTC](https://forum.vassalengine.org/t/uncaught-exception-error-across-multiple-modules/78866/22 "2024-02-05T15:08:20Z")

</div>

Thanks for your time, I’ll take a look at your links. Could it be something like having too many modules open at the same time? I will report back anything useful about when it happens.
