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

Actions are not available in iOS/iPadOS and choosing HA actions in “Shortcuts” crashes app #3045

Open
Morriz opened this issue Sep 24, 2024 · 19 comments

Comments

@Morriz
Copy link

Morriz commented Sep 24, 2024

iOS device model, version and app version

Model Name: iPhone 15, iPad Air 2022
Software Version: iPhone+iPad: 18.1 beta
App version: 2024.9.1 (2024)

Home Assistant Core Version

2024.9.3

Describe the bug
Since some time shortcuts on my iphone went buggy, and after deleting and recreating one I noticed that all HA actions that I published statically OR dynamically (in the companion app) are NOT visible in the Shortcuts app anymore, and selecting Home Assistant in Shortcuts crashes the app.

To Reproduce
Create a shortcut that triggers a HA action

Expected behavior
No crash, and HA actions to be selectable

Screenshots

Additional context

@bgoncal bgoncal self-assigned this Sep 24, 2024
@bgoncal
Copy link
Member

bgoncal commented Sep 24, 2024

Thanks for reporting, can you export your logs and send a screen recording? Submit it here: https://forms.gle/jX3HkCJTtpwNYEe67

Do you remember in which iOS and App version it started happening? Does it happens on your iPhone and iPad or only iPad?

@Morriz
Copy link
Author

Morriz commented Sep 24, 2024

A screen recording is not going to show anything. When choosing actions from app "Home Assistant" the Shortcuts app immediately crashes. And that is an apple app, of which I don't know how to get the logs...

@Morriz
Copy link
Author

Morriz commented Sep 24, 2024

And it happens on both, like I mentioned before in the versions section...

@bgoncal
Copy link
Member

bgoncal commented Sep 24, 2024

Please send the screen recording as requested and the logs from the Home Assistant App, shortcuts communicates with home assistant, perhaps there is something relevant from the logs.

@Morriz
Copy link
Author

Morriz commented Sep 24, 2024

iPadOS:

trim.31B1D27C-C0CA-44AD-B787-DCF020D4AA32.MOV

@Morriz
Copy link
Author

Morriz commented Sep 24, 2024

iOS:

trim.251D74E7-8C1D-4F0E-8605-BCD31A40EABC.MOV

@bgoncal
Copy link
Member

bgoncal commented Sep 24, 2024

Ok the crash looks entirely on Apple’s side, does it happens if you select other apps in shortcuts?
have you reported to Apple as well?

@Morriz
Copy link
Author

Morriz commented Sep 24, 2024

I submitted the logs to the google form url. The videos I don't care about being seen here...

@Morriz
Copy link
Author

Morriz commented Sep 24, 2024

I reported to Apple with the Feedback app, yes...

@Morriz
Copy link
Author

Morriz commented Sep 24, 2024

Other apps are ok

@bgoncal
Copy link
Member

bgoncal commented Sep 24, 2024

I’ll let you know in case I find something useful, meanwhile try rebooting your devices, this sometimes works for widgets (not your case but behind the scenes is related)
Let me know if Apple replies

@Morriz
Copy link
Author

Morriz commented Sep 24, 2024

Thanks. I already rebooted my devices but no help. I will update when I have feedback ;)

@rchiechi
Copy link

rchiechi commented Oct 2, 2024

I am having the exact same problem on iPhone 15 pro max running iOS 18.0 (22A3354).

I noticed it after opening the Shortcuts app on MacOS, which synced stale versions of all my shortcuts, overwriting the more recent versions on my phone (and undeleting shortcuts that I had deleted months ago).

I don't think the two are necessarily related, just mentioning that because it is what prompted me to try editing a shortcut, which now instantly crashes when selecting Home Assistant. So I only know that Home Assistant Shortcuts worked before iOS 18 / Sequoia but not after.

Rebooting did cause an action to reappear in a widget stack, but did not fix the crash.

@rchiechi
Copy link

rchiechi commented Oct 2, 2024

Update: it works fine on iPadOS 17.7 (21H16) on iPad Pro 11 inch M4. So for me this bug is specific to iOS 18. I can even create a shortcut that calls Hone Assistant on my iPad and it will sync to my iPhone and execute fine. I just can't create a shortcut with a Home Assistant action on iPhone / iOS 18.

@shcipwa
Copy link

shcipwa commented Oct 3, 2024

Same issue here after upgrading to IOS 18.0

@jchme
Copy link

jchme commented Oct 6, 2024

I am having the same issue on an iPhone SE (2020). I first noticed it after upgrading to iOS 18.

@xpfgsyb
Copy link

xpfgsyb commented Oct 6, 2024

Same issue on iPhone 13 with iOS 18 and the Apple Watch with watchOS 11. The updates to iOS 18.0.1 and watchOS 11.0.1 didn't fix it unfortunately.

@fuomag9
Copy link

fuomag9 commented Nov 2, 2024

Same issue here as well, ios 18.1

@leshniak
Copy link

leshniak commented Nov 12, 2024

This seems to be related and affects "Shortcuts" process after choosing "Home Assistant" actions:

<NSXPCConnection: 0x30320ab20> connection to service with pid 4603 named com.apple.proactive.ActionPrediction.predictions: Exception caught during invocation of reply block to message 'getActionPredictionsForCandidateBundleIdentifiers:candidateActionTypes:consumerType:consumerSubType:limit:reply:'.

Exception: [<INAppIntent 0x3036809c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key action.
(
	0   CoreFoundation                      0x00000001878b47d8 1532D3D8-9B3B-3F2F-B35F-55A20DDF411B + 534488
	1   libobjc.A.dylib                     0x0000000184b872e4 objc_exception_throw + 88
	2   CoreFoundation                      0x00000001879af5dc 1532D3D8-9B3B-3F2F-B35F-55A20DDF411B + 1562076
	3   Intents                             0x0000000191762eb8 460A00EA-FB5C-30C5-875B-708066443041 + 253624
	4   Foundation                          0x00000001864f8224 6D0212CC-3B9E-32C9-BE20-72989CE3ACB8 + 537124
	5   WorkflowKit                         0x00000001cbf2ae94 30DCAD58-21A7-3C43-8660-CE32EECB6314 + 3813012
	6   WorkflowKit                         0x00000001cbf2d838 30DCAD58-21A7-3C43-8660-CE32EECB6314 + 3823672
	7   WorkflowKit                         0x00000001cbf2c858 30DCAD58-21A7-3C43-8660-CE32EECB6314 + 3819608
	8   AppPredictionClient                 0x00000001abdb6e2c ABEF0EBF-89FB-3817-8C43-024ADBA2DE54 + 142892
	9   CoreFoundation                      0x0000000187852374 1532D3D8-9B3B-3F2F-B35F-55A20DDF411B + 131956
	10  CoreFoundation                      0x00000001878513c4 1532D3D8-9B3B-3F2F-B35F-55A20DDF411B + 127940
	11  Foundation                          0x0000000186520a0c 6D0212CC-3B9E-32C9-BE20-72989CE3ACB8 + 702988
	12  Foundation                          0x000000018651f184 6D0212CC-3B9E-32C9-BE20-72989CE3ACB8 + 696708
	13  Foundation                          0x0000000186522f48 6D0212CC-3B9E-32C9-BE20-72989CE3ACB8 + 712520
	14  libxpc.dylib                        0x000000020fdfdc40 B14AD4C5-F6AC-3D40-9E79-B13A325527F0 + 130112
	15  libxpc.dylib                        0x000000020fdf0390 B14AD4C5-F6AC-3D40-9E79-B13A325527F0 + 74640
	16  libdispatch.dylib                   0x000000018f58a150 7DE7EC03-CFB7-349D-9B9E-8782B38F231D + 16720
	17  libdispatch.dylib                   0x000000018f5a7b2c 7DE7EC03-CFB7-349D-9B9E-8782B38F231D + 138028
	18  libdispatch.dylib                   0x000000018f591560 7DE7EC03-CFB7-349D-9B9E-8782B38F231D + 46432
	19  libdispatch.dylib                   0x000000018f592214 7DE7EC03-CFB7-349D-9B9E-8782B38F231D + 49684
	20  libdispatch.dylib                   0x000000018f59d258 7DE7EC03-CFB7-349D-9B9E-8782B38F231D + 94808
	21  libdispatch.dylib                   0x000000018f59caa4 7DE7EC03-CFB7-349D-9B9E-8782B38F231D + 92836
	22  libsystem_pthread.dylib             0x000000020fd97c7c _pthread_wqthread + 288
	23  libsystem_pthread.dylib             0x000000020fd94488 start_wqthread + 8
)

*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<INAppIntent 0x3036809c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key action.' *** First throw call stack: (0x1878b47cc 0x184b872e4 0x1879af5dc 0x191762eb8 0x1864f8224 0x1cbf2ae94 0x1cbf2d838 0x1cbf2c858 0x1abdb6e2c 0x187852374 0x1878513c4 0x186520a0c 0x18651f184 0x186522f48 0x20fdfdc40 0x20fdf0390 0x18f58a150 0x18f5a7b2c 0x18f591560 0x18f592214 0x18f59d258 0x18f59caa4 0x20fd97c7c 0x20fd94488)

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

8 participants