iOS app crashing when setting up first time

Hi,

Home Assistant iOS app crashing when trying to set up the connection. As soon as I tap to server address field, it crashes. Discovery does not work either. Reinstalling app does not help. Have tried with and without wifi, switching on airplane mode, nothing seem to help.

I had HA app installed before, but it was with different HA instance. Perhaps there is some data from old setup that is conflicting with new app installation?

Phone is iPhone 6S, iOS version 14.4, app version is latest to date 2021.2.2.
I have other devices at home, where companion app is working ok. Among them also another iPhone 6S. But issue is just with one single device. Is there a way to wipe the Home Assistant previous data from the phone?

Cheers,

It’s tough to tell from the description, so I would take a look at the internal or external URL you’ve got set up in your HA configuration. I’m guessing it’s something like httpss://… (note the double s) or similar ‘invalid’ scheme.

If this isn’t the case, you can grab the crash log from the device and include it here, which would help figure out what is going wrong. You can find it in the system Settings app (note: not the HA app) under Privacy > Analytics > Analytics Data. Scroll down to Home Assistant in the list.

Thank you @zacwest for the response.

I do not think it even reaches to HA, since it happens even in flight mode. And it crashes as soon as I tap to server address field on the app.

Grabbed the log from device and included to herewith.

{"app_name":"Home Assistant","timestamp":"2021-02-13 12:50:47.00 +0200","app_version":"2021.2.2","slice_uuid":"868e3ef2-2ef7-39c9-9422-cc62e0efb298","adam_id":1099568401,"build_version":"2021.55","platform":2,"bundleID":"io.robbie.HomeAssistant","share_with_app_devs":0,"is_first_party":0,"bug_type":"109","os_version":"iPhone OS 14.4 (18D52)","incident_id":"BDC88BD1-29FD-4F9F-BF13-05328455AF52","name":"Home Assistant"}
Incident Identifier: BDC88BD1-29FD-4F9F-BF13-05328455AF52
CrashReporter Key:   d90129552f8b8b080d8a7af737f778b6e96c2158
Hardware Model:      iPhone8,1
Process:             Home Assistant [1160]
Path:                /private/var/containers/Bundle/Application/71B596DF-C5CD-41D8-9A74-D9637A2AF5CF/Home Assistant.app/Home Assistant
Identifier:          io.robbie.HomeAssistant
Version:             2021.55 (2021.2.2)
AppStoreTools:       12D4d
AppVariant:          1:iPhone8,1:13
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           io.robbie.HomeAssistant [489]


Date/Time:           2021-02-13 12:50:47.1433 +0200
Launch Time:         2021-02-13 12:50:41.9267 +0200
OS Version:          iPhone OS 14.4 (18D52)
Release Type:        User
Baseband Version:    8.40.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Application Specific Information:
abort() called

Last Exception Backtrace:
(0x19f7dd9d8 0x1b3b63b54 0x19f847d98 0x19f8531f4 0x19f6d88a8 0x19f6cbc04 0x1a1e50e00 0x1a1d848c8 0x1a1d89bec 0x1a1e3935c 0x1a1e3996c 0x1a1e2efc0 0x1a1adcf94 0x1a1adc6d8 0x1a2080b4c 0x1a207c0e0 0x1a253d340 0x1a2352a90 0x1a23038dc 0x1a22e34c8 0x1a22e428c 0x1a204ef38 0x10567e91c 0x1a1b375a4 0x1a1bce3fc 0x1a1bd7970 0x1a1bd45f8 0x1a1bd3bc0 0x1a1bc8150 0x1a1bc74e0 0x1a208b4cc 0x1a2066b0c 0x1a20e9078 0x1a20ed818 0x1a20e4afc 0x19f75dbf0 0x19f75daf0 0x19f75ce38 0x19f7573e0 0x19f756ba0 0x1b64bf598 0x1a20482f4 0x1a204d874 0x10452a4a4 0x19f435568)

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib        	0x00000001cb60884c 0x1cb5e1000 + 161868
1   libsystem_pthread.dylib       	0x00000001e7fc49e8 0x1e7fbb000 + 39400
2   libsystem_c.dylib             	0x00000001a84d88f4 0x1a8465000 + 473332
3   libc++abi.dylib               	0x00000001b3c5fcc8 0x1b3c4d000 + 77000
4   libc++abi.dylib               	0x00000001b3c51ca0 0x1b3c4d000 + 19616
5   libobjc.A.dylib               	0x00000001b3b63e04 0x1b3b5d000 + 28164
6   Sentry                        	0x000000010568ff68 0x105674000 + 114536
7   libc++abi.dylib               	0x00000001b3c5f154 0x1b3c4d000 + 74068
8   libc++abi.dylib               	0x00000001b3c61e68 0x1b3c4d000 + 85608
9   libobjc.A.dylib               	0x00000001b3b63d04 0x1b3b5d000 + 27908
10  CoreFoundation                	0x000000019f756c8c 0x19f6c3000 + 605324
11  GraphicsServices              	0x00000001b64bf598 0x1b64bc000 + 13720
12  UIKitCore                     	0x00000001a20482f4 0x1a151a000 + 11723508
13  UIKitCore                     	0x00000001a204d874 0x1a151a000 + 11745396
14  Home Assistant                	0x000000010452a4a4 0x104520000 + 42148
15  libdyld.dylib                 	0x000000019f435568 0x19f434000 + 5480

Thread 1:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 2:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 3:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 4 name:  com.apple.uikit.eventfetch-thread
Thread 4:
0   libsystem_kernel.dylib        	0x00000001cb5e5644 0x1cb5e1000 + 17988
1   libsystem_kernel.dylib        	0x00000001cb5e4a48 0x1cb5e1000 + 14920
2   CoreFoundation                	0x000000019f75d0fc 0x19f6c3000 + 631036
3   CoreFoundation                	0x000000019f757570 0x19f6c3000 + 607600
4   CoreFoundation                	0x000000019f756ba0 0x19f6c3000 + 605088
5   Foundation                    	0x00000001a09767f8 0x1a096f000 + 30712
6   Foundation                    	0x00000001a09766d8 0x1a096f000 + 30424
7   UIKitCore                     	0x00000001a20f4054 0x1a151a000 + 12427348
8   Foundation                    	0x00000001a0ad34bc 0x1a096f000 + 1459388
9   libsystem_pthread.dylib       	0x00000001e7fc3c9c 0x1e7fbb000 + 35996
10  libsystem_pthread.dylib       	0x00000001e7fc8880 0x1e7fbb000 + 55424

Thread 5:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 6:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 7:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 8:
0   libsystem_kernel.dylib        	0x00000001cb608bf0 0x1cb5e1000 + 162800
1   libsystem_c.dylib             	0x00000001a84d56d4 0x1a8465000 + 460500
2   libsystem_c.dylib             	0x00000001a84d54d4 0x1a8465000 + 459988
3   Sentry                        	0x00000001056841b4 0x105674000 + 65972
4   libsystem_pthread.dylib       	0x00000001e7fc3c9c 0x1e7fbb000 + 35996
5   libsystem_pthread.dylib       	0x00000001e7fc8880 0x1e7fbb000 + 55424

Thread 9 name:  SentryCrash Exception Handler (Secondary)
Thread 9:
0   libsystem_kernel.dylib        	0x00000001cb5e5644 0x1cb5e1000 + 17988
1   libsystem_kernel.dylib        	0x00000001cb5e4a48 0x1cb5e1000 + 14920
2   libsystem_kernel.dylib        	0x00000001cb60251c 0x1cb5e1000 + 136476
3   Sentry                        	0x0000000105690c10 0x105674000 + 117776
4   libsystem_pthread.dylib       	0x00000001e7fc3c9c 0x1e7fbb000 + 35996
5   libsystem_pthread.dylib       	0x00000001e7fc8880 0x1e7fbb000 + 55424

Thread 10 name:  SentryCrash Exception Handler (Primary)
Thread 10:
0   libsystem_kernel.dylib        	0x00000001cb5e5644 0x1cb5e1000 + 17988
1   libsystem_kernel.dylib        	0x00000001cb5e4ac0 0x1cb5e1000 + 15040
2   Sentry                        	0x0000000105690c3c 0x105674000 + 117820
3   libsystem_pthread.dylib       	0x00000001e7fc3c9c 0x1e7fbb000 + 35996
4   libsystem_pthread.dylib       	0x00000001e7fc8880 0x1e7fbb000 + 55424

Thread 11:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 12 name:  Realm notification listener
Thread 12:
0   libsystem_kernel.dylib        	0x00000001cb60a3b4 0x1cb5e1000 + 168884
1   Realm                         	0x00000001052e43c8 0x104ec4000 + 4326344
2   Realm                         	0x00000001052e4518 0x104ec4000 + 4326680
3   libsystem_pthread.dylib       	0x00000001e7fc3c9c 0x1e7fbb000 + 35996
4   libsystem_pthread.dylib       	0x00000001e7fc8880 0x1e7fbb000 + 55424

Thread 13:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 14:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 15:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 16:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 17:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 18:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 19:
0   libsystem_pthread.dylib       	0x00000001e7fc886c 0x1e7fbb000 + 55404

Thread 20 name:  com.apple.NSURLConnectionLoader
Thread 20:
0   libsystem_kernel.dylib        	0x00000001cb5e5644 0x1cb5e1000 + 17988
1   libsystem_kernel.dylib        	0x00000001cb5e4a48 0x1cb5e1000 + 14920
2   CoreFoundation                	0x000000019f75d0fc 0x19f6c3000 + 631036
3   CoreFoundation                	0x000000019f757570 0x19f6c3000 + 607600
4   CoreFoundation                	0x000000019f756ba0 0x19f6c3000 + 605088
5   CFNetwork                     	0x000000019ffe84b0 0x19fdb6000 + 2303152
6   Foundation                    	0x00000001a0ad34bc 0x1a096f000 + 1459388
7   libsystem_pthread.dylib       	0x00000001e7fc3c9c 0x1e7fbb000 + 35996
8   libsystem_pthread.dylib       	0x00000001e7fc8880 0x1e7fbb000 + 55424

Thread 21 name:  com.apple.CFSocket.private
Thread 21:
0   libsystem_kernel.dylib        	0x00000001cb608b00 0x1cb5e1000 + 162560
1   CoreFoundation                	0x000000019f769400 0x19f6c3000 + 680960
2   libsystem_pthread.dylib       	0x00000001e7fc3c9c 0x1e7fbb000 + 35996
3   libsystem_pthread.dylib       	0x00000001e7fc8880 0x1e7fbb000 + 55424

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x00000001b3c62f31   x5: 0x000000016b8def70   x6: 0x000000000000006e   x7: 0x0000000000000033
    x8: 0x0000000104923880   x9: 0x19616d38ed30acbb  x10: 0x0000000000000002  x11: 0x000000000000000b
   x12: 0x00000001e9b46c4a  x13: 0x0000000000000001  x14: 0x0000000000000010  x15: 0x0000000000000006
   x16: 0x0000000000000148  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000000407  x21: 0x0000000104923960  x22: 0x0000000000000001  x23: 0x00000002804f81b0
   x24: 0x0000000000000000  x25: 0x0000000000000001  x26: 0x0000000eb1e31100  x27: 0x00000001f823d000
   x28: 0x0000000000000001   fp: 0x000000016b8deed0   lr: 0x00000001e7fc49e8
    sp: 0x000000016b8deeb0   pc: 0x00000001cb60884c cpsr: 0x40000000
   esr: 0x56000080  Address size fault

I believe the bottom part of the crashlog is truncated there, could you re-attach it? It may be worth saving the file somewhere directly. You can upload it into my Dropbox here.

Yes, my mistake. Uploaded the whole crash dump now.

Hi,

I managed to make it work. I changed the app language in iOS settings from “English (UK)” to “English” and that did the trick. Cannot really figure out the relation, but as long as it works, I am good with it.