ganeshrvel / openmtp

OpenMTP - Advanced Android File Transfer Application for macOS
https://openmtp.ganeshrvel.com
MIT License
3.5k stars 130 forks source link

OpenMTP crashes when using macOS Monterey 12 Developer Beta 1 #239

Open Lennox833 opened 3 years ago

Lennox833 commented 3 years ago

Prerequisites

If the following boxes are not ALL checked, your issue is likely to be closed.

Describe the bug A clear and concise description of what the bug is.

Expected behaviour If you're describing a bug, tell us what should happen. If you're suggesting a change/improvement, tell us how it should work.

Current Behavior If describing a bug, tell us what happens instead of the expected behaviour. If suggesting a change/improvement, explain the difference between current behaviour.

Possible Solution

Not obligatory, but suggest a fix/reason for the bug or ideas how to implement the addition or change.

Steps to Reproduce (for bugs) Provide a link to a live example or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant

1.

2.

3.

4.

Context How has this issue affected you? What are you trying to accomplish? Did you make any changes to the codes after cloning it? Providing context helps us come up with a solution that is most useful in the real world.

Your Environment Include as many relevant details about the environment you experienced the bug in

Attachments Include if relevant,

  1. Open your Terminal and run the following code:
    zip -r -X ~/Desktop/OpenMTP-log.zip "$HOME/Library/Application Support/io.ganeshrvel.openmtp/logs/"
  2. Attach the file OpenMTP-log.zip found in your Desktop folder here.

Or

  1. Open the App,
  2. Click on Help > Report Bugs.
  3. Generate and send us the bugs report.

Screenshots If applicable, add screenshots to help explain your problem.

OpenMTP does't work with an M1 mac this is the crash report:


Process:               OpenMTP [67836]
Path:                  /Applications/OpenMTP.app/Contents/MacOS/OpenMTP
Identifier:            io.ganeshrvel.openmtp
Version:               3.1.15 (3.1.15)
Code Type:             X86-64 (Translated)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2021-07-20 19:11:42.2386 +0100
OS Version:            macOS 12.0 (21A5248p)
Report Version:        12
Anonymous UUID:        3200989A-516E-5F3A-E976-2ADED42B1271

Sleep/Wake UUID:       BDD8960B-8C69-4532-B1D5-AA0705DFDD55

Time Awake Since Boot: 56000 seconds
Time Since Wake:       1373 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BAD_ACCESS (SIGBUS)
Exception Codes:       KERN_PROTECTION_FAILURE at 0x0000000112a9d014
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 10 Bus error: 10
Terminating Process:   exc handler [67836]

VM Region Info: 0x112a9d014 is in 0x112a9d000-0x112bfe000;  bytes after start: 20  bytes before end: 1445867
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      mapped file                 112462000-112a9d000    [ 6380K] r--/rwx SM=COW  ...t_id=ff6a963d
--->  mapped file                 112a9d000-112bfe000    [ 1412K] ---/rwx SM=COW  ...t_id=ff6a963d
      mapped file                 112bfe000-112c69000    [  428K] r-x/rwx SM=COW  ...t_id=ff6a963d

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   runtime                             0x7ff7ffe9c8f4 0x7ff7ffe86000 + 92404
1   Rosetta Runtime Routines           0x10487ed10 ???
2   <translation info unavailable>         0x1048a6538 ???
3   dyld                                   0x2049fdc8f invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int) + 62
4   dyld                                   0x2049fd5e0 dyld4::JustInTimeLoader::withRegions(dyld3::MachOAnalyzer const*, void (dyld3::Array<dyld4::Loader::Region> const&) block_pointer) + 234
5   dyld                                   0x2049fdb9e invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int) + 525
6   dyld                                   0x204a02b8b dyld4::SyscallDelegate::withReadOnlyMappedFile(Diagnostics&, char const*, bool, void (void const*, unsigned long, bool, dyld4::FileID const&, char const*) block_pointer) const + 137
7   dyld                                   0x2049fd96a dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int) + 180
8   dyld                                   0x2049f8c59 invocation function for block in dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 1464
9   dyld                                   0x2049f81e7 dyld4::Loader::forEachResolvedAtPathVar(dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, dyld4::ProcessConfig::PathOverrides::Type, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 901
10  dyld                                   0x2049f7de3 invocation function for block in dyld4::Loader::forEachPath(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 99
11  dyld                                   0x2049ef86f dyld4::ProcessConfig::PathOverrides::forEachPathVariant(char const*, dyld3::Platform, bool, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) const + 525
12  dyld                                   0x2049f7d68 dyld4::Loader::forEachPath(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 154
13  dyld                                   0x2049f84b0 dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 670
14  dyld                                   0x204a081cd invocation function for block in dyld4::APIs::dlopen_from(char const*, int, void*) + 261
15  dyld                                   0x2049f0219 dyld4::RuntimeState::withLoadersWriteLock(void () block_pointer) + 49
16  dyld                                   0x204a07ee1 dyld4::APIs::dlopen_from(char const*, int, void*) + 515
17  .io.ganeshrvel.openmtp.PmlBmI          0x11242a1fc ffi_call_unix64 + 76
18  ???                                 0x600002541d10 ???

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                             0x7ff7ffe89320 0x7ff7ffe86000 + 13088
1   runtime                             0x7ff7ffe96b1c 0x7ff7ffe86000 + 68380
2   runtime                             0x7ff7ffe98608 0x7ff7ffe86000 + 75272

Thread 2:
0   runtime                             0x7ff7ffea86d0 0x7ff7ffe86000 + 141008

Thread 3:
0   runtime                             0x7ff7ffea86d0 0x7ff7ffe86000 + 141008

Thread 4:
0   runtime                             0x7ff7ffea86d0 0x7ff7ffe86000 + 141008

Thread 5:
0   runtime                             0x7ff7ffea86d0 0x7ff7ffe86000 + 141008

Thread 6:: ThreadPoolServiceThread
0   ???                                 0x7ff8ae3967ec ???
1   libsystem_kernel.dylib              0x7ff81e13c672 kevent64 + 10
2   Electron Framework                     0x1175a373b v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17692251
3   Electron Framework                     0x1175526e1 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17360385
4   Electron Framework                     0x11752852a v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17187914
5   Electron Framework                     0x11755c55d v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17400957
6   Electron Framework                     0x11756efea v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17477386
7   Electron Framework                     0x11758b507 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17593383
8   libsystem_pthread.dylib             0x7ff81e1695b8 _pthread_start + 125
9   libsystem_pthread.dylib             0x7ff81e1650d3 thread_start + 15

Thread 7:: ThreadPoolForegroundWorker
0   ???                                 0x7ff8ae3967ec ???
1   libsystem_kernel.dylib              0x7ff81e13373a mach_msg_trap + 10
2   Electron Framework                     0x1175964f0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17638416
3   Electron Framework                     0x117565b0e v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17439278
4   Electron Framework                     0x11756616f v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17440911
5   Electron Framework                     0x11756605d v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17440637
6   Electron Framework                     0x11758b507 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17593383
7   libsystem_pthread.dylib             0x7ff81e1695b8 _pthread_start + 125
8   libsystem_pthread.dylib             0x7ff81e1650d3 thread_start + 15

Thread 8:: ThreadPoolBackgroundWorker
0   ???                                 0x7ff8ae3967ec ???
1   libsystem_kernel.dylib              0x7ff81e13373a mach_msg_trap + 10
2   Electron Framework                     0x1175964f0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17638416
3   Electron Framework                     0x117565b0e v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17439278
4   Electron Framework                     0x11756616f v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17440911
5   Electron Framework                     0x117565fcd v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17440493
6   Electron Framework                     0x11758b507 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17593383
7   libsystem_pthread.dylib             0x7ff81e1695b8 _pthread_start + 125
8   libsystem_pthread.dylib             0x7ff81e1650d3 thread_start + 15

Thread 9:: Chrome_IOThread
0   ???                                 0x7ff8ae3967ec ???
1   libsystem_kernel.dylib              0x7ff81e13c672 kevent64 + 10
2   Electron Framework                     0x1175a373b v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17692251
3   Electron Framework                     0x1175526e1 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17360385
4   Electron Framework                     0x11752852a v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17187914
5   Electron Framework                     0x1168e5507 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 4330535
6   Electron Framework                     0x11756efea v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17477386
7   Electron Framework                     0x11758b507 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17593383
8   libsystem_pthread.dylib             0x7ff81e1695b8 _pthread_start + 125
9   libsystem_pthread.dylib             0x7ff81e1650d3 thread_start + 15

Thread 10:: MemoryInfra
0   ???                                 0x7ff8ae3967ec ???
1   libsystem_kernel.dylib              0x7ff81e13373a mach_msg_trap + 10
2   Electron Framework                     0x1175964f0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17638416
3   Electron Framework                     0x1175963be v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17638110
4   Electron Framework                     0x11750941f v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17060671
5   Electron Framework                     0x1175526e1 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17360385
6   Electron Framework                     0x11752852a v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17187914
7   Electron Framework                     0x11756efea v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17477386
8   Electron Framework                     0x11758b507 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 17593383
9   libsystem_pthread.dylib             0x7ff81e1695b8 _pthread_start + 125
10  libsystem_pthread.dylib             0x7ff81e1650d3 thread_start + 15

Thread 11:
0   ???                                 0x7ff8ae3967ec ???
1   libsystem_kernel.dylib              0x7ff81e1380de kevent + 10
2   Electron Framework                     0x11b0912ad uv_run + 365
3   Electron Framework                     0x11aff0243 node::MultiIsolatePlatform::CancelPendingDelayedTasks(v8::Isolate*) + 675
4   libsystem_pthread.dylib             0x7ff81e1695b8 _pthread_start + 125
5   libsystem_pthread.dylib             0x7ff81e1650d3 thread_start + 15

Thread 12:
0   ???                                 0x7ff8ae3967ec ???
1   libsystem_kernel.dylib              0x7ff81e136186 __psynch_cvwait + 10
2   Electron Framework                     0x11b09c8b9 uv_cond_wait + 9
3   Electron Framework                     0x11aff0402 node::MultiIsolatePlatform::CancelPendingDelayedTasks(v8::Isolate*) + 1122
4   Electron Framework                     0x11afee289 node::Buffer::New(v8::Isolate*, char*, unsigned long, void (*)(char*, void*), void*) + 540521
5   libsystem_pthread.dylib             0x7ff81e1695b8 _pthread_start + 125
6   libsystem_pthread.dylib             0x7ff81e1650d3 thread_start + 15

Thread 13:
0   ???                                 0x7ff8ae3967ec ???
1   libsystem_kernel.dylib              0x7ff81e136186 __psynch_cvwait + 10
2   Electron Framework                     0x11b09c8b9 uv_cond_wait + 9
3   Electron Framework                     0x11aff0402 node::MultiIsolatePlatform::CancelPendingDelayedTasks(v8::Isolate*) + 1122
4   Electron Framework                     0x11afee289 node::Buffer::New(v8::Isolate*, char*, unsigned long, void (*)(char*, void*), void*) + 540521
5   libsystem_pthread.dylib             0x7ff81e1695b8 _pthread_start + 125
6   libsystem_pthread.dylib             0x7ff81e1650d3 thread_start + 15

Thread 14:
0   ???                                 0x7ff8ae3967ec ???
1   libsystem_kernel.dylib              0x7ff81e136186 __psynch_cvwait + 10
2   Electron Framework                     0x11b09c8b9 uv_cond_wait + 9
3   Electron Framework                     0x11aff0402 node::MultiIsolatePlatform::CancelPendingDelayedTasks(v8::Isolate*) + 1122
4   Electron Framework                     0x11afee289 node::Buffer::New(v8::Isolate*, char*, unsigned long, void (*)(char*, void*), void*) + 540521
5   libsystem_pthread.dylib             0x7ff81e1695b8 _pthread_start + 125
6   libsystem_pthread.dylib             0x7ff81e1650d3 thread_start + 15

Thread 15:
0   ???                                 0x7ff8ae3967ec ???
1   libsystem_kernel.dylib              0x7ff81e133776 semaphore_wait_trap + 10
2   Electron Framework                     0x11b052863 node::inspector::Agent::GetWsUrl() const + 83
3   libsystem_pthread.dylib             0x7ff81e1695b8 _pthread_start + 125
4   libsystem_pthread.dylib             0x7ff81e1650d3 thread_start + 15

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x00007ff7ffeb5220   x1: 0x0000000000000103   x2: 0x000000030d283720   x3: 0x0000000112a9d000
    x4: 0x0000000112fad000   x5: 0x000000030d282fd0   x6: 0x000000030d282fd8   x7: 0x000000030d282fe0
    x8: 0x0000000000000022   x9: 0x0000000000000000  x10: 0x0000000112fad000  x11: 0x000000030d2834f0
   x12: 0x0000000000000060  x13: 0x000000010cda4060  x14: 0x0000000204a5bef4  x15: 0x0000000112fad000
   x16: 0x00008018003a5968  x17: 0x0000000000000000  x18: 0x800000010c8e8b70  x19: 0x000000030d282fe0
   x20: 0x800000010c8e8b70  x21: 0x000000010c8ede50  x22: 0x000000030d282fd8  x23: 0x0000000112a9d000
   x24: 0x000000030d283720  x25: 0x0000000112fad000  x26: 0x00000001048c14f8  x27: 0x000000030d282fd0
   x28: 0x00000002049eaf82   fp: 0x000000010c8e8b60   lr: 0x860c7ff7ffe9c8d8
    sp: 0x000000010c8e89c0   pc: 0x00007ff7ffe9c8f4 cpsr: 0x00000000
   far: 0x0000000112a9d014  esr: 0x92000006 (Data Abort) byte read Translation fault

Binary Images:
    0x7ff7ffe86000 -     0x7ff7ffeb1fff runtime (*) <ef11682e-cba3-30f0-9472-6e6836623d55> /usr/libexec/rosetta/runtime
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x2049e6000 -        0x204a4dfff dyld (*) <4e207376-cc5d-3986-a0bd-4d09f4217e68> /usr/lib/dyld
       0x11241e000 -        0x11242dfff .io.ganeshrvel.openmtp.PmlBmI (*) <5a4f35e5-9993-36ab-a7df-9e7243518365> /private/var/folders/*/.io.ganeshrvel.openmtp.PmlBmI
    0x7ff81e132000 -     0x7ff81e162fff libsystem_kernel.dylib (*) <1ce9fea0-66b2-3399-95dd-089f8c812d91> /usr/lib/system/libsystem_kernel.dylib
       0x114bb5000 -        0x11c01cfff io.ganeshrvel.openmtp (3.1.15) <bd7a4915-3786-32c7-b365-c4d6b8800e39> /Applications/OpenMTP.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework
    0x7ff81e163000 -     0x7ff81e16efff libsystem_pthread.dylib (*) <a955c3d1-1895-35df-b127-df3a448d6851> /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=1.3G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.3G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
ColorSync                          140K       20 
CoreGraphics                         4K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           232.1M       31 
MALLOC guard page                   96K        4 
MALLOC_MEDIUM (reserved)         480.0M        4         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
Memory Tag 255                     4.0G       96 
Rosetta Arena                     4096K        2 
Rosetta Generic                   2616K      651 
Rosetta IndirectBranch             512K        1 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack               300K       30 
Rosetta Thread Context             300K       30 
STACK GUARD                         16K        4 
Stack                             82.0M       15 
Stack Guard                       56.1M       11 
VM_ALLOCATE                       5012K       14 
VM_ALLOCATE (reserved)            3676K        3         reserved VM address space (unallocated)
__CTF                               759        1 
__DATA                            40.5M      571 
__DATA_CONST                      36.7M      382 
__DATA_DIRTY                      2117K      256 
__FONT_DATA                          4K        1 
__LINKEDIT                       669.7M       21 
__OBJC_RO                         80.3M        1 
__OBJC_RW                         3008K        2 
__TEXT                           653.4M      587 
__UNICODE                          588K        1 
dyld private memory               1024K        1 
mapped file                        4.7G      783 
shared memory                      848K       15 
unshared pmap                     8096K        6 
===========                     =======  ======= 
TOTAL                             11.5G     3549 
TOTAL, minus reserved VM space    10.7G     3549 

Model: MacBookAir10,1, BootROM 7429.0.72.0.3, proc 8:4:4 processors, 8 GB, SMC 
Graphics: kHW_AppleM1Item, Apple M1, spdisplays_builtin
Memory Module: LPDDR4
AirPort: spairport_wireless_card_type_wifi, wl0: May  4 2021 18:24:35 version 18.20.281.2.7.8.107 FWID 01-7c11bd60
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.1 Bus
USB Device: USB 3.1 Bus
Thunderbolt Bus: MacBook Air, Apple Inc.
Thunderbolt Bus: MacBook Air, Apple Inc.

I used the latest build and macOS Monterey Developer Beta 1. OpenMTP-log.zip

ganeshrvel commented 2 years ago

I am waiting for a public rollout of Monterey to release the latest update.

ganeshrvel commented 2 years ago

See if this version helps? https://github.com/ganeshrvel/openmtp-testflight/blob/main/OpenMTP-3.2.0/OpenMTP-3.2.0-alpha.1-mac.zip

If you are looking for the M1 version check https://github.com/ganeshrvel/openmtp/issues/244#issuecomment-1050234082

ganeshrvel commented 1 year ago

OpenMTP-3.2.0-beta.1 is out πŸ”₯πŸ”₯

Note: This a pre-release version and the app might be unstable. ⚠️

Features

Special shoutout to @CodyJung for adding the Fujifilm and Garmin devices support. πŸ”₯πŸ”₯

Download

macOS Apple Silicone (arm64): https://github.com/ganeshrvel/openmtp/releases/download/v3.2.0-beta.1/openmtp-3.2.0-beta.1-mac-arm64.dmg macOS Intel (x64): https://github.com/ganeshrvel/openmtp/releases/download/v3.2.0-beta.1/openmtp-3.2.0-beta.1-mac-arm64.dmg