SubmarinerApp / Submariner

A Subsonic client for macOS
https://submarinerapp.com
BSD 3-Clause "New" or "Revised" License
122 stars 3 forks source link

Submariner crashes when selecting an invalid server #157

Closed arrrgi closed 10 months ago

arrrgi commented 10 months ago

Describe the bug I recently added my local Navidrome server without specifying a TCP port to connect to. When I left/right click on the server, Submariner quits unexpectedly and then throws a crash report. Submariner should attempt to connect and report the server as offline rather than crashing.

To Reproduce Steps to reproduce the behavior:

  1. Add a new server with incorrect connection details
  2. Left or right click on the server in the lefthand sidebar under the list of servers

At this point the application crashes with the window disappearing, with an eventual crash report window opening.

Expected behavior Submariner should attempt to connect and report the server as offline rather than crashing. A UI element/icon showing that the server is offline would also be a useful addition.

Versions:

NattyNarwhal commented 10 months ago

Do you have the crash report from the dialog? If so, please attach it in a comment. That'll include the stack trace.

I'm not sure by what you mean by not specifying a port - do you mean using the default port (80/443) for the protocol, like entering http://example.com? I created a server with no explicit port and can't reproduce it myself.

I released 2.4, but the App Store hasn't approved that version yet. You might want to try that version by downloading from the GitHub release directly.

arrrgi commented 10 months ago

Originally I didn't specify the Navidrome port in the server config. So I have a server called "Home" which is configured incorrectly and causes Submariner to crash, and a server called Navidrome (see screenshot) which is configured with the correct TCP port.

CleanShot 2023-08-21 at 20 19 20

Crash Report follows:

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

Process:               Submariner [85061]
Path:                  /Applications/Submariner.app/Contents/MacOS/Submariner
Identifier:            fr.read-write.Submariner
Version:               2.3.1 (2.3.1)
App Item ID:           6444016180
App External ID:       858240775
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-08-21 20:22:16.0796 +1000
OS Version:            macOS 13.5 (22G74)
Report Version:        12
Anonymous UUID:        988BDFFA-1F3D-12FB-D1A9-A10CCF3E044B

Time Awake Since Boot: 2200000 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x000000010500effc

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [85061]

Kernel Triage:
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   Submariner                             0x10500effc 0x104fac000 + 405500
1   Submariner                             0x104fd8414 0x104fac000 + 181268
2   Submariner                             0x1050059cc 0x104fac000 + 367052
3   Submariner                             0x104fb4e7c 0x104fac000 + 36476
4   Submariner                             0x104fb7008 0x104fac000 + 45064
5   CoreFoundation                         0x19beb3180 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
6   CoreFoundation                         0x19bf4eeec ___CFXRegistrationPost_block_invoke + 88
7   CoreFoundation                         0x19bf4ee34 _CFXRegistrationPost + 440
8   CoreFoundation                         0x19be844cc _CFXNotificationPost + 704
9   Foundation                             0x19cde28e4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
10  Submariner                             0x104fbb3d4 0x104fac000 + 62420
11  CoreFoundation                         0x19beb3180 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
12  CoreFoundation                         0x19bf4eeec ___CFXRegistrationPost_block_invoke + 88
13  CoreFoundation                         0x19bf4ee34 _CFXRegistrationPost + 440
14  CoreFoundation                         0x19be844cc _CFXNotificationPost + 704
15  Foundation                             0x19cde28e4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
16  AppKit                                 0x19f1d4d58 -[NSTableView _sendSelectionChangedNotificationForRows:columns:] + 196
17  AppKit                                 0x19f390c70 -[NSTableView mouseDown:] + 3968
18  AppKit                                 0x19f38fb70 -[NSOutlineView mouseDown:] + 76
19  AppKit                                 0x19f285ef0 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 3476
20  AppKit                                 0x19f210b2c -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 364
21  AppKit                                 0x19f2107ec -[NSWindow(NSEventRouting) sendEvent:] + 284
22  AppKit                                 0x19f20fb30 -[NSApplication(NSEvent) sendEvent:] + 1556
23  Submariner                             0x104fe0ba8 0x104fac000 + 215976
24  Submariner                             0x104fe0e0c 0x104fac000 + 216588
25  AppKit                                 0x19f45fc48 -[NSApplication _handleEvent:] + 60
26  AppKit                                 0x19f0d6fa0 -[NSApplication run] + 500
27  AppKit                                 0x19f0ae3cc NSApplicationMain + 880
28  dyld                                   0x19ba87f28 start + 2236

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

Thread 2:: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib                 0x19bd9ff54 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x19bdb2280 mach_msg2_internal + 80
2   libsystem_kernel.dylib                 0x19bda8bb8 mach_msg_overwrite + 604
3   libsystem_kernel.dylib                 0x19bda02d0 mach_msg + 24
4   CoreFoundation                         0x19bebe7e4 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                         0x19bebd0c4 __CFRunLoopRun + 1208
6   CoreFoundation                         0x19bebc4b8 CFRunLoopRunSpecific + 612
7   CFNetwork                              0x1a08a2d28 0x1a064f000 + 2440488
8   Foundation                             0x19ce2f53c __NSThread__start__ + 716
9   libsystem_pthread.dylib                0x19bddffa8 _pthread_start + 148
10  libsystem_pthread.dylib                0x19bddada0 thread_start + 8

Thread 3:: com.apple.NSEventThread
0   libsystem_kernel.dylib                 0x19bd9ff54 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x19bdb2280 mach_msg2_internal + 80
2   libsystem_kernel.dylib                 0x19bda8bb8 mach_msg_overwrite + 604
3   libsystem_kernel.dylib                 0x19bda02d0 mach_msg + 24
4   CoreFoundation                         0x19bebe7e4 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                         0x19bebd0c4 __CFRunLoopRun + 1208
6   CoreFoundation                         0x19bebc4b8 CFRunLoopRunSpecific + 612
7   AppKit                                 0x19f20df54 _NSEventThread + 172
8   libsystem_pthread.dylib                0x19bddffa8 _pthread_start + 148
9   libsystem_pthread.dylib                0x19bddada0 thread_start + 8

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

Thread 5:
0   libsystem_pthread.dylib                0x19bddad8c start_wqthread + 0

Thread 6:
0   libsystem_pthread.dylib                0x19bddad8c start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib                0x19bddad8c start_wqthread + 0

Thread 8:
0   libsystem_pthread.dylib                0x19bddad8c start_wqthread + 0

Thread 9:
0   libsystem_pthread.dylib                0x19bddad8c start_wqthread + 0

Thread 10:
0   libsystem_pthread.dylib                0x19bddad8c start_wqthread + 0

Thread 11:
0   libsystem_kernel.dylib                 0x19bda354c __semwait_signal + 8
1   libsystem_c.dylib                      0x19bc842d0 nanosleep + 220
2   Foundation                             0x19cee9864 +[NSThread sleepUntilDate:] + 176
3   ImageKit                               0x1bec7eee0 -[IKTaskManager taskLoop] + 1188
4   Foundation                             0x19ce2f53c __NSThread__start__ + 716
5   libsystem_pthread.dylib                0x19bddffa8 _pthread_start + 148
6   libsystem_pthread.dylib                0x19bddada0 thread_start + 8

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000001   x1: 0x0000000000000001   x2: 0x00000001f7e155c0   x3: 0x0000000000000001
    x4: 0x00000001f8bc77e0   x5: 0x00000001f6e62160   x6: 0x0000000004210123   x7: 0x0000000000000001
    x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x000000040000078c  x11: 0x000000000000007f
   x12: 0x000000000000004f  x13: 0x000000012f0426e0  x14: 0x01000001f6e7c5b1  x15: 0x00000001f6e7c5b0
   x16: 0x00000001f6e7c5b0  x17: 0xb66600019be60688  x18: 0x0000000000000000  x19: 0x00000001f7e155c0
   x20: 0xc00000000000003d  x21: 0x000000016ae51820  x22: 0x00000001f7e1e6d0  x23: 0x00000001f7f391e8
   x24: 0x000000016ae51800  x25: 0x000000016ae51840  x26: 0x00000001f7f39088  x27: 0x00000001f7e1e6b0
   x28: 0x000000016ae517f0   fp: 0x000000016ae519e0   lr: 0x000000010500e53c
    sp: 0x000000016ae517f0   pc: 0x000000010500effc cpsr: 0x60001000
   far: 0x000000012002c000  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x104fac000 -        0x10503bfff fr.read-write.Submariner (2.3.1) <fde7b2bc-b23c-3938-a3a6-028c6828ab7a> /Applications/Submariner.app/Contents/MacOS/Submariner
       0x108840000 -        0x10884bfff libobjc-trampolines.dylib (*) <8e928412-9e96-32d4-b173-d99beb9fed0b> /usr/lib/libobjc-trampolines.dylib
       0x10e764000 -        0x10e7cffff com.apple.AppleMetalOpenGLRenderer (1.0) <76243a19-d6d2-32ee-84d3-7bcfce93d66e> /System/Library/Extensions/AppleMetalOpenGLRenderer.bundle/Contents/MacOS/AppleMetalOpenGLRenderer
       0x19be3f000 -        0x19c318fff com.apple.CoreFoundation (6.9) <b3b2df49-2db8-370e-84ae-e0a2704515b8> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x19cdd9000 -        0x19d79efff com.apple.Foundation (6.9) <b7799cb6-0a3c-3c8b-a185-8cec55845b14> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x19f0aa000 -        0x19ffb9fff com.apple.AppKit (6.9) <ab4a163e-3a53-3fde-a88d-130759291adb> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x19ba82000 -        0x19bb10587 dyld (*) <e7a99595-e0f8-34af-be8b-9347d0d658a4> /usr/lib/dyld
       0x19bdd9000 -        0x19bde5fff libsystem_pthread.dylib (*) <1f30fb9a-bdf9-32db-a709-8417666a7e45> /usr/lib/system/libsystem_pthread.dylib
       0x19bd9f000 -        0x19bdd8ff7 libsystem_kernel.dylib (*) <08c5fe2a-b0bf-3ab6-bb42-460c18917d33> /usr/lib/system/libsystem_kernel.dylib
       0x1a064f000 -        0x1a0a11fff com.apple.CFNetwork (1410.0.3) <5ae47921-0539-3c89-a6a8-23176ad35d4d> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
       0x19bc77000 -        0x19bcf5ff7 libsystem_c.dylib (*) <949943e2-52cb-3c95-ab08-7ed984333d03> /usr/lib/system/libsystem_c.dylib
       0x1bec59000 -        0x1bee9cfff com.apple.imageKit (3.0) <b43ed3ad-3423-31a5-89ab-8f7cee12fc02> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/ImageKit

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.4G resident=0K(0%) swapped_out_or_unallocated=1.4G(100%)
Writable regions: Total=1.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               512K        4 
Activity Tracing                   256K        1 
CG backing stores                 1344K        4 
CG image                          4416K       30 
ColorSync                          592K       30 
CoreAnimation                     6800K       91 
CoreData                            48K        1 
CoreData Object IDs               4112K        2 
CoreGraphics                        32K        2 
CoreUI image data                 2096K       31 
Foundation                          48K        2 
Image IO                           256K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           281.5M       58 
MALLOC guard page                  288K       16 
MALLOC_MEDIUM (reserved)         960.0M        8         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
SQLite page cache                  384K        3 
STACK GUARD                       56.2M       12 
Stack                             13.8M       12 
VM_ALLOCATE                       1296K       17 
__AUTH                            2063K      379 
__AUTH_CONST                      30.0M      610 
__CTF                               824        1 
__DATA                            13.2M      597 
__DATA_CONST                      29.6M      617 
__DATA_DIRTY                      2088K      236 
__FONT_DATA                        2352        1 
__GLSLBUILTINS                    5174K        1 
__INFO_FILTER                         8        1 
__LINKEDIT                       802.5M        4 
__OBJC_RO                         66.4M        1 
__OBJC_RW                         2012K        1 
__TEXT                           646.5M      637 
dyld private memory                272K        2 
mapped file                      237.1M       51 
shared memory                      912K       16 
===========                     =======  ======= 
TOTAL                              3.5G     3482 
TOTAL, minus reserved VM space     2.2G     3482 

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

{"app_name":"Submariner","timestamp":"2023-08-21 20:22:21.00 +1000","app_version":"2.3.1","slice_uuid":"fde7b2bc-b23c-3938-a3a6-028c6828ab7a","adam_id":"6444016180","build_version":"2.3.1","platform":1,"bundleID":"fr.read-write.Submariner","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.5 (22G74)","roots_installed":0,"name":"Submariner","incident_id":"E7D3F2D2-F3E9-44D7-BA09-70B6CDE33F1A"}
{
  "uptime" : 2200000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Macmini9,1",
  "coalitionID" : 145460,
  "osVersion" : {
    "train" : "macOS 13.5",
    "build" : "22G74",
    "releaseType" : "User"
  },
  "captureTime" : "2023-08-21 20:22:16.0796 +1000",
  "incident" : "E7D3F2D2-F3E9-44D7-BA09-70B6CDE33F1A",
  "pid" : 85061,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-08-21 20:18:44.0676 +1000",
  "procStartAbsTime" : 52808959521200,
  "procExitAbsTime" : 52814046266431,
  "procName" : "Submariner",
  "procPath" : "\/Applications\/Submariner.app\/Contents\/MacOS\/Submariner",
  "bundleInfo" : {"CFBundleShortVersionString":"2.3.1","CFBundleVersion":"2.3.1","CFBundleIdentifier":"fr.read-write.Submariner"},
  "storeInfo" : {"storeCohortMetadata":"10|date=1692491400000&sf=143460&rdom=submarinerapp.com&rapp=com.brave.Browser&pgtp=Software&pgid=6444016180&prpg=Genre_25211&ctxt=Discover&lngid=27","itemID":"6444016180","deviceIdentifierForVendor":"16789EAA-0B62-568D-AE24-64D9603EE9E5","thirdParty":true,"softwareVersionExternalIdentifier":"858240775"},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "fr.read-write.Submariner",
  "crashReporterKey" : "988BDFFA-1F3D-12FB-D1A9-A10CCF3E044B",
  "codeSigningID" : "fr.read-write.Submariner",
  "codeSigningTeamID" : "MZ6WW388VL",
  "codeSigningFlags" : 570520337,
  "codeSigningValidationCategory" : 4,
  "codeSigningTrustLevel" : 0,
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x000000010500effc","rawCodes":[1,4378914812],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":85061},
  "os_fault" : {"process":"Submariner"},
  "ktriageinfo" : "VM - (arg = 0x0) pmap_enter retried due to resource shortage\nVM - (arg = 0x0) pmap_enter retried due to resource shortage\n",
  "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":17841082,"threadState":{"x":[{"value":1},{"value":1},{"value":8453707200,"symbolLocation":0,"symbol":"type metadata for URL"},{"value":1},{"value":8468068320,"symbolLocation":760,"symbol":"vtable for dyld4::APIs"},{"value":8437244256,"symbolLocation":224,"symbol":"_main_thread"},{"value":69271843},{"value":1},{"value":0},{"value":0},{"value":17179871116},{"value":127},{"value":79},{"value":5083768544},{"value":72057602475279793,"symbolLocation":72057594037927937,"symbol":"OBJC_CLASS_$___NSCFString"},{"value":8437351856,"symbolLocation":0,"symbol":"OBJC_CLASS_$___NSCFString"},{"value":8437351856,"symbolLocation":0,"symbol":"OBJC_CLASS_$___NSCFString"},{"value":13143192569437881992,"symbolLocation":13143192562527371264,"symbol":"-[__NSCFString release]"},{"value":0},{"value":8453707200,"symbolLocation":0,"symbol":"type metadata for URL"},{"value":13835058055282163773},{"value":6088366112},{"value":8453744336,"symbolLocation":0,"symbol":"type metadata for URLQueryItem"},{"value":8454902248,"symbolLocation":0,"symbol":"value witness table for Builtin.UnknownObject"},{"value":6088366080},{"value":6088366144},{"value":8454901896,"symbolLocation":0,"symbol":"value witness table for Builtin.NativeObject"},{"value":8453744304,"symbolLocation":0,"symbol":"type metadata for URLComponents"},{"value":6088366064}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4378912060},"cpsr":{"value":1610616832},"fp":{"value":6088366560},"sp":{"value":6088366064},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":4378914812,"matchesCrashFrame":1},"far":{"value":4832018432}},"queue":"com.apple.main-thread","frames":[{"imageOffset":405500,"imageIndex":0},{"imageOffset":181268,"imageIndex":0},{"imageOffset":367052,"imageIndex":0},{"imageOffset":36476,"imageIndex":0},{"imageOffset":45064,"imageIndex":0},{"imageOffset":475520,"symbol":"__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__","symbolLocation":148,"imageIndex":3},{"imageOffset":1113836,"symbol":"___CFXRegistrationPost_block_invoke","symbolLocation":88,"imageIndex":3},{"imageOffset":1113652,"symbol":"_CFXRegistrationPost","symbolLocation":440,"imageIndex":3},{"imageOffset":283852,"symbol":"_CFXNotificationPost","symbolLocation":704,"imageIndex":3},{"imageOffset":39140,"symbol":"-[NSNotificationCenter postNotificationName:object:userInfo:]","symbolLocation":88,"imageIndex":4},{"imageOffset":62420,"imageIndex":0},{"imageOffset":475520,"symbol":"__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__","symbolLocation":148,"imageIndex":3},{"imageOffset":1113836,"symbol":"___CFXRegistrationPost_block_invoke","symbolLocation":88,"imageIndex":3},{"imageOffset":1113652,"symbol":"_CFXRegistrationPost","symbolLocation":440,"imageIndex":3},{"imageOffset":283852,"symbol":"_CFXNotificationPost","symbolLocation":704,"imageIndex":3},{"imageOffset":39140,"symbol":"-[NSNotificationCenter postNotificationName:object:userInfo:]","symbolLocation":88,"imageIndex":4},{"imageOffset":1224024,"symbol":"-[NSTableView _sendSelectionChangedNotificationForRows:columns:]","symbolLocation":196,"imageIndex":5},{"imageOffset":3042416,"symbol":"-[NSTableView mouseDown:]","symbolLocation":3968,"imageIndex":5},{"imageOffset":3038064,"symbol":"-[NSOutlineView mouseDown:]","symbolLocation":76,"imageIndex":5},{"imageOffset":1949424,"symbol":"-[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:]","symbolLocation":3476,"imageIndex":5},{"imageOffset":1469228,"symbol":"-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]","symbolLocation":364,"imageIndex":5},{"imageOffset":1468396,"symbol":"-[NSWindow(NSEventRouting) sendEvent:]","symbolLocation":284,"imageIndex":5},{"imageOffset":1465136,"symbol":"-[NSApplication(NSEvent) sendEvent:]","symbolLocation":1556,"imageIndex":5},{"imageOffset":215976,"imageIndex":0},{"imageOffset":216588,"imageIndex":0},{"imageOffset":3890248,"symbol":"-[NSApplication _handleEvent:]","symbolLocation":60,"imageIndex":5},{"imageOffset":184224,"symbol":"-[NSApplication run]","symbolLocation":500,"imageIndex":5},{"imageOffset":17356,"symbol":"NSApplicationMain","symbolLocation":880,"imageIndex":5},{"imageOffset":24360,"symbol":"start","symbolLocation":2236,"imageIndex":6}]},{"id":17841112,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":17841201,"name":"com.apple.NSURLConnectionLoader","frames":[{"imageOffset":3924,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":8},{"imageOffset":78464,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":8},{"imageOffset":39864,"symbol":"mach_msg_overwrite","symbolLocation":604,"imageIndex":8},{"imageOffset":4816,"symbol":"mach_msg","symbolLocation":24,"imageIndex":8},{"imageOffset":522212,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":3},{"imageOffset":516292,"symbol":"__CFRunLoopRun","symbolLocation":1208,"imageIndex":3},{"imageOffset":513208,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":3},{"imageOffset":2440488,"imageIndex":9},{"imageOffset":353596,"symbol":"__NSThread__start__","symbolLocation":716,"imageIndex":4},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":7},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]},{"id":17841205,"name":"com.apple.NSEventThread","frames":[{"imageOffset":3924,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":8},{"imageOffset":78464,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":8},{"imageOffset":39864,"symbol":"mach_msg_overwrite","symbolLocation":604,"imageIndex":8},{"imageOffset":4816,"symbol":"mach_msg","symbolLocation":24,"imageIndex":8},{"imageOffset":522212,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":3},{"imageOffset":516292,"symbol":"__CFRunLoopRun","symbolLocation":1208,"imageIndex":3},{"imageOffset":513208,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":3},{"imageOffset":1458004,"symbol":"_NSEventThread","symbolLocation":172,"imageIndex":5},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":7},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]},{"id":17842230,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":17842787,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":17842788,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":17842789,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":17846419,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":17846420,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":17846421,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":17846474,"frames":[{"imageOffset":17740,"symbol":"__semwait_signal","symbolLocation":8,"imageIndex":8},{"imageOffset":53968,"symbol":"nanosleep","symbolLocation":220,"imageIndex":10},{"imageOffset":1116260,"symbol":"+[NSThread sleepUntilDate:]","symbolLocation":176,"imageIndex":4},{"imageOffset":155360,"symbol":"-[IKTaskManager taskLoop]","symbolLocation":1188,"imageIndex":11},{"imageOffset":353596,"symbol":"__NSThread__start__","symbolLocation":716,"imageIndex":4},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":7},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4378509312,
    "CFBundleShortVersionString" : "2.3.1",
    "CFBundleIdentifier" : "fr.read-write.Submariner",
    "size" : 589824,
    "uuid" : "fde7b2bc-b23c-3938-a3a6-028c6828ab7a",
    "path" : "\/Applications\/Submariner.app\/Contents\/MacOS\/Submariner",
    "name" : "Submariner",
    "CFBundleVersion" : "2.3.1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4437835776,
    "size" : 49152,
    "uuid" : "8e928412-9e96-32d4-b173-d99beb9fed0b",
    "path" : "\/usr\/lib\/libobjc-trampolines.dylib",
    "name" : "libobjc-trampolines.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4537597952,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.AppleMetalOpenGLRenderer",
    "size" : 442368,
    "uuid" : "76243a19-d6d2-32ee-84d3-7bcfce93d66e",
    "path" : "\/System\/Library\/Extensions\/AppleMetalOpenGLRenderer.bundle\/Contents\/MacOS\/AppleMetalOpenGLRenderer",
    "name" : "AppleMetalOpenGLRenderer",
    "CFBundleVersion" : "1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6910373888,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5087232,
    "uuid" : "b3b2df49-2db8-370e-84ae-e0a2704515b8",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1979"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6926733312,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 10248192,
    "uuid" : "b7799cb6-0a3c-3c8b-a185-8cec55845b14",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "1979"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6963240960,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15794176,
    "uuid" : "ab4a163e-3a53-3fde-a88d-130759291adb",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2299.70.136"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6906454016,
    "size" : 583048,
    "uuid" : "e7a99595-e0f8-34af-be8b-9347d0d658a4",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6909956096,
    "size" : 53248,
    "uuid" : "1f30fb9a-bdf9-32db-a709-8417666a7e45",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6909718528,
    "size" : 237560,
    "uuid" : "08c5fe2a-b0bf-3ab6-bb42-460c18917d33",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6985936896,
    "CFBundleShortVersionString" : "1410.0.3",
    "CFBundleIdentifier" : "com.apple.CFNetwork",
    "size" : 3944448,
    "uuid" : "5ae47921-0539-3c89-a6a8-23176ad35d4d",
    "path" : "\/System\/Library\/Frameworks\/CFNetwork.framework\/Versions\/A\/CFNetwork",
    "name" : "CFNetwork",
    "CFBundleVersion" : "1410.0.3"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6908506112,
    "size" : 520184,
    "uuid" : "949943e2-52cb-3c95-ab08-7ed984333d03",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7495585792,
    "CFBundleShortVersionString" : "3.0",
    "CFBundleIdentifier" : "com.apple.imageKit",
    "size" : 2375680,
    "uuid" : "b43ed3ad-3423-31a5-89ab-8f7cee12fc02",
    "path" : "\/System\/Library\/Frameworks\/Quartz.framework\/Versions\/A\/Frameworks\/ImageKit.framework\/Versions\/A\/ImageKit",
    "name" : "ImageKit",
    "CFBundleVersion" : "1128.1"
  }
],
  "sharedCache" : {
  "base" : 6905790464,
  "size" : 3553361920,
  "uuid" : "9c875b0a-d532-3933-b1f0-f1ea72cedde2"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.4G resident=0K(0%) swapped_out_or_unallocated=1.4G(100%)\nWritable regions: Total=1.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               512K        4 \nActivity Tracing                   256K        1 \nCG backing stores                 1344K        4 \nCG image                          4416K       30 \nColorSync                          592K       30 \nCoreAnimation                     6800K       91 \nCoreData                            48K        1 \nCoreData Object IDs               4112K        2 \nCoreGraphics                        32K        2 \nCoreUI image data                 2096K       31 \nFoundation                          48K        2 \nImage IO                           256K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           281.5M       58 \nMALLOC guard page                  288K       16 \nMALLOC_MEDIUM (reserved)         960.0M        8         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSQLite page cache                  384K        3 \nSTACK GUARD                       56.2M       12 \nStack                             13.8M       12 \nVM_ALLOCATE                       1296K       17 \n__AUTH                            2063K      379 \n__AUTH_CONST                      30.0M      610 \n__CTF                               824        1 \n__DATA                            13.2M      597 \n__DATA_CONST                      29.6M      617 \n__DATA_DIRTY                      2088K      236 \n__FONT_DATA                        2352        1 \n__GLSLBUILTINS                    5174K        1 \n__INFO_FILTER                         8        1 \n__LINKEDIT                       802.5M        4 \n__OBJC_RO                         66.4M        1 \n__OBJC_RW                         2012K        1 \n__TEXT                           646.5M      637 \ndyld private memory                272K        2 \nmapped file                      237.1M       51 \nshared memory                      912K       16 \n===========                     =======  ======= \nTOTAL                              3.5G     3482 \nTOTAL, minus reserved VM space     2.2G     3482 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "c188458171959e973309b27b6f418a507c4a6ca2",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "62c74108bcb0435c2153f963",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "64c842be84519424adb75b02"
      },
      "deploymentId" : 240000301
    },
    {
      "rolloutId" : "6112d17137f5d11121dcd4e2",
      "factorPackIds" : {

      },
      "deploymentId" : 240000361
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "3a3cf641-8471-4e4e-9ad4-81d0ede970fd",
      "experimentId" : "64a84dae90d82611a0bd7d3d",
      "deploymentId" : 400000010
    },
    {
      "treatmentId" : "a092db1b-c401-44fa-9c54-518b7d69ca61",
      "experimentId" : "64a844035c85000c0f42398a",
      "deploymentId" : 400000016
    }
  ]
}
}
GetOutOfMyBakery commented 10 months ago

I've ran into something similar, running 2.4 (installed via brew) and Navidrome 0.49.3 (8b93962f)

My scenario

Simplest steps for reproduction

  1. With a fresh setup (i.e. no server connected), open New Server and click OK without providing any details

With an existing server set up

  1. Modify the server with inaccurate details, and click OK.

Short term fix

The solution to get things running again:

@arrrgi, hopefully this gets you up and running again as well.

@NattyNarwhal, I've notice a few other small bugs in this area too, so I'll raise them separately.

Thanks for reviving this project, it's really great!

NattyNarwhal commented 10 months ago

I believe the crashes should be resolved in f47f2fb7bd7c46f1cc6648260d9836e13f6198d0; it'll be included next release. In additional, there's better validation on the add/edit server form, to make sure a valid URL is set.

arrrgi commented 10 months ago

Thanks @GetOutOfMyBakery - your workaround to remove the SQLite DB files was enough to get Submariner started again without the immediate crashes. Will keep an eye for the next release and test.

NattyNarwhal commented 10 months ago

Should be fixed in 2.4.1.