Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS app v2023.12 instantly crashing / will not open #2493

Closed
keckrich opened this issue Dec 27, 2023 · 27 comments
Closed

iOS app v2023.12 instantly crashing / will not open #2493

keckrich opened this issue Dec 27, 2023 · 27 comments
Assignees

Comments

@keckrich
Copy link

Model Name: iPhone 11
Software Version: iOS 14.6
App version: 2023.12

Describe the bug
After updating the app from 2023.7 to 2023.12 I can no longer open it. It just instantly crashes. I tried restarting my device, but that did not help. When I restored my phone to version 2023.7 it worked again.

@EyalRotem
Copy link

I have the same issue.
iphone 11 pro on 14.8. jailbroken with taurine.

when not in a jailbroken mode - it loads as it should.

after jailbreaking - instant crash.

while i realize a jailbreak adds more variables to the mix - I see no reason it shouldn't work. as many many other apps work whether or not jailbroken.
Also, as HA is mainly used by tinkerers - some will probably use a jailbroken device =]

to add more info - even when trying to run the app without tweak injection (using choisy or libhooker configurator - it still crashes.

@EyalRotem
Copy link

i checked on another iphone - 6s with 14.1 and jailbroken by taurine as well - doesn't crash

@dhrto
Copy link

dhrto commented Dec 29, 2023

Same here, after update from 2023.7 to 2023.12 this morning, the app won't launch. It seems like to launches (brief screen switch) and then back to the Ipad's app screen. Ipad mini 2, iOS 12.5.7, NOT jailbroken.

Is there a way to revert to 2023.7?

@zacwest
Copy link
Member

zacwest commented Dec 29, 2023

Please attach crash logs. You can find them in the system Settings app under Privacy > Analytics > Analytics Data > search for HomeAssistant

@EyalRotem
Copy link

I have no logs there. Also, when installing Cr4shed from Sileo, it also has no crash logs.
Anything else ? I have access to all the device files

@dhrto
Copy link

dhrto commented Dec 29, 2023

Apparently I had to enable sharing crash logs first, before any crash log is generated at all (phrasing in iOS could be better). Please see attached:

Home Assistant-2023-12-29-190932 - Copy.txt

@mfarley2080
Copy link

mfarley2080 commented Dec 29, 2023

Similar issue on an older iPad with 2023.12. Not jailbroken. Crashes immediately on launch on 12.5.7. Log attached.

Process:             Home Assistant [468]
Path:                /private/var/containers/Bundle/Application/F85D086A-E0CC-479F-8ABC-53391E18D5A6/Home Assistant.app/Home Assistant
OS Version:          iPhone OS 12.5.7 (16H81)

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00002a2d256bf16f
VM Region Info: 0x2a2d256bf16f is not in any region.  Bytes after previous region: 46362115436912  
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      MALLOC_NANO            0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV  
--->  
      UNUSED SPACE AT END

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [468]
Triggered by Thread:  0

Home Assistant-2023-12-27-103252.log

@keckrich
Copy link
Author

Here is my crash log:

Home_Assistant-2023-12-27-090842.txt

@grahamr
Copy link

grahamr commented Dec 30, 2023

Model Name: iPad Air 1
Software Version: iPadOS 12.5.7
App version: 2023.12

crash log attached.
Home Assistant-2023-12-30-134607.log

@Joshbloam
Copy link

Joshbloam commented Dec 31, 2023

Same issue here! My dashboard is down :(

ipad-fail

Apple iPad Air
IOS 12.5.7
Companion app: 2023.12 (most recently worked with 2023.7)

Home Asisstant
Core: 2023.12.4
Supervisor: 2023.12.0
Operating System: 11.2
Frontend: 20231208.2

@Joshbloam
Copy link

Does anyone have the ios IPA file for version 2023.7?

@jpoon
Copy link

jpoon commented Jan 1, 2024

Ditto. My experience is the same as others. v2023.12 crashes on app launch.

Crash Dump: Home Assistant-2023-12-31-175717.log

Date/Time:           2023-12-31 17:57:17.2804 -0800
Launch Time:         2023-12-31 17:57:16.4907 -0800
OS Version:          iPhone OS 12.5.7 (16H81)
Baseband Version:    n/a
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00002a2d4e7b720f
VM Region Info: 0x2a2d4e7b720f is not in any region.  Bytes after previous region: 46362804318736  
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      MALLOC_NANO            0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV  
--->  
      UNUSED SPACE AT END

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [777]
Triggered by Thread:  0

As per v2023.12 release notes: This is the last release for iOS 12, 13, and 14; more information is available when you open the App. so it'd be great if this we get a bug fix to get the app in a working state before it is fully deprecated for older versions of iOS.

@jpoon
Copy link

jpoon commented Jan 1, 2024

(Preface: I am not an iOS developer by any means so this is me just Googling around).

I see that one of the major changes in the current release is upgrading from xcode 14 -> 15. xcode 15 has this in their release notes: https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Linking

Binaries using symbols with a weak definition * crash at runtime on iOS 14/macOS 12 or older * (emphasis mine). This impacts primarily C++ projects due to their extensive use of weak symbols. (114813650) (FB13097713)

Workaround: Bump the minimum deployment target to iOS 15, macOS 12, watchOS 8 or tvOS 15, or add -Wl,-ld_classic to the OTHER_LDFLAGS build setting.

Based on https://developer.apple.com/forums/thread/736214 and https://developer.apple.com/forums/thread/738317 of other users reporting their xcode15-built apps crashing on ios12, they have a similar stack trace (ie. seg fault / EXC_BAD_ACCESS) to what I'm seeing on the v2023.12 crash. In addition, based on the other user reports on this GH issue, the crash is impacting iOS12 and iOS14 devices which aligns with the above xcode linking issue.

@kcoffau
Copy link

kcoffau commented Jan 2, 2024

Another +1 for iOS 12.5.7

I appreciate its old ios and hardware but that it what we use for panels around home. I’m not spending $1k to replace each panel because of code.

Hopefully this is just a code cleanup

@bgoncal
Copy link
Member

bgoncal commented Jan 2, 2024

I'll be investigating the issue today

@bgoncal
Copy link
Member

bgoncal commented Jan 2, 2024

(Preface: I am not an iOS developer by any means so this is me just Googling around).

I see that one of the major changes in the current release is upgrading from xcode 14 -> 15. xcode 15 has this in their release notes: https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Linking

Binaries using symbols with a weak definition * crash at runtime on iOS 14/macOS 12 or older * (emphasis mine). This impacts primarily C++ projects due to their extensive use of weak symbols. (114813650) (FB13097713)
Workaround: Bump the minimum deployment target to iOS 15, macOS 12, watchOS 8 or tvOS 15, or add -Wl,-ld_classic to the OTHER_LDFLAGS build setting.

Based on https://developer.apple.com/forums/thread/736214 and https://developer.apple.com/forums/thread/738317 of other users reporting their xcode15-built apps crashing on ios12, they have a similar stack trace (ie. seg fault / EXC_BAD_ACCESS) to what I'm seeing on the v2023.12 crash. In addition, based on the other user reports on this GH issue, the crash is impacting iOS12 and iOS14 devices which aligns with the above xcode linking issue.

It's indeed something related to Xcode, I ran the app again on Xcode 14.3.1 and it works. Unfortunately the workaround recommended by Apple is not working, I'll keep digging.

@bgoncal bgoncal self-assigned this Jan 2, 2024
@bgoncal
Copy link
Member

bgoncal commented Jan 2, 2024

Update: Apple's workaround also needed to be done in one of our dependencies (Realm), I'll prepare a 2023.12.1

@jpoon
Copy link

jpoon commented Jan 2, 2024

@bgoncal thanks for the quick turnaround.

@ildar170975
Copy link

ildar170975 commented Jan 2, 2024

iPhone 5S, iOS 12.5.7 - crash with 2023.12.1
iPad Air 2, iOS 15.7.9 - OK

@bgoncal
Copy link
Member

bgoncal commented Jan 2, 2024

iPhone 5S, iOS 12.5.7 - crash with 2023.12.1

iPad Air 2, iOS 15.7.9 - OK

Can you share the logs? I have been testing on an iPhone 6 iOS 12.5.7 and it has been working fine.

You can also try to delete and reinstall the app if this I ok for you.

@kcoffau
Copy link

kcoffau commented Jan 2, 2024

I'm on iPad Air 1, iOS 12.5.7, app 12.1 and I'm back online

Thank you

@ildar170975
Copy link

@bgoncal

You can also try to delete and reinstall the app if this I ok for you.

Thanks for a feedback!
I could not realize how to retrieve a log if App is not started.
What helped me: uninstall the App, install - and it works again!

@keckrich
Copy link
Author

keckrich commented Jan 3, 2024

Deleting the old version and then updating the app worked. Thanks!

@mfarley2080
Copy link

Confirmed to be working again. Thank you!

@EyalRotem
Copy link

EyalRotem commented Jan 3, 2024

IPhone 11 Pro, iOS 14.8, jailbroken with taurine:
Working again on 2023.12.1

thanks for the fast response!

@dhrto
Copy link

dhrto commented Jan 3, 2024

iPad mini 2, iPhone OS 12.5.7.
I can confirm 2023.12.1 my dashboard is working again. Thanks for the quick fix!

@bgoncal bgoncal closed this as completed Jan 3, 2024
@Janver448
Copy link

The same for me.

iPad mini 2, iOS 12.5.7.
I can confirm 2023.12.1 my dashboard is working again. Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests