Entwined icon indicating copy to clipboard operation
Entwined copied to clipboard

Restore newlx -> repo root

Open meawoppl opened this issue 4 years ago • 12 comments

With Java 8 available on you system, simply: ./gradle run from the root of the repository.

meawoppl avatar Sep 22 '21 01:09 meawoppl

The only diff is removing the .class files that someone checked in and restoring the original location of the files.

meawoppl avatar Sep 22 '21 01:09 meawoppl

Notably, this restores the test/build automation to a working state as well: https://github.com/squaredproject/Entwined/runs/3670133039

meawoppl avatar Sep 22 '21 01:09 meawoppl

I'm just following a typical layout for java projects. We can likely make that work one folder up, but I thought we were aiming to deprecate the "oldlx" version.

meawoppl avatar Sep 22 '21 15:09 meawoppl

@mizpoon has some issues getting the UI to boot in OSX. She is going to past the traceback here.

Next goals are getting that sorted, and confirming correctness of the NDB output in a hardware test.

Charlie is going to leave me some hardware, and we will check in roughly this time next week.

meawoppl avatar Sep 26 '21 19:09 meawoppl

Here is the macos stack trace

Macos Exception CHARLESs-MacBook-Air:Entwined charlesgadeken$ ./gradlew run

Task :run [LX 2021/09/26 12:19:55] Initializing LX version 0.2.1 2021-09-26 12:19:59.801 java[50455:5833389] pid(50455)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-09-26 12:20:00.494 java[50455:5833389] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread! 2021-09-26 12:20:00.494 java[50455:5833389] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!' *** First throw call stack: ( 0 CoreFoundation 0x00007fff341efacd __exceptionPreprocess + 256 1 libobjc.A.dylib 0x00007fff5e93aa17 objc_exception_throw + 48 2 CoreFoundation 0x00007fff34209629 -[NSException raise] + 9 3 AppKit 0x00007fff317ae5ca -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317 4 AppKit 0x00007fff317ab9f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479 5 AppKit 0x00007fff317ab42a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45 6 libnativewindow_macosx.jnilib 0x000000011d64f3fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398 7 ??? 0x0000000105d67407 0x0 + 4392907783 ) libc++abi.dylib: terminating with uncaught exception of type NSException

mizpoon avatar Sep 26 '21 19:09 mizpoon

And I made a TODO list here, only important ones for now are the P0, P1 https://docs.google.com/document/d/1jQk1PnQbTq7HH0XKaVJX7OY7wByMipo0LQLbWvOSwyY/edit?usp=sharing

mizpoon avatar Sep 26 '21 19:09 mizpoon

@mcslee I was curious if you had seen anything like the above. I am not an OSX guy, so I am kinda stabbing in the dark on this one. Most of my googling suggests that it is connected to some cross product of versions of jogl (which is rolled into the LXStudio folder here, and OSX/Java.

meawoppl avatar Sep 26 '21 20:09 meawoppl

@mizpoon can you paste the output of the following two commands:

  • sw_vers
  • java --version

meawoppl avatar Sep 26 '21 20:09 meawoppl

@meawoppl

CHARLESs-MacBook-Air:Entwined charlesgadeken$ sw_vers ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G2022

CHARLESs-MacBook-Air:Entwined charlesgadeken$ java -version openjdk version "1.8.0_292" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode) CHARLESs-MacBook-Air:Entwined charlesgadeken$

mizpoon avatar Sep 26 '21 20:09 mizpoon

@mcslee I was curious if you had seen anything like the above. I am not an OSX guy, so I am kinda stabbing in the dark on this one. Most of my googling suggests that it is connected to some cross product of versions of jogl (which is rolled into the LXStudio folder here, and OSX/Java.

Ah yes some of this looks familiar. And yes, it's issues with the JOGL libs which is what Processing uses to strap OpenGL stuff into Java.

There are known Processing breakages with Big Sur - I think the Processing team basically just recommends switching to the new Processing 4.

But sometimes this is easily fixed in two ways: (1) Add a "frameRate()" call into the setup() method of your app, e.g. frameRate(30); (2) Set the "resizable" flag to false in lx.flags - some systems seem unhappy with the window being resized

You might have luck with one or both of those fixes. This issue doesn't seem to happen on all systems, it's a bit mysterious, but seems related to some kind of OS/OpenGL version lottery with the JOGL libs. Hope this helps.

mcslee avatar Sep 27 '21 12:09 mcslee

Quick update here. The NDB's seem to work as configured.

There were some changes by @bbulkow to the json struct iirc, so I don't know how the spatial mappings are supposed be any more, but I can get them working with any pure tone.

I don't know how to debug the OSX issue that @mizpoon is hitting, and I don't have an OSX device to test with, so I am kinda dead in that water on that front.

A bit of reading suggests that some cross section of java and JOGL version's don't play nice under the Quartz window manager, but that is the best resolution I can offer on that front.

meawoppl avatar Oct 11 '21 17:10 meawoppl

fantastic news about the NDBs, thank you matt for checking that

On Mon, Oct 11, 2021 at 10:25 AM Matty G @.***> wrote:

Quick update here. The NDB's seem to work as configured.

There were some changes by @bbulkow https://github.com/bbulkow to the json struct iirc, so I don't know how the spatial mappings are supposed be any more, but I can get them working with any pure tone.

I don't know how to debug the OSX issue that @mizpoon https://github.com/mizpoon is hitting, and I don't have an OSX device to test with, so I am kinda dead in that water on that front.

A bit of reading suggests that some cross section of java and JOGL version's don't play nice under the Quartz window manager, but that is the best resolution I can offer on that front.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/squaredproject/Entwined/pull/53#issuecomment-940215118, or unsubscribe https://github.com/notifications/unsubscribe-auth/AII74ZG42YJJGZCUWLAX5N3UGMMYFANCNFSM5EQDL4VQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mizpoon avatar Oct 11 '21 17:10 mizpoon