BlockchainCommons / GordianWallet-iOS

iOS wallet linked by Torgap to your own full-node server
Other
47 stars 14 forks source link

Immediately crashes on boot #95

Closed mflaxman closed 3 years ago

mflaxman commented 3 years ago

Steps:

  1. Download from https://github.com/BlockchainCommons/GordianWallet-iOS/blob/master/GordianWallet-macOS.dmg
  2. Open .dmg file
  3. Drag Gordian Wallet to applications folder
  4. Double click application and see it crash immediately:

Screen Shot 2020-10-07 at 10 27 54 AM

Process:               Gordian Wallet [90717]
Path:                  /Applications/Gordian Wallet.app/Contents/MacOS/Gordian Wallet
Identifier:            com.blockchaincommons.standupios
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Gordian Wallet [90717]
User ID:               501

Date/Time:             2020-10-07 10:27:37.975 -0500
OS Version:            Mac OS X 10.15.6 (19G2021)
Report Version:        12
Anonymous UUID:        32D8CB59-AD83-B210-C110-0035F05B3BDC

Sleep/Wake UUID:       07D5F381-DB70-427E-B3F8-4B260954FDF7

Time Awake Since Boot: 730000 seconds
Time Since Wake:       620 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (Code Signature Invalid)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace CODESIGNING, Code 0x1

kernel messages:

VM Regions Near 0 (cr2):
--> 
    __TEXT                 000000010e2ff000-000000010e805000 [ 5144K] r-x/r-x SM=COW  

Thread 0 Crashed:
0   @<                            0x00000001149cf000 _dyld_start + 0

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000000  rcx: 0x0000000000000000  rdx: 0x0000000000000000
  rdi: 0x0000000000000000  rsi: 0x0000000000000000  rbp: 0x0000000000000000  rsp: 0x00007ffee1900be8
   r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000000
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
  rip: 0x00000001149cf000  rfl: 0x0000000000000200  cr2: 0x0000000000000000

Logical CPU:     0
Error Code:      0x00000000
Trap Number:     0

Binary Images:
       0x10e2ff000 -        0x10e804ff7 +@< (0) <C26FFA9D-AA10-3A25-9A12-02C3B5533742> @<
       0x1149ce000 -        0x114a5ff47 +@< (750.6) <F9D4DEDC-8296-3E3F-B517-9C8B89A4C094> @<

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: 1186011
    thread_create: 0
    thread_set_state: 0

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
STACK GUARD                       56.0M        1 
Stack                             8192K        1 
__DATA                             524K        4 
__DATA_CONST                        88K        2 
__LINKEDIT                         700K        2 
__TEXT                            5728K        2 
shared memory                        8K        2 
===========                     =======  ======= 
TOTAL                             70.9M       14 

Model: MacBookPro14,1, BootROM 428.0.0.0.0, 2 processors, Dual-Core Intel Core i7, 2.5 GHz, 16 GB, SMC 2.43f10
Graphics: kHW_IntelIrisGraphics640Item, Intel Iris Plus Graphics 640, spdisplays_builtin
Memory Module: BANK 0/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
Memory Module: BANK 1/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x170), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1615.1)
Bluetooth: Version 7.0.6f7, 3 services, 27 devices, 1 incoming serial ports
Network Service: USB 10/100/1000 LAN, Ethernet, en4
Network Service: Wi-Fi, AirPort, en0
USB Device: USB3.0 Hub
USB Device: Mass Storage Device
USB Device: USB 10/100/1000 LAN
USB Device: USB 3.0 Bus
USB Device: USB2.0 Hub
USB Device: USB 2.0 Hub
USB Device: Hub
USB Device: Texas Instruments USBtoI2C Solution
USB Device: Hub
USB Device: USB Trackball
USB Device: Keyboard Hub
USB Device: Apple Keyboard
USB Device: USB 2.0 BILLBOARD
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.4
Fonta1n3 commented 3 years ago

Thanks for the issue.

If you ctrl click to open the app (as it is not notarized), do you still get a crash?

mflaxman commented 3 years ago

Yup, tried that as well :(

Fonta1n3 commented 3 years ago

Yup, tried that as well :(

It is a signing issue.. It doesn't crash for us because we have the signing keys on our machines.

Unfortunately there is a bug in Apple's ecosystem where attempting to sign Mac Catalyst app's for direct distribution always fails when the "Sign in with Apple" capability is enabled. Frustrating.

Screen Shot 2020-10-08 at 8 41 29 AM

I suppose the best alternative here is to disable that feature, comment out the code that uses it and create a new notarized dmg. @ChristopherA I would need your permission to do that. I beleive we will need to disable "Sign in with Apple" irregardless if we are going to submit this to the Mac App Store as we will have the same issue then.

@mflaxman In the meantime you can use this link to try the app on Tesflight https://testflight.apple.com/join/OQHyL0a8, or better yet build from source as it is very easily done if you already have Xcode, just git clone the project and open it, the only dependency is carthage > brew install carthage.

mflaxman commented 3 years ago

Thanks, I was able to open the app that way but then it hangs forever when trying to setup a wallet :( https://github.com/BlockchainCommons/GordianWallet-iOS/issues/96

Fonta1n3 commented 3 years ago

We are releasing the testnet version for macOS via the MacAppStore to resolve this issue as we can not distribute and sign catalyst apps with the "sign in with Apple" capability.