jjuran / metamage_1

Metamage open source, general repository, iteration 1
306 stars 27 forks source link

MacOS Compatibility Question #26

Closed beezbo closed 1 year ago

beezbo commented 1 year ago

Is Advanced Mac Substitute compatible with Ventura? I am running 13.5 on an M1 Mac. It appeared to build correctly and created the application bundles for Nyanochrome Cat and Tic-tac-toe, but they both immediately crash when I open them.

jjuran commented 1 year ago

I've seen Advanced Mac Substitute work in Big Sur (after accounting for the need to Force Quit to answer the permission dialogs on first run), including on an M1. Beyond that, I don't know.

(I tend to hold back running newer macOS versions to avoid being bitten by such surprises.)

If you run Foo.app/Contents/MacOS/Amethyst from Terminal, what output do you get?

beezbo commented 1 year ago

I tried that and the app goes into full screen mode and seems to work fine. At first I was confused because initially my terminal window was full screen and I couldn't see anything or move to another virtual desktop and eventually got back control via the keyboard, Command-Q. Running the command from a windowed Terminal session fixed that issue.

This is the error I get when opening the app via double clicking:

image
jjuran commented 1 year ago

What does the report contain?

beezbo commented 1 year ago

Here's the report:

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

Process:               Amethyst [23452]
Path:                  /Users/USER/*/Nyanochrome Cat.app/Contents/MacOS/Amethyst
Identifier:            Amethyst
Version:               for Advanced Mac Substitute
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-08-09 21:31:07.6010 -0700
OS Version:            macOS 13.5 (22G74)
Report Version:        12
Anonymous UUID:        52CB3DEB-D97A-CFCE-4F28-44179C94C6CA

Sleep/Wake UUID:       54FB5781-38A3-4079-BB9D-2AD1E348D53B

Time Awake Since Boot: 120000 seconds
Time Since Wake:       513 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   Amethyst [23452]

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib                 0x1905a0764 __pthread_kill + 8
1   libsystem_pthread.dylib                0x1905d7c28 pthread_kill + 288
2   libsystem_c.dylib                      0x1904e5ae8 abort + 180
3   libsystem_c.dylib                      0x1904e4e44 __assert_rtn + 272
4   SkyLight                               0x19560d33c SLSWMBridgePerformTransaction(void (WMWindowTransaction*, CAFenceHandle*) block_pointer) + 136
5   SkyLight                               0x19560d5c4 SLSWMDeferToMainRunLoopAsync(bool, void () block_pointer) + 68
6   SkyLight                               0x19532e124 SLSReorderWindows + 64
7   HIToolbox                              0x19a14c858 _ReorderWindowsTogether + 348
8   HIToolbox                              0x19a1614b8 HandleAppShowHide + 332
9   HIToolbox                              0x199edb44c HIApplication::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 3784
10  HIToolbox                              0x199edf3a4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1092
11  HIToolbox                              0x199ede828 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 356
12  HIToolbox                              0x199ede6b8 SendEventToEventTargetWithOptions + 44
13  HIToolbox                              0x199f1d1bc ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 468
14  HIToolbox                              0x199edf84c DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2284
15  HIToolbox                              0x199ede828 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 356
16  HIToolbox                              0x199ef4a40 SendEventToEventTarget + 40
17  Amethyst                               0x100f5e5e4 amicus::run_event_loop(raster::raster_load const&, raster::raster_desc const&) + 728
18  Amethyst                               0x100f5e264 main + 244
19  dyld                                   0x19027ff28 start + 2236

Thread 1:
0   libsystem_pthread.dylib                0x1905d2d8c start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib                0x1905d2d8c start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib                0x1905d2d8c start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib                0x1905d2d8c start_wqthread + 0

Thread 5:
0   libsystem_kernel.dylib                 0x1905989a8 __open + 8
1   libsystem_kernel.dylib                 0x1905a3ac4 open + 64
2   Amethyst                               0x100f601fc amicus::raster_thread_entry(void*) + 160
3   Amethyst                               0x100f60dec poseven::thread::start(void*) + 152
4   libsystem_pthread.dylib                0x1905d7fa8 _pthread_start + 148
5   libsystem_pthread.dylib                0x1905d2da0 thread_start + 8

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000000000000   x5: 0x000000000000002e   x6: 0x000000016eea3348   x7: 0x0000000000000000
    x8: 0xac0f4cd19d5c01e2   x9: 0xac0f4cd07639a162  x10: 0xcccccccccccccccd  x11: 0x000000000000000a
   x12: 0x0000000000000000  x13: 0x0000000000000037  x14: 0x00000000000007fb  x15: 0x00000000d2e4f12b
   x16: 0x0000000000000148  x17: 0x00000001f017f3a0  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x00000001eb65a080  x21: 0x0000000000000103  x22: 0x00000001eb65a160  x23: 0x00000001956b191c
   x24: 0x00000001e8d06000  x25: 0x0000600000ca0190  x26: 0x0000000000000067  x27: 0x0000000000000000
   x28: 0x0000000000000000   fp: 0x000000016eea2c80   lr: 0x00000001905d7c28
    sp: 0x000000016eea2c60   pc: 0x00000001905a0764 cpsr: 0x40001000
   far: 0x0000000106590000  esr: 0x56000080  Address size fault

Binary Images:
       0x100f5c000 -        0x100f67fff Amethyst (*) <21942edc-55dc-3f9c-a119-5572e9908adc> /Users/USER/*/Nyanochrome Cat.app/Contents/MacOS/Amethyst
       0x190597000 -        0x1905d0ff7 libsystem_kernel.dylib (*) <08c5fe2a-b0bf-3ab6-bb42-460c18917d33> /usr/lib/system/libsystem_kernel.dylib
       0x1905d1000 -        0x1905ddfff libsystem_pthread.dylib (*) <1f30fb9a-bdf9-32db-a709-8417666a7e45> /usr/lib/system/libsystem_pthread.dylib
       0x19046f000 -        0x1904edff7 libsystem_c.dylib (*) <949943e2-52cb-3c95-ab08-7ed984333d03> /usr/lib/system/libsystem_c.dylib
       0x1952c2000 -        0x1956edfff com.apple.SkyLight (1.600.0) <046a9ef4-9de4-34c4-a773-8b81523ec307> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
       0x199ed6000 -        0x19a209fff com.apple.HIToolbox (2.1.1) <9bed5c79-f02f-3e0b-9fdb-57d955cc68ba> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x19027a000 -        0x190308587 dyld (*) <e7a99595-e0f8-34af-be8b-9347d0d658a4> /usr/lib/dyld

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.0G resident=0K(0%) swapped_out_or_unallocated=1.0G(100%)
Writable regions: Total=1.3G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.3G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        1 
Activity Tracing                   256K        1 
CG backing stores                 9424K        5 
ColorSync                          496K       24 
CoreGraphics                        16K        1 
CoreUI image data                  160K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           250.3M       40 
MALLOC guard page                  192K       10 
MALLOC_MEDIUM (reserved)         720.0M        6         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.1M        6 
Stack                             10.6M        6 
VM_ALLOCATE                        176K       11 
__AUTH                             576K      134 
__AUTH_CONST                      11.1M      280 
__DATA                            2592K      267 
__DATA_CONST                      13.8M      282 
__DATA_DIRTY                       678K       97 
__FONT_DATA                        2352        1 
__LINKEDIT                       802.3M        2 
__OBJC_RO                         66.4M        1 
__OBJC_RW                         2012K        1 
__TEXT                           212.2M      296 
dyld private memory                272K        2 
mapped file                       74.0M       12 
shared memory                      912K       15 
===========                     =======  ======= 
TOTAL                              2.6G     1504 
TOTAL, minus reserved VM space     1.5G     1504 

-----------
Full Report
-----------

{"app_name":"Amethyst","timestamp":"2023-08-09 21:31:08.00 -0700","app_version":"","slice_uuid":"21942edc-55dc-3f9c-a119-5572e9908adc","build_version":"for Advanced Mac Substitute","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.5 (22G74)","roots_installed":0,"incident_id":"EF52BE9A-C5A6-4647-81D7-62335D116958","name":"Amethyst"}
{
  "uptime" : 120000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,4",
  "coalitionID" : 10014,
  "osVersion" : {
    "train" : "macOS 13.5",
    "build" : "22G74",
    "releaseType" : "User"
  },
  "captureTime" : "2023-08-09 21:31:07.6010 -0700",
  "incident" : "EF52BE9A-C5A6-4647-81D7-62335D116958",
  "pid" : 23452,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-08-09 21:31:07.5011 -0700",
  "procStartAbsTime" : 2932236535716,
  "procExitAbsTime" : 2932238899402,
  "procName" : "Amethyst",
  "procPath" : "\/Users\/USER\/*\/Nyanochrome Cat.app\/Contents\/MacOS\/Amethyst",
  "bundleInfo" : {"CFBundleVersion":"for Advanced Mac Substitute"},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "crashReporterKey" : "52CB3DEB-D97A-CFCE-4F28-44179C94C6CA",
  "codeSigningID" : "Amethyst",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 570556929,
  "codeSigningValidationCategory" : 10,
  "codeSigningTrustLevel" : 0,
  "wakeTime" : 513,
  "sleepWakeUUID" : "54FB5781-38A3-4079-BB9D-2AD1E348D53B",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "termination" : {"flags":0,"code":6,"namespace":"SIGNAL","indicator":"Abort trap: 6","byProc":"Amethyst","byPid":23452},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":2419173,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":46},{"value":6155809608},{"value":0},{"value":12398212762346193378},{"value":12398212757394661730},{"value":14757395258967641293},{"value":10},{"value":0},{"value":55},{"value":2043},{"value":3538219307},{"value":328},{"value":8323068832},{"value":0},{"value":6},{"value":8244273280,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":8244273504,"symbolLocation":224,"symbol":"_main_thread"},{"value":6801791260,"symbolLocation":183347,"symbol":"hid_usb_apple_2_adb_keymap"},{"value":8200937472,"symbolLocation":4656,"symbol":"read_memory"},{"value":105553129505168},{"value":103},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6717013032},"cpsr":{"value":1073745920},"fp":{"value":6155807872},"sp":{"value":6155807840},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6716786532,"matchesCrashFrame":1},"far":{"value":4401463296}},"queue":"com.apple.main-thread","frames":[{"imageOffset":38756,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":1},{"imageOffset":27688,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":2},{"imageOffset":486120,"symbol":"abort","symbolLocation":180,"imageIndex":3},{"imageOffset":482884,"symbol":"__assert_rtn","symbolLocation":272,"imageIndex":3},{"imageOffset":3453756,"symbol":"SLSWMBridgePerformTransaction(void (WMWindowTransaction*, CAFenceHandle*) block_pointer)","symbolLocation":136,"imageIndex":4},{"imageOffset":3454404,"symbol":"SLSWMDeferToMainRunLoopAsync(bool, void () block_pointer)","symbolLocation":68,"imageIndex":4},{"imageOffset":442660,"symbol":"SLSReorderWindows","symbolLocation":64,"imageIndex":4},{"imageOffset":2582616,"symbol":"_ReorderWindowsTogether","symbolLocation":348,"imageIndex":5},{"imageOffset":2667704,"symbol":"HandleAppShowHide","symbolLocation":332,"imageIndex":5},{"imageOffset":21580,"symbol":"HIApplication::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)","symbolLocation":3784,"imageIndex":5},{"imageOffset":37796,"symbol":"DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)","symbolLocation":1092,"imageIndex":5},{"imageOffset":34856,"symbol":"SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)","symbolLocation":356,"imageIndex":5},{"imageOffset":34488,"symbol":"SendEventToEventTargetWithOptions","symbolLocation":44,"imageIndex":5},{"imageOffset":291260,"symbol":"ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)","symbolLocation":468,"imageIndex":5},{"imageOffset":38988,"symbol":"DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)","symbolLocation":2284,"imageIndex":5},{"imageOffset":34856,"symbol":"SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)","symbolLocation":356,"imageIndex":5},{"imageOffset":125504,"symbol":"SendEventToEventTarget","symbolLocation":40,"imageIndex":5},{"imageOffset":9700,"symbol":"amicus::run_event_loop(raster::raster_load const&, raster::raster_desc const&)","symbolLocation":728,"imageIndex":0},{"imageOffset":8804,"symbol":"main","symbolLocation":244,"imageIndex":0},{"imageOffset":24360,"symbol":"start","symbolLocation":2236,"imageIndex":6}]},{"id":2419188,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":2}]},{"id":2419200,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":2}]},{"id":2419201,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":2}]},{"id":2419204,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":2}]},{"id":2419212,"frames":[{"imageOffset":6568,"symbol":"__open","symbolLocation":8,"imageIndex":1},{"imageOffset":51908,"symbol":"open","symbolLocation":64,"imageIndex":1},{"imageOffset":16892,"symbol":"amicus::raster_thread_entry(void*)","symbolLocation":160,"imageIndex":0},{"imageOffset":19948,"symbol":"poseven::thread::start(void*)","symbolLocation":152,"imageIndex":0},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":2},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":2}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4311072768,
    "size" : 49152,
    "uuid" : "21942edc-55dc-3f9c-a119-5572e9908adc",
    "path" : "\/Users\/USER\/*\/Nyanochrome Cat.app\/Contents\/MacOS\/Amethyst",
    "name" : "Amethyst",
    "CFBundleVersion" : "for Advanced Mac Substitute"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6716747776,
    "size" : 237560,
    "uuid" : "08c5fe2a-b0bf-3ab6-bb42-460c18917d33",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6716985344,
    "size" : 53248,
    "uuid" : "1f30fb9a-bdf9-32db-a709-8417666a7e45",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6715535360,
    "size" : 520184,
    "uuid" : "949943e2-52cb-3c95-ab08-7ed984333d03",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6797664256,
    "CFBundleShortVersionString" : "1.600.0",
    "CFBundleIdentifier" : "com.apple.SkyLight",
    "size" : 4374528,
    "uuid" : "046a9ef4-9de4-34c4-a773-8b81523ec307",
    "path" : "\/System\/Library\/PrivateFrameworks\/SkyLight.framework\/Versions\/A\/SkyLight",
    "name" : "SkyLight"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6877437952,
    "CFBundleShortVersionString" : "2.1.1",
    "CFBundleIdentifier" : "com.apple.HIToolbox",
    "size" : 3358720,
    "uuid" : "9bed5c79-f02f-3e0b-9fdb-57d955cc68ba",
    "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
    "name" : "HIToolbox"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6713483264,
    "size" : 583048,
    "uuid" : "e7a99595-e0f8-34af-be8b-9347d0d658a4",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  }
],
  "sharedCache" : {
  "base" : 6712819712,
  "size" : 3553361920,
  "uuid" : "9c875b0a-d532-3933-b1f0-f1ea72cedde2"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.0G resident=0K(0%) swapped_out_or_unallocated=1.0G(100%)\nWritable regions: Total=1.3G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.3G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nCG backing stores                 9424K        5 \nColorSync                          496K       24 \nCoreGraphics                        16K        1 \nCoreUI image data                  160K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           250.3M       40 \nMALLOC guard page                  192K       10 \nMALLOC_MEDIUM (reserved)         720.0M        6         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.1M        6 \nStack                             10.6M        6 \nVM_ALLOCATE                        176K       11 \n__AUTH                             576K      134 \n__AUTH_CONST                      11.1M      280 \n__DATA                            2592K      267 \n__DATA_CONST                      13.8M      282 \n__DATA_DIRTY                       678K       97 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       802.3M        2 \n__OBJC_RO                         66.4M        1 \n__OBJC_RW                         2012K        1 \n__TEXT                           212.2M      296 \ndyld private memory                272K        2 \nmapped file                       74.0M       12 \nshared memory                      912K       15 \n===========                     =======  ======= \nTOTAL                              2.6G     1504 \nTOTAL, minus reserved VM space     1.5G     1504 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "b7a90884efef3079e3aab63ceaddefbe82362252",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6112d17137f5d11121dcd4e2",
      "factorPackIds" : {

      },
      "deploymentId" : 240000329
    },
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000307
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "783ca828-ae26-4bac-8c6e-8ac836d0cd5e",
      "experimentId" : "63b8ec83fd1d345f491884ba",
      "deploymentId" : 400000029
    },
    {
      "treatmentId" : "a092db1b-c401-44fa-9c54-518b7d69ca61",
      "experimentId" : "64a844035c85000c0f42398a",
      "deploymentId" : 400000016
    }
  ]
}
}
jjuran commented 1 year ago

Thanks. Apparently SkyLight.framework is making some kind of assertion that fails, although the crash log doesn't tell us what it was, which makes it even harder to speculate what the issue might be.

My cursory Internet research leads me to believe that Stage Manager is related; can you try turning that off?

beezbo commented 1 year ago

I don't think it's on. My laptop is fairly new and when I went to click on it, a window came up that has a button labeled "Turn on Stage Manager".

jjuran commented 1 year ago

I have one more suggestion. Please run

./build.pl -i -8 -j4 Amphitheatre
RETRO_FRONTEND=Amphitheatre make ams-quartz-demo`

Then launch Nyanochrome Cat.

(This builds the CGEvent+OpenGL front end, Amphitheatre, for x86_64, and uses it instead of the default. You can change -j4 above to whatever number of simultaneous jobs you want.)

beezbo commented 1 year ago

I tried that and it did not really change the end result. Both Nyanochrome Cat and Tic-tac-toe "quit unexpectedly".

Is there a command I should use to clear the previous build files just in case they are causing an issue with this new build?

jjuran commented 1 year ago

The intent was to keep the previous build products except for Amphitheatre, which is known not to work natively on Apple Silicon but has been observed to work in Rosetta 2. That (or Amethyst) is the program that macOS sees as the application, and the only one that interacts directly with the display server.

Using a VNC client to connect to 127.0.0.1:5900, please try one or more of the following:

make ams-vnc
AMS_APPNAME="Nyanochrome Cat" make ams-vnc
AMS_APPNAME=Tic-tac-toe make ams-vnc

That does an end run around the issue by making graphics display Someone Else's Problem (i.e. the VNC client's). Hopefully there are no further issues.

jjuran commented 1 year ago

The crash is now fixed in the latest Amethyst/Amphitheatre: 0ad7c80cd6346d996153b7fdb479285d5394c4a4

beezbo commented 1 year ago

Thanks for making this update. I am traveling away from my machine so I haven’t been able to follow up on this issue. I’ll check it out in a couple of weeks.

beezbo commented 1 year ago

When I try building Advanced Mac Substitute per the instructions for MacOS, I get a build error for a missing Quickdraw.h file. I cloned the metamage_1 repo from scratch again. Maybe I am forgetting a step in how I was able to compile last month?

`In file included from mac/libs/mac-qd-utils//mac_qd/plot_icon_id.cc:26:

In file included from mac/libs/mac-qd-utils/mac_qd/copy_bits.hh:20:

mac/libs/mac-qd-utils/mac_qd/get_BitMap_for_CopyBits.hh:25:10: fatal error: 'missing/Quickdraw.h' file not found

include "missing/Quickdraw.h"

     ^~~~~~~~~~~~~~~~~~~~~

1 error generated.

wait status from command: 256

make: *** [ams-quartz-build] Error 2 `

jjuran commented 1 year ago

Thanks for the reminder; that's fixed now.

beezbo commented 1 year ago

Works now! Thanks for the update, it's a really awesome concept with some great demos.

jjuran commented 1 year ago

Thanks for your patience! I'm glad to hear it's working for you now.