OpenBCI / OpenBCI_GUI

A cross platform application for the OpenBCI Cyton and Ganglion. Tested on Mac, Windows and Ubuntu/Mint Linux.
MIT License
708 stars 257 forks source link

0 AppKit error on Ventura with Processing 3.5.3 and 3.5.4 #1177

Closed khofstadter closed 1 year ago

khofstadter commented 1 year ago

Hello,

On Ventura 13.5, MBP2018 Intel i7 with Processing 3.5.3 and 3.5.4 I get this error message in the Processing log:

0   AppKit                              0x00007ff81debce9d -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 338
    1   AppKit                              0x00007ff81dea9394 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1227
    2   AppKit                              0x00007ff81dea8ec2 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
    3   libnativewindow_macosx.jnilib       0x0000000120a403fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
    4   ???                                 0x000000010215aa88 0x0 + 4329941640
)

I get the same error message when running one of the basic Processing examples using P2D or P3D (e.g. Examples/Camera/Moving Eye) so, I think something is wrong with my setup that doesn't like the P2D library.

  size(win_w, win_h, P2D);

My JAVA should be up to date, but I am not really sure whether this is related:

~ % java -version
java version "1.8.0_381"
Java(TM) SE Runtime Environment (build 1.8.0_381-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.381-b09, mixed mode)

Interestingly, when using Processing 4, I don't get the above Appkit error message, but others, while the OpenBCI_GUI v5.2.1 window pops up.

Screenshot 2023-08-08 at 10 46 13

Any recommendations on how to proceed?

Thanks, k

P.S.1. The OpenBCI_GUI 5.2.1 standalone (from the .dmg file) works.

P.S.2. The README.md file in this repository clearly states that Processing 4 shouldn't be used, so the docs page on the main website could probably be updated as it still says: "First, go to processing.org and download the latest version of Processing."

retiutut commented 1 year ago

https://github.com/OpenBCI/OpenBCI_GUI/issues/1088

retiutut commented 1 year ago

We are currently updating the GUI to run using Processing 4. You can try using the Intel-based Processing 4 and the development branch.

We're also seeing an issue accessing BrainFlow libraries using Processing 4 https://github.com/OpenBCI/OpenBCI_GUI/pull/1175.

If you'd like to run from source right now: