SENTINELITE / StreamDeck-Shortcuts

Run Shortcuts straight from your Elgato StreamDeck!
https://sentinelite.com/discord-shortcuts-support
GNU Affero General Public License v3.0
111 stars 7 forks source link

'Kilo-One' error in StreamDeck #2

Open mikewaterhouse opened 2 years ago

mikewaterhouse commented 2 years ago

Hi -- I just tried to use your plugin to launch Mac shortcuts on my 2021 MacBook Pro (14", M1 Max), and it's consistently giving me the "Kilo-One" error when trying to set up the shortcut. I checked the StreamDeck access, and the app has 'full access' under the accessibility menu. All other plugins on my StreamDeck seem to be working without any issues. I have restarted the app and computer multiple times, to no avail.

This is the full error: ⚠️ Error Code: 'Kilo-One' Please restart the StreamDeck Software.

Happy to provide you with any other info, if it would help you debug.

Thanks! Mike

elmarbeckmann commented 2 years ago

I have the same issue, it is not loading the shortcuts from osx. it is just giving this error (after a timeout?)

SENTINELITE commented 2 years ago

Hey @mikewaterhouse & @elmarbeckmann! Apologies for the delayed response. I've attached a document, you should check the Console.app as well as Elgato's console's logs. The document contains instructions. I'm willing to bet it's an issue with the parsing of your shortcut's names.

I've gone ahead & created two more issues, namely non-English characters being troublesome #4, mostly because of the shortcuts CLI not executing properly. #3

If you guys want to take a look at #3, that’ll be appreciated. Even advice would be welcome.

This was my first public facing project & as such, I've already learned a ton. I intend to integrate Sentry in the next update, that way the below steps won't be necessary.

Debugging steps

elmarbeckmann commented 2 years ago

hey @SENTINELITE , thanks for your reply. Here is my log!

-1642088122648.log

Timmwardion commented 2 years ago

I'm getting the 'Kilo-One' error too.

Here is my log. -1642374408694.log

Using Launch Shortcut as part of a Multi Action. Seems to error out when grabbing the list of shortcuts. Also - I'm not using any fancy characters on shortcut names.

SENTINELITE commented 2 years ago

Thanks for the logs, guys!

rikahlberg commented 2 years ago

I've been getting the same "kilo-one" error message when trying to add a shortcut to a Multi Action. Works fine as a single button, though.

SENTINELITE commented 2 years ago

Hey, @rikahlberg! I've went ahead & opened up an issue for MA-support. Please see: #5

This is a regression. I'll see if I can dive into it sometime this/next week!

mikewaterhouse commented 2 years ago

So interesting development here... after installing the update to Monterey 12.2, my Mac upon sign-in prompted whether I wanted to give StreamDeck access to control Shortcuts. I clicked OK, and no longer get that error in the StreamDeck plug-in. It works beautifully. I rebooted multiple times previously but was never prompted for that. Seems that if anyone else having this issue might be able to solve it by going to Settings --> Security & Privacy --> Privacy --> Automation.. and make sure "Shortcuts.app" is checked.

elmarbeckmann commented 2 years ago

So interesting development here... after installing the update to Monterey 12.2, my Mac upon sign-in prompted whether I wanted to give StreamDeck access to control Shortcuts. I clicked OK, and no longer get that error in the StreamDeck plug-in. It works beautifully. I rebooted multiple times previously but was never prompted for that. Seems that if anyone else having this issue might be able to solve it by going to Settings --> Security & Privacy --> Privacy --> Automation.. and make sure "Shortcuts.app" is checked.

That is a very interesting observation. This may in fact be the problem in my case. In fact, in the Automation tab I see the Stream Deck app but it does not show the Shortcut app underneath and there is no way to add it there! I may have to reinstall the whole thing, maybe that fixes it.

SENTINELITE commented 2 years ago

@mikewaterhouse @elmarbeckmann I'm seeing a few cases of this...

I'm not really sure why it's not prompting, but you can run tccutil reset AppleEvents in Terminal, which will reset all the permissions for every item under that Automation tab. Upon hitting a StreamDeck-Shortcuts key, it's prompting me to access & functions as intended.

SENTINELITE commented 2 years ago

& we've now uncovered another issue #7 thanks to, tsrats. Depending on your network environment, the app may fail to run correctly.

Please give this & the about message a shot & let me know how it goes & if it fixes anything for you all.

I also pushed v1.0.4 this morning, so I'd advise you all restart your StreamDeck Software & double check upon relaunching that the update is installed via the Store-tab.

@Timmwardion, @elmarbeckmann, @mikewaterhouse

elmarbeckmann commented 2 years ago

@mikewaterhouse @elmarbeckmann I'm seeing a few cases of this...

I'm not really sure why it's not prompting, but you can run tccutil reset AppleEvents in Terminal, which will reset all the permissions for every item under that Automation tab. Upon hitting a StreamDeck-Shortcuts key, it's prompting me to access & functions as intended.

hey there, thanks for your work. this solution is not working for me. no changes.

SENTINELITE commented 2 years ago

@mikewaterhouse @elmarbeckmann I'm seeing a few cases of this... I'm not really sure why it's not prompting, but you can run tccutil reset AppleEvents in Terminal, which will reset all the permissions for every item under that Automation tab. Upon hitting a StreamDeck-Shortcuts key, it's prompting me to access & functions as intended.

hey there, thanks for your work. this solution is not working for me. no changes.

Well that's unfortunate. Can you go ahead & try both the debugging steps in the support doc & send over both of the log files?

I feel like something isn't working here... I've also found another bug that's causing the back-end to crash. It's an out-of-index error on my part, that I'll attempt to patch, yet again... 😅

JavaScript Log Guide Console.app Log Guide

Buzzet commented 2 years ago

Same Issue here

nathanbugeja commented 2 years ago

Today I quit Stream Deck, ran tccutil reset AppleEvents in Terminal, opened Stream Deck and it prompted me to allow permissions for Shortcuts.

I was able to configure a button to launch a shortcut, however I receive the ⚠️ Error Code: 'Kilo-One' Please restart the StreamDeck Software error anytime I try to add a "launch shortcut" action within a Multi Action or Multi Action Switch.

Here's my log: -1644639657245.log

SENTINELITE commented 2 years ago

@nathanbugeja Glad that was able to prompt you for access after those steps. Not to sure how to get this prompt to show, for other users without this prompt, though…

As for the Multi-Actions not working, this is a known issue. #5 If I have some spare time after I fix the another issue, I'll try & dig into this one, too!

SENTINELITE commented 2 years ago

@Buzzet I'll be pushing an update on Monday, hopefully, that fixes the primary bug that's most commonly prompting this error. As noted above, Multi-Action Support #5 isn't working properly right now.

Can you confirm you have the correct Security & Privacy settings in your System Preferences?

CleanShot 2022-02-12 at 19 22 36@2x

elmarbeckmann commented 2 years ago

Hey @SENTINELITE , I think your update did do something, I do not get the kilo1 error anymore. But it isn't working either, probably since Shortcuts does not show up in the 'Automation' tab:

Screenshot 2022-02-17 at 13 05 57 Screenshot 2022-02-17 at 13 06 01
SENTINELITE commented 2 years ago

sigh I'm really not sure how to force this prompt. It's becoming quite frustrating. Could you try quitting the SD App, opening the console app, searching for streamdeck-shortcuts, & seeing if there's any entitlement or GTK or something similar in the logs. I'm hoping we'll see some sort of Gate Keeper Quarantine message.

You may need to try another attempt to launch the shortcut, to get the console log, though.

I've attached the following entitlement, which should be promoting with a similar message. I've since changed it, so in a future update, this will read clearer.

Screen Shot 2022-02-17 at 8 41 39 AM

Let me know how that works, @elmarbeckmann!

elmarbeckmann commented 2 years ago

@SENTINELITE yes, I'll try that.

One extra thing I noticed (which you probably already know). But with other apps. the request gets triggered 'DURING' installation, see the notification for the Spotify plugin:

Screenshot 2022-02-17 at 17 59 07
elmarbeckmann commented 2 years ago

@SENTINELITE I'm not sure if you changed anything. I have basically tried everything, uninstalling. I even reset ALL events. Well that was a pain, because now all apps lost their access to everything.

Anyway. Today, after 5 days I connected my stream deck again after I threw it in the corner, and guess what, it worked! I got the popup!

I don't have a clue what changed. but it just magically started working. Sorry I don't have a solution for you.

SENTINELITE commented 2 years ago

Glad you're on the greener side of the pasture now, @elmarbeckmann! 😏

I haven't pushed any further adjustments since. I'm still caught up as to what is going on. Although I do wonder if physically replugging in the Stream Deck with potentially restarting the software has anything to do with it... I'm lost.

Sorry for the trouble, but I'm glad it's working! Let me know if there's anything else, should you need/run into anything! 🎉

designingsean commented 2 years ago

I have been having similar issues as related above. Started with the Kilo-one error. Tried most of the resets suggested above with no luck.

Today, I decided to upgrade to Monterey 12.2.1. Before my computer restarted, I uninstalled the Shortcuts plugin from Stream Deck, but left everything else alone.

Once my computer had restarted, I went back and readied the Shortcuts plugin, at which point I was finally prompted to allow Stream Desk access to macOS shortcuts.

I did have to open the Shortcut app and run the automation that I was trying to add to the button via that interface, but afterward, the button now fires the action automatically.

It does seem a little flaky... I closed the Shortcuts app (still running in the menu bar), and the button started throwing a yellow warning icon on the button. Opening Shortcuts and rerunning the automation manually seems to have cleared it, and it is now still working without the Shortcuts app open (but again, the icon still appears in the macOS menu bar).

So if you are still struggling with getting this working, it might be worth a restart, or even an OS update, if you are due.

kevinmpowell commented 2 years ago

I've tried a restart, but am experiencing the same issue. Nothing showing up in my Automation preferences pane.

DiederikvandenB commented 2 years ago

I am seeing this error too, but only when I use it as an action in a multi-action:

image
zamartz commented 2 years ago

I had the same issue when my OS updated and then restarted. I just had to open the "shortcuts" mac app once and quit it and then this app was able to work again.

RE: ⚠️ Error Code: 'Kilo-One' Please restart the StreamDeck Software.

SENTINELITE commented 2 years ago

@DiederikvandenB The Shortcuts plugin doesn't currently work with Multi-Action's. See issue: #5

Investigating this one, again, this week. Hoping I can make more progress here.

SENTINELITE commented 2 years ago

@zamartz, Sorry for the late reply, but do you know what OS version you were on when this happened? Have you since updated?

I know there was an issue with Shortcut's background runner, that Apple should have fixed with 12.3, I believe...

zamartz commented 2 years ago

@SENTINELITE - sorry for the delay = Mac OS 12.3.1

tophee commented 1 year ago

@SENTINELITE Question regarding your earlier post:

Can you confirm you have the correct Security & Privacy settings in your System Preferences?

image

Is this still how it's supposed to be today? I don't see "StreamDeck-Shortcuts" under Automation at all. Only Streamdeck itself...

SENTINELITE commented 1 year ago

Hey, @tophee!

Firstly, is the plugin operating correctly? Are you able to "Launch" a shortcut, after customizing a key? If not, please follow the below.

Yes, that's correct. You should have Shortcuts listed under both Stream Deck & StreamDeck-Shortcuts.

Some users were able to get the prompt via updating the macOS version, so please make sure you have the latest release, which is 12.6.

You could also try uninstalling the plugin from the software via right clicking the Launch Shortcut action in the sidebar, then click uninstall. Try rebooting the computer before restarting.

Let me know how that works for you! CleanShot 2022-10-20 at 14 36 21@2x

JonathanGarro commented 1 year ago

I'm having the same issue where I get the Kilo-One error, but in scrolling through this thread, it seems my symptoms are slightly different. I was getting the error often enough that I set up Keyboard Maestro to periodically just restart the Stream Deck software throughout the day, but even the restart wouldn't fix it as I still get the yellow alert icon when trying to run them. The only thing I've found to work (after trying to reinstall Stream Deck, reinstall the plugin, rebuilding each shortcut, restarting the computer, etc.) has been to open Stream Deck, and clicking on each one of my shortcuts one by one until the info below loads. Once I manually do that, things keep working for at least a few more hours.

Thanks for putting this software out there - despite this issue I appreciate the work you've put into this!

Screen Shot 2023-02-07 at 04 17 03 PM

SENTINELITE commented 1 year ago

Hey, @JonathanGarro!

Thanks for reaching out! That's what I've experienced as well. You went above & beyond to fix this... With that being said, it's not indicative of the quality I strive for. I've just started work on version 2 of the app, that will have a Alpha/Beta period.

I believe this has to do with the way I handled saving/loading of the shortcuts that are linked to each key. I'm moving away from this going forward, as it's more of a headache to deal with. Pending that change, this issue should disappear... 😅

If you'd like to test an early version of V2, I'd advise you join the Discord!

Thanks again & have a great day!

ell0ry commented 11 months ago

I had the same issue when my OS updated and then restarted. I just had to open the "shortcuts" mac app once and quit it and then this app was able to work again.

RE: ⚠️ Error Code: 'Kilo-One' Please restart the StreamDeck Software.

Hey there!

I'm having this issue as well. I was able to get the plugin working by following the steps above!

SENTINELITE commented 11 months ago

Thanks for sharing you experience, @th3rring!

It's interesting that it's in some cases requiring the Shortcuts.app to be opened. Not sure why...

Out of curiosity, what macOS Version are you on?

ell0ry commented 11 months ago

I'm using macOS 14.1, so the latest offering from Apple.

I've also since noticed that launching the Stream Deck Configuration and clicking through the shortcut actions fixes the issue.

SENTINELITE commented 11 months ago

@th3rring, This is/was a known issue with how I stored the key's data. This has been overhauled in V2 of the plugin, which is in testing, via the Discord!

Still no exact data on the release, (as I have a lot more features to introduce), but it's coming along!

alexkli commented 7 months ago

FWIW I get this same error but not always. My shortcut button is working for some time, but after some time (days in between, where I also disconnect and reconnect the Stream Deck) the button no longer does anything, and if I look at it in the Stream Deck app I see the "Kilo One" error. Restarting the Stream Deck software fixes it, until the problem appears again.

Versions:

SENTINELITE commented 7 months ago

Hey, @alexkli!

You wouldn't see any changes under 6.5.x, assuming Elgato didn't break anything! (totally joking) 😂

Anyways, If you'd like to give V2.0 a try, you're more than welcome to join the Discord & do that, otherwise I've just gotten a new StreamDeck & will be testing the plugin across 3x different SD types & 3x OS versions, going forward. I'm trying my best to break & patch bugs (in version 2), leading up to it's release.

Sorry for the trouble in the mean time, I just don't want to get people situated on the new release prematurely & rip the rug underneath them (causing lost SD Key data).