getdepot / depot

Depot - MacOS app for managing 3D model content and resources.
http://getdepot.app
BSD 3-Clause "New" or "Revised" License
10 stars 0 forks source link

[BUG] Depot crashes on launch (possible sqlite issue) #18

Closed sammcj closed 1 year ago

sammcj commented 1 year ago

Describe the bug

Depot is crashing on launch

To Reproduce

I'm not 100% sure how to reproduce this one but I suspect it might be because I moved the library container location.

Expected behaviour

Depot to launch

Screenshots

image

Mac (please complete the following information):

Additional context

In the log console I see the error from libsqlite3.dylib:

open flag(s) 0x01000000 are reserved for VFS use and do not affect behaviour when passed to sqlite3_open_v2

When I moved ~/Library/Containers/app.getdepot.depot to another location the app launches correctly again.

diff ~/Library/Containers/app.getdepot.depot ~/Library/Containers/app.getdepot.depot-bak

Binary files /Users/samm/Library/Containers/app.getdepot.depot/.com.apple.containermanagerd.metadata.plist and /Users/samm/Library/Containers/app.getdepot.depot-bak/.com.apple.containermanagerd.metadata.plist differ

Common subdirectories: /Users/samm/Library/Containers/app.getdepot.depot/Data and /Users/samm/Library/Containers/app.getdepot.depot-bak/Data

Full crash report:

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

Process:               Depot [12740]
Path:                  /Applications/Depot.app/Contents/MacOS/Depot
Identifier:            app.getdepot.depot
Version:               1.1.6 (12)
App Item ID:           1569814452
App External ID:       853706181
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-01-23 08:15:15.1433 +1100
OS Version:            macOS 13.1 (22C65)
Report Version:        12
Anonymous UUID:        660A4919-E7D7-CE0B-86BA-AE2A0782F2DD

Sleep/Wake UUID:       9F62975D-F4D3-41FA-B5CC-421A53FC45D2

Time Awake Since Boot: 360000 seconds
Time Since Wake:       1693 seconds

System Integrity Protection: enabled

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

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

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

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   Depot                                  0x104a96c14 0x104a3c000 + 371732
1   Depot                                  0x104a9678c 0x104a3c000 + 370572
2   Depot                                  0x104a95c68 0x104a3c000 + 367720
3   libdispatch.dylib                      0x194ea2504 _dispatch_client_callout + 20
4   libdispatch.dylib                      0x194ea3d50 _dispatch_once_callout + 32
5   Depot                                  0x104ae3038 0x104a3c000 + 684088
6   SwiftUI                                0x1bc67182c 0x1bbbeb000 + 11036716
7   Depot                                  0x104a409b4 0x104a3c000 + 18868
8   dyld                                   0x194cffe50 start + 2544

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

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

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000001   x1: 0x0000000000000001   x2: 0x00000001f1329fb8   x3: 0x000000016b3c3568
    x4: 0x00006000017e8080   x5: 0x0000000000000003   x6: 0x0000000000000000   x7: 0x0000000000000001
    x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x0000000200001b80  x11: 0x000000000000000f
   x12: 0x0000000000000005  x13: 0x0000600001ee0240  x14: 0x01000001f03a8719  x15: 0x00000001f03a8718
   x16: 0x0000000195056ed0  x17: 0x00000001f142e9e0  x18: 0x0000000000000000  x19: 0x000000016b3c3560
   x20: 0x00006000017e8000  x21: 0x0000000000000000  x22: 0x00000001a316f298  x23: 0x00000001f1329fb8
   x24: 0x000000016b3c3510  x25: 0x00006000006ec0c0  x26: 0x000000016b3c3530  x27: 0x0000000104d16ca0
   x28: 0x00000001a316f290   fp: 0x000000016b3c36a0   lr: 0x0000000104a9678c
    sp: 0x000000016b3c3490   pc: 0x0000000104a96c14 cpsr: 0x60001000
   far: 0x0000000104a5065c  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x104a3c000 -        0x104da3fff app.getdepot.depot (1.1.6) <baf94ff7-2286-30d7-a1fc-621af604f455> /Applications/Depot.app/Contents/MacOS/Depot
       0x194e9e000 -        0x194ee5fff libdispatch.dylib (*) <191028d2-0477-3ebc-9eef-a85acafc7193> /usr/lib/system/libdispatch.dylib
       0x1bbbeb000 -        0x1bd46efff com.apple.SwiftUI (4.2.11.400) <ec516c7c-a622-3030-abe2-72e824c47bd0> /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
       0x194cfa000 -        0x194d84b63 dyld (*) <487cfdeb-9b07-39bf-bfb9-970b61aea2d1> /usr/lib/dyld
       0x195022000 -        0x19502effb libsystem_pthread.dylib (*) <132084c6-c347-3489-9ac2-fcaad21cdb73> /usr/lib/system/libsystem_pthread.dylib

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.3G resident=0K(0%) swapped_out_or_unallocated=1.3G(100%)
Writable regions: Total=731.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=731.5M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           217.2M       28 
MALLOC guard page                   96K        5 
MALLOC_MEDIUM (reserved)         120.0M        1         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.0M        3 
Stack                             9264K        3 
VM_ALLOCATE (reserved)            1024K        1         reserved VM address space (unallocated)
__AUTH                            2057K      352 
__AUTH_CONST                      24.7M      575 
__CTF                               756        1 
__DATA                            13.0M      563 
__DATA_CONST                      27.5M      580 
__DATA_DIRTY                      2024K      222 
__FONT_DATA                        2352        1 
__LINKEDIT                       767.4M        2 
__OBJC_CONST                      4505K      316 
__OBJC_RO                         65.4M        1 
__OBJC_RW                         1986K        1 
__TEXT                           590.0M      601 
dyld private memory                256K        1 
mapped file                       30.1M        4 
shared memory                       64K        4 
===========                     =======  ======= 
TOTAL                              2.3G     3268 
TOTAL, minus reserved VM space     1.8G     3268 

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

{"app_name":"Depot","timestamp":"2023-01-23 08:15:15.00 +1100","app_version":"1.1.6","slice_uuid":"baf94ff7-2286-30d7-a1fc-621af604f455","adam_id":"1569814452","build_version":"12","platform":1,"bundleID":"app.getdepot.depot","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.1 (22C65)","roots_installed":0,"name":"Depot","incident_id":"85C2BB68-AA7D-43EA-8608-B134E4964D54"}
{
  "uptime" : 360000,
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,1",
  "coalitionID" : 76956,
  "osVersion" : {
    "train" : "macOS 13.1",
    "build" : "22C65",
    "releaseType" : "User"
  },
  "captureTime" : "2023-01-23 08:15:15.1433 +1100",
  "incident" : "85C2BB68-AA7D-43EA-8608-B134E4964D54",
  "pid" : 12740,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-01-23 08:15:15.0582 +1100",
  "procStartAbsTime" : 8815804368353,
  "procExitAbsTime" : 8815806376176,
  "procName" : "Depot",
  "procPath" : "\/Applications\/Depot.app\/Contents\/MacOS\/Depot",
  "bundleInfo" : {"CFBundleShortVersionString":"1.1.6","CFBundleVersion":"12","CFBundleIdentifier":"app.getdepot.depot"},
  "storeInfo" : {"storeCohortMetadata":"10|date=1673760600000&sf=143460&prpg=Genre_25211&ctxt=Discover&lngid=27","itemID":"1569814452","deviceIdentifierForVendor":"D651FC44-C4A6-5550-9A7C-127D1735EECB","thirdParty":true,"softwareVersionExternalIdentifier":"853706181"},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "app.getdepot.depot",
  "crashReporterKey" : "660A4919-E7D7-CE0B-86BA-AE2A0782F2DD",
  "throttleTimeout" : 2147483647,
  "wakeTime" : 1693,
  "sleepWakeUUID" : "9F62975D-F4D3-41FA-B5CC-421A53FC45D2",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x0000000104a96c14","rawCodes":[1,4373179412],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":12740},
  "os_fault" : {"process":"Depot"},
  "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":9196407,"threadState":{"x":[{"value":1},{"value":1},{"value":8341594040,"symbolLocation":0,"symbol":"type metadata for URL"},{"value":6094075240},{"value":105553141334144},{"value":3},{"value":0},{"value":1},{"value":0},{"value":0},{"value":8589941632},{"value":15},{"value":5},{"value":105553148641856},{"value":72057602363262745,"symbolLocation":72057594037927937,"symbol":"OBJC_CLASS_$___NSCFError"},{"value":8325334808,"symbolLocation":0,"symbol":"OBJC_CLASS_$___NSCFError"},{"value":6795128528,"symbolLocation":0,"symbol":"_platform_memmove"},{"value":8342661600},{"value":0},{"value":6094075232},{"value":105553141334016},{"value":0},{"value":7031157400,"symbolLocation":0,"symbol":"swift::metadataimpl::ValueWitnesses<swift::metadataimpl::ObjCRetainableBox>::initializeWithCopy(swift::OpaqueValue*, swift::OpaqueValue*, swift::TargetMetadata<swift::InProcess> const*)"},{"value":8341594040,"symbolLocation":0,"symbol":"type metadata for URL"},{"value":6094075152},{"value":105553123524800},{"value":6094075184},{"value":4375800992},{"value":7031157392,"symbolLocation":0,"symbol":"swift::metadataimpl::ValueWitnesses<swift::metadataimpl::ObjCRetainableBox>::destroy(swift::OpaqueValue*, swift::TargetMetadata<swift::InProcess> const*)"}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4373178252},"cpsr":{"value":1610616832},"fp":{"value":6094075552},"sp":{"value":6094075024},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":4373179412,"matchesCrashFrame":1},"far":{"value":4372891228}},"queue":"com.apple.main-thread","frames":[{"imageOffset":371732,"imageIndex":0},{"imageOffset":370572,"imageIndex":0},{"imageOffset":367720,"imageIndex":0},{"imageOffset":17668,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":1},{"imageOffset":23888,"symbol":"_dispatch_once_callout","symbolLocation":32,"imageIndex":1},{"imageOffset":684088,"imageIndex":0},{"imageOffset":11036716,"imageIndex":2},{"imageOffset":18868,"imageIndex":0},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":3}]},{"id":9196436,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]},{"id":9196438,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4372807680,
    "CFBundleShortVersionString" : "1.1.6",
    "CFBundleIdentifier" : "app.getdepot.depot",
    "size" : 3571712,
    "uuid" : "baf94ff7-2286-30d7-a1fc-621af604f455",
    "path" : "\/Applications\/Depot.app\/Contents\/MacOS\/Depot",
    "name" : "Depot",
    "CFBundleVersion" : "12"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6793322496,
    "size" : 294912,
    "uuid" : "191028d2-0477-3ebc-9eef-a85acafc7193",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7444803584,
    "CFBundleShortVersionString" : "4.2.11.400",
    "CFBundleIdentifier" : "com.apple.SwiftUI",
    "size" : 25706496,
    "uuid" : "ec516c7c-a622-3030-abe2-72e824c47bd0",
    "path" : "\/System\/Library\/Frameworks\/SwiftUI.framework\/Versions\/A\/SwiftUI",
    "name" : "SwiftUI",
    "CFBundleVersion" : "4.2.11.400"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6791602176,
    "size" : 568164,
    "uuid" : "487cfdeb-9b07-39bf-bfb9-970b61aea2d1",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6794911744,
    "size" : 53244,
    "uuid" : "132084c6-c347-3489-9ac2-fcaad21cdb73",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 6790955008,
  "size" : 3434283008,
  "uuid" : "00a1fbb6-43e1-3c11-8483-faf0db659249"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.3G resident=0K(0%) swapped_out_or_unallocated=1.3G(100%)\nWritable regions: Total=731.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=731.5M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           217.2M       28 \nMALLOC guard page                   96K        5 \nMALLOC_MEDIUM (reserved)         120.0M        1         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.0M        3 \nStack                             9264K        3 \nVM_ALLOCATE (reserved)            1024K        1         reserved VM address space (unallocated)\n__AUTH                            2057K      352 \n__AUTH_CONST                      24.7M      575 \n__CTF                               756        1 \n__DATA                            13.0M      563 \n__DATA_CONST                      27.5M      580 \n__DATA_DIRTY                      2024K      222 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       767.4M        2 \n__OBJC_CONST                      4505K      316 \n__OBJC_RO                         65.4M        1 \n__OBJC_RW                         1986K        1 \n__TEXT                           590.0M      601 \ndyld private memory                256K        1 \nmapped file                       30.1M        4 \nshared memory                       64K        4 \n===========                     =======  ======= \nTOTAL                              2.3G     3268 \nTOTAL, minus reserved VM space     1.8G     3268 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "60186475825c62000ccf5450",
      "factorPackIds" : {

      },
      "deploymentId" : 240000026
    },
    {
      "rolloutId" : "610d52e1fc54bc3389840408",
      "factorPackIds" : {
        "SIRI_UNDERSTANDING_ASR_ASSISTANT" : "6376d83499e1ff5d8f0dcc3f",
        "SIRI_UNDERSTANDING_MORPHUN" : "62ec7220c682040ba94e6a20"
      },
      "deploymentId" : 240000591
    }
  ],
  "experiments" : [

  ]
}
}

Model: MacBookPro18,1, BootROM 8419.60.44, proc 10:8:2 processors, 16 GB, SMC 
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: PHL 328E1, 3840 x 2160 (2160p/4K UHD 1 - Ultra High Definition), Main, MirrorOff, Online
Display: Color LCD, 3456 x 2234 Retina, MirrorOff, Online
Memory Module: LPDDR5, Samsung
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Sep  3 2022 02:35:52 version 20.10.965.9.8.7.129 FWID 01-b0e84a9b
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Belkin USB-C LAN, Ethernet, en7
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB3.0 Hub
USB Device: Logitech BRIO
USB Device: USB3.1 Hub
USB Device: Game Drive
USB Device: USB2.0 Hub
USB Device: TB4H3TB
USB Device: USB2.1 Hub
USB Device: AudioQuest DragonFly Red v1.0
USB Device: Keychron K7
USB Device: USB31Bus
USB Device: Belkin USB-C LAN
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Device: TB4H3TB, ALOGIC, 1, 30.1
Thunderbolt Bus: MacBook Pro, Apple Inc.
destari commented 1 year ago

Did you move it with the option within the app, or manually?

sammcj commented 1 year ago

Manually / on the file system.

destari commented 1 year ago

This is why - the App stores a reference to the location of the Library in the container in a plist. When you move it, it has no way to know you moved it. There is an option in settings to move it, and that should work nicely for you.

image
sammcj commented 1 year ago

Ohhhhhhhh gotcha! Thanks!