ART (experimental) on MacOS

Hi,

I tried the experimental version of ART for Mac, hosted on kd6kxr’s keybase. It “works”, except for the images. I guess the problem is when packaging the .app, images aren’t copied to a Resources directory.

Binary: ART_macOS_12.3_Universal_1.0-1301-gd02ff3a7e

From command line:

/Applications/ART.app/Contents/MacOS/ART 

Error: the user's processing profile path doesn't point to a directory or doesn't exist!
Error: Can't load css file "/Users/rb/art/build/Release/Resources/share/themes/_ART.css"
Message: <data>:4:70Failed to import: Error opening file /Users/rb/art/build/Release/Resources/share/themes/_ART.css: No such file or directory
ERROR: Failed to open file “/Users/rb/art/build/Release/Resources/share/images/wb-camera-small.svg”: No such file or directory

Then all error are ART looks for images below the following directory /Users/rb/art/build/Release/Resources/share/images/
which is not my user account, but Richard’s

Also, if you look at the screen shot, default opened directory is the Container in the Library folder… It shouldresolve the symlink shown.

Binary: ART_macOS_x86_64_latest

/Applications/ART.app/Contents/MacOS/art
zsh: illegal hardware instruction  /Applications/ART.app/Contents/MacOS/art

I’m on a MacbookPro M1

Hope this helps !

Cannot get either the universal or x86 version to open (iMac 2019 Monterey 12.6). Both just quit unexpectedly all the time with a segfault. Herewith part of the dump (I am too new here and pixls.us interprets all the < and > in the dump as hyperlinks and pitches a fit), hoping it will be of some use. Happy to send the whole lot if it is of any value.


Translated Report (Full Report Below)

Process: ART [89918]
Path: /Applications/ART.app/Contents/MacOS/ART
Identifier: us.pixls.art.ART
Version: 1.0.1301 (1.0.1301)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2022-10-07 08:51:00.7935 +1030
OS Version: macOS 12.6 (21G115)
Report Version: 12
Anonymous UUID: C6AD1A1F-A50C-5C7E-1DC9-2C06AA90E195

Sleep/Wake UUID: 17218C23-6BE3-44E7-A791-9A51EF1CE4D4

Time Awake Since Boot: 71000 seconds
Time Since Wake: 1910 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
Exception Codes: 0x0000000000000001, 0x0000000000000008
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [89918]

VM Region Info: 0x8 is not in any region. Bytes before following region: 140737487884280
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
—>
VM_ALLOCATE 7ffffff8d000-7ffffff8e000 [ 4K] r-x/r-x SM=ALI

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libcairomm-1.0.1.dylib 0x10cfaad7a Cairo::ImageSurface::get_width() const + 10
1 ART 0x10c29bec0 RTImage::createPixbufFromFile(Glib::ustring const&) + 64
2 ART 0x10c2b4fd9 RTWindow::RTWindow() + 4697
3 ART 0x10c20602c (anonymous namespace)::create_rt_window() + 172
4 ART 0x10c20648c (anonymous namespace)::RTApplication::on_activate() + 28
5 libgiomm-2.4.1.dylib 0x10d34684e Gio::Application_Class::activate_callback(_GApplication*) + 78
6 libgobject-2.0.0.dylib 0x10cd7d25e _g_closure_invoke_va + 201
7 libgobject-2.0.0.dylib 0x10cd912fd g_signal_emit_valist + 987
8 libgobject-2.0.0.dylib 0x10cd91d78 g_signal_emit + 120
9 libgio-2.0.0.dylib 0x10d57e9a0 g_application_real_local_command_line + 1350
10 libgiomm-2.4.1.dylib 0x10d347c6c Gio::Application::local_command_line_vfunc(char**&, int&) + 76
11 libgiomm-2.4.1.dylib 0x10d34643e Gio::Application_Class::local_command_line_vfunc_callback(_GApplication*, char***, int*) + 94
12 libgio-2.0.0.dylib 0x10d57cdc0 g_application_run + 342
13 ART 0x10c20257f main + 3583
14 dyld 0x11a7ca52e start + 462

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000103 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x00000000000c1570
rdi: 0x0000000000000000 rsi: 0x000000004e2f2288 rbp: 0x00007ff7b3e80010 rsp: 0x00007ff7b3e80000
r8: 0x000000000000283a r9: 0x0000000000000008 r10: 0x00007f9228000000 r11: 0x0000000000000000
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x00007ff7b3e80180
rip: 0x000000010cfaad7a rfl: 0x0000000000010246 cr2: 0x0000000000000008

Logical CPU: 2
Error Code: 0x00000004 (no mapping for user data read)
Trap Number: 14

Thread 0 instruction stream:
ff bf 10 00 00 00 e8 11-1f 00 00 4c 89 70 08 48 …L.p.H
8d 0d 38 58 00 00 48 89-08 48 89 03 48 c7 43 08 …8X…H…H…H.C.
00 00 00 00 bf 04 00 00-00 e8 ee 1e 00 00 48 89 …H.
43 08 c7 00 01 00 00 00-48 89 d8 5b 41 5e 5d c3 C…H…[A^].
48 89 c7 e8 3e 64 ff ff-66 2e 0f 1f 84 00 00 00 H…>d…f…
00 00 0f 1f 40 00 55 48-89 e5 41 56 53 48 89 fb …@.UH…AVSH…
[48]8b 7f 08 e8 ff 20 00-00 41 89 c6 48 8b 7b 08 H… …A…H.{. <==
e8 43 25 00 00 85 c0 74-07 89 c7 e8 76 d0 ff ff .C%…t…v…
44 89 f0 5b 41 5e 5d c3-66 2e 0f 1f 84 00 00 00 D…[A^].f…
00 00 0f 1f 40 00 55 48-89 e5 41 56 53 48 89 fb …@.UH…AVSH…
48 8b 7f 08 e8 b3 20 00-00 41 89 c6 48 8b 7b 08 H… …A…H.{.
e8 03 25 00 00 85 c0 74-07 89 c7 e8 36 d0 ff ff …%…t…6…

I have just tried launching ART on my M1 Pro MBP on Monterey and it crashes immediately on launch. I can’t figure out where/how to find any crash logs though I’m afraid.

I tried yesterday. Depending of the DMG version you have, ART is looking for libmp installed in /opt/homebrew/. Or it simply segfaults.

ART shouldn’t look into /opt. Resources should be in the Resources/ folder.