Trying to Run GoWrite2 on Mac M2 Sonoma (14.2.1)

Requests for new features, question how to do something etc...

Moderator: lpaatero

Post Reply
psygo
Posts: 16
Joined: Mon Sep 20, 2021 2:17 am
Location: São Paulo, Brazil
Contact:

Trying to Run GoWrite2 on Mac M2 Sonoma (14.2.1)

Post by psygo »

So far, I've tried it in 3 ways:
  • Mac Release (3.2.4)
  • Wine64 on Windows Executable
  • Java Jar File
This is my Java version (`java --version`):

Code: Select all

openjdk 21.0.1 2023-10-17
OpenJDK Runtime Environment Homebrew (build 21.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 21.0.1, mixed mode, sharing)
---

This is what I get from trying to run the `.app` file from the Mac release (I had to shorten the error log a bit, otherwise it would pass the character limit, don't know why this forum doesn't let me upload a simple text attachment), in an error window ("GoWrite2 quit unexpectedly"):

Code: Select all

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               java [93493]
Path:                  /Applications/GOWrite.app/Contents/MacOS/universalJavaApplicationStub
Identifier:            java
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-01-08 12:03:27.7254 -0300
OS Version:            macOS 14.2.1 (23C71)
Report Version:        12
Anonymous UUID:        BBA66D6C-6251-A3F9-9A85-E0B95AF0C173

Sleep/Wake UUID:       6EC42DFD-F869-4473-9025-7941691602D0

Time Awake Since Boot: 410000 seconds
Time Since Wake:       15434 seconds

System Integrity Protection: enabled

Crashed Thread:        27  Java: AWT-EventQueue-0

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000014
Exception Codes:       0x0000000000000001, 0x0000000000000014

Termination Reason:    Namespace xxx, Code 6 Abort trap: 6
Terminating Process:   java [93493]

VM Region Info: 0x14 is not in any region.  Bytes before following region: 4308615148
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      100d04000-100d08000    [   16K] r-x/r-x SM=COW  ...mebrew/*/java

Application Specific Information:
abort() called
---

This is what I get from the Wine attempt (`wine64 gowrite2_3_2_4.exe`):

Code: Select all

007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0104:err:environ:init_peb starting L"Z:\\Users\\phili\\Downloads\\gowrite2_3_2_4.exe" in experimental wow64 mode
wine: could not load kernel32.dll, status c0000135
---

Finally, when trying to run the Jar file, this is what shows up in the terminal:

Code: Select all

240108 121035.513 net.gowrite.sgf.SGFUtil log INFO: start 21.0.1 / 3.2.3 in Mac OS X/14.2.1
240108 121035.542 net.gowrite.sgf.SGFUtil log WARNING: debug31.cfgx settings not found.
240108 121035.557 net.gowrite.sgf.SGFUtil log INFO: Setting file "gowrite30.cfg" not present
2024-01-08 12:10:35.660 java[93782:3463791] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
240108 121038.036 net.gowrite.sgf.SGFUtil log INFO: Using generic native support in mac os x
240108 121038.038 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240108 121038.048 net.gowrite.sgf.SGFUtil log INFO: Accelerators: gowrite/text/Accelerator-generic
240108 121038.048 net.gowrite.sgf.SGFUtil log INFO: Accelerators: gowrite/text/Accelerator
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x0000000100b0bc64, pid=93782, tid=70443
#
# JRE version: OpenJDK Runtime Environment Homebrew (21.0.1) (build 21.0.1)
# Java VM: OpenJDK 64-Bit Server VM Homebrew (21.0.1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# C  [libawt.dylib+0x2fc64]  drawAAPgram+0x274
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/phili/Downloads/gowrite2_3_2_3/hs_err_pid93782.log
[3.013s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
#   https://github.com/Homebrew/homebrew-core/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
[1]    93782 abort      java -jar GOWrite.jar
And this is what shows up in an error window, which, again, I had to truncate:

Code: Select all

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               java [93782]
Path:                  /opt/homebrew/*/java
Identifier:            java
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        zsh [91052]
Responsible:           kitty [91049]
User ID:               501

Date/Time:             2024-01-08 12:10:38.4628 -0300
OS Version:            macOS 14.2.1 (23C71)
Report Version:        12
Anonymous UUID:        BBA66D6C-6251-A3F9-9A85-E0B95AF0C173

Sleep/Wake UUID:       6EC42DFD-F869-4473-9025-7941691602D0

Time Awake Since Boot: 410000 seconds
Time Since Wake:       15865 seconds

System Integrity Protection: enabled

Crashed Thread:        26  Java: AWT-EventQueue-0

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000014
Exception Codes:       0x0000000000000001, 0x0000000000000014

Termination Reason:    Namespace xxx, Code 6 Abort trap: 6
Terminating Process:   java [93782]

VM Region Info: 0x14 is not in any region.  Bytes before following region: 4300996588
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      1005c0000-1005c4000    [   16K] r-x/r-x SM=COW  ...mebrew/*/java

Application Specific Information:
abort() called
lpaatero
Go liiton hallitus
Posts: 529
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: Trying to Run GoWrite2 on Mac M2 Sonoma (14.2.1)

Post by lpaatero »

Sorry for strict limits in the forum. Spamming has been quite a problem at time, and restrictions reduce spammers interests.

All of the problems look like issues with Java Runtime.

If anyone finds solution(s), please let me know.
psygo
Posts: 16
Joined: Mon Sep 20, 2021 2:17 am
Location: São Paulo, Brazil
Contact:

Re: Trying to Run GoWrite2 on Mac M2 Sonoma (14.2.1)

Post by psygo »

Thank you for the quick reply, Lauri.

But do you know why I can't seem to be able to upload even "tiny" text files (100-200kb)?

Anyway, do you recommend I downgrade my Java runtime? Do you know if there's a version for which it surely works on Mac M2? Personally, I don't care much about my Java runtime version, I don't work with Java, and GoWrite2 is probably the only thing that's gonna use it.
lpaatero
Go liiton hallitus
Posts: 529
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: Trying to Run GoWrite2 on Mac M2 Sonoma (14.2.1)

Post by lpaatero »

I know very little about macs, I do not have one myself.

GOWrite inb mac does not do anything fancy, so difficult to say why the problem.

One possible thing to try is to update the startup script.

I think most recent startup script is in https://github.com/AstroImageJ/universa ... 104.011701.
You can find universalJavaApplicationStub inside GOWrite mac app; replace it with one from the link above.

Update: 3.2.6 contains updated dependency (look&feel), that could be the problem. Please test 3.2.6!
psygo
Posts: 16
Joined: Mon Sep 20, 2021 2:17 am
Location: São Paulo, Brazil
Contact:

Re: Trying to Run GoWrite2 on Mac M2 Sonoma (14.2.1)

Post by psygo »

Sorry for the delay.

But 3.2.6 also seems to error out, unfortunately.

This is the Mac release error log:

Code: Select all

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               java [55078]
Path:                  /Applications/GOWrite.app/Contents/MacOS/universalJavaApplicationStub
Identifier:            java
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-01-25 09:25:04.1561 -0300
OS Version:            macOS 14.2.1 (23C71)
Report Version:        12
Anonymous UUID:        BBA66D6C-6251-A3F9-9A85-E0B95AF0C173

Sleep/Wake UUID:       9B5AC93E-2738-4329-819D-8FDCAC374AB3

Time Awake Since Boot: 880000 seconds
Time Since Wake:       474 seconds

System Integrity Protection: enabled

Crashed Thread:        30  Java: AWT-EventQueue-0

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000014
Exception Codes:       0x0000000000000001, 0x0000000000000014

Termination Reason:    Namespace xxx, Code 6 Abort trap: 6
Terminating Process:   java [55078]

VM Region Info: 0x14 is not in any region.  Bytes before following region: 4376313836
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      104d94000-104d98000    [   16K] r-x/r-x SM=COW  ...mebrew/*/java

Application Specific Information:
abort() called


Thread 0::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x1829c1874 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1829d3cf0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1829ca4b0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x1829c1bf8 mach_msg + 24
4   CoreFoundation                	       0x182adfbf4 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x182ade4bc __CFRunLoopRun + 1208
6   CoreFoundation                	       0x182add9ac CFRunLoopRunSpecific + 608
7   HIToolbox                     	       0x18d08c448 RunCurrentEventLoopInMode + 292
8   HIToolbox                     	       0x18d08c284 ReceiveNextEventCommon + 648
9   HIToolbox                     	       0x18d08bfdc 
And this is the Jar error log from the terminal:

Code: Select all

$ java -jar GOWrite.jar

240125 092757.602 net.gowrite.sgf.SGFUtil log INFO: start 21.0.1 / 3.2.7 in Mac OS X/14.2.1
240125 092757.630 net.gowrite.sgf.SGFUtil log WARNING: debug31.cfgx settings not found.
240125 092757.646 net.gowrite.sgf.SGFUtil log INFO: Setting file "gowrite30.cfg" not present
2024-01-25 09:27:57.751 java[55701:7767053] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
240125 092800.203 net.gowrite.sgf.SGFUtil log INFO: Using generic native support in mac os x
240125 092800.205 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240125 092800.215 net.gowrite.sgf.SGFUtil log INFO: Accelerators: gowrite/text/Accelerator-generic
240125 092800.216 net.gowrite.sgf.SGFUtil log INFO: Accelerators: gowrite/text/Accelerator
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x0000000105093c64, pid=55701, tid=71179
#
# JRE version: OpenJDK Runtime Environment Homebrew (21.0.1) (build 21.0.1)
# Java VM: OpenJDK 64-Bit Server VM Homebrew (21.0.1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# C  [libawt.dylib+0x2fc64]  drawAAPgram+0x274
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/phili/Downloads/gowrite2_3_2_6/hs_err_pid55701.log
[3.092s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
#   https://github.com/Homebrew/homebrew-core/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
[1]    55701 abort      java -jar GOWrite.jar
And from the window log that pops up:

Code: Select all

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               java [55701]
Path:                  /opt/homebrew/*/java
Identifier:            java
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        zsh [55287]
Responsible:           kitty [55285]
User ID:               501

Date/Time:             2024-01-25 09:28:00.6380 -0300
OS Version:            macOS 14.2.1 (23C71)
Report Version:        12
Anonymous UUID:        BBA66D6C-6251-A3F9-9A85-E0B95AF0C173

Sleep/Wake UUID:       9B5AC93E-2738-4329-819D-8FDCAC374AB3

Time Awake Since Boot: 880000 seconds
Time Since Wake:       650 seconds

System Integrity Protection: enabled

Crashed Thread:        27  Java: AWT-EventQueue-0

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000014
Exception Codes:       0x0000000000000001, 0x0000000000000014

Termination Reason:    Namespace xxx, Code 6 Abort trap: 6
Terminating Process:   java [55701]

VM Region Info: 0x14 is not in any region.  Bytes before following region: 4373905388
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      104b48000-104b4c000    [   16K] r-x/r-x SM=COW  ...mebrew/*/java

Application Specific Information:
abort() called


Thread 0::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x1829c1874 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1829d3cf0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1829ca4b0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x1829c1bf8 mach_msg + 24
lpaatero
Go liiton hallitus
Posts: 529
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: Trying to Run GoWrite2 on Mac M2 Sonoma (14.2.1)

Post by lpaatero »

To me it somehow looks like Java itself is failing. You could test if other java+GUI software is working.

Solving this without lots of trialing would require debugging with Mac. I do not have one, so I cannot do this.

regards
Lauri
lpaatero
Go liiton hallitus
Posts: 529
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: Trying to Run GoWrite2 on Mac M2 Sonoma (14.2.1)

Post by lpaatero »

Do other mac users see this problem?
Please let us know!
Post Reply