Coder Social home page Coder Social logo

Comments (23)

ishemes avatar ishemes commented on July 20, 2024 3

Thank you for this plugin! Unfortunately I also kept getting this error. In the end I decided to right click the shortcut in the shortcuts.app. Then choose 'Add to Dock'. This creates an application in the /Users//Applications/ folder. I then choose the Launch action from Streamdeck to launch this application. And it will launch the shortcut for me. I have been using the shortcuts daily like this for more than a week without any problems.

I'm a software developer, so if you need somebody to help you debug this, please let me know. Otherwise, you might want to change the plugin so it will create these apps for the end user and launch it from there. Good luck! And thanks again for your work!

from streamdeck-shortcuts.

mattahorton avatar mattahorton commented on July 20, 2024 2

It definitely happens to me after wake from sleep. I rarely reboot. Basically when XCode forces me to.

I have not moved a key, switched profiles, restored from a backup, or changed models. Got my OG Stream Deck here. The only thing I have done is moved it from my PC to my Mac several months ago.

Also hey @joshpuetz 😅. Fancy meeting you here.

from streamdeck-shortcuts.

Kobold02 avatar Kobold02 commented on July 20, 2024 1

Hi, ok, made it to discord via my Mac, did not work with the iPad. But, I am absolutely new on discord, finding your support site, but do not find the place where I can download the latest plugin version. If all this does not work, I can send you my email, so you could send me plugin via mail?

from streamdeck-shortcuts.

joshpuetz avatar joshpuetz commented on July 20, 2024

+1 this is happening to me as well, but only the first time I want to run each shortcut after restarting my computer

from streamdeck-shortcuts.

SENTINELITE avatar SENTINELITE commented on July 20, 2024

Hey, @mattahorton & @joshpuetz!

Looking to debug & patch this one up over the weekend, if you're able to help me find the issue...

I've had a few reports of the plugin having trouble after waking up from a sleep. After "selecting" the shortcut via the SD interface, what you're experiencing, can you confirm it's after waking up from a nap? I'm sadly not able to reproduce this sketchy bug on my end.

Also, have either of you moved the key in the Stream Deck software? Cop/Pasted it? Switched profiles, restored from a backup, or went from one model (Mini, Mobile, XL, Mk ll, Footpedal, etc) to another?

@mattahorton This is definitely a bug. Thanks for bringing this to my attention & sorry for the trouble in the meantime!

@joshpuetz, because you seem to have a surefire way to "trigger" this breakdown, can you give the computer a restart & immediately follow these instructions, to log the error, & press the key, to get the ⚠️ sign on the SD key? You may need to set the SD software to not be a login-option, temporarily.

Some useful info that could help: CPU/Ram/GPU/SSD/macOS Version.

from streamdeck-shortcuts.

mattahorton avatar mattahorton commented on July 20, 2024

Oh also here's the machine specs (1TB storage btw):
Frame 1

from streamdeck-shortcuts.

mattahorton avatar mattahorton commented on July 20, 2024

Triple post, I'm sorry. I just verified that it works fresh after reboot.

from streamdeck-shortcuts.

SENTINELITE avatar SENTINELITE commented on July 20, 2024

Glad it's working now, @mattahorton! If you have more trouble, feel free to let me know. I'll be leaving this issue open meanwhile.

If this crops up again, can you do me a favor & copy the file keys.json listed below & reboot? I feel like the file's getting "corrupted", or I may be overwriting it somehow...

~/Library/Application Support/com.elgato.StreamDeck/Plugins/com.sentinelite.streamdeckshortcuts.sdPlugin/keys.json

I did seem to run into this on my end, but it's super rare, as such it'll be a fun one to hunt down! 😅

from streamdeck-shortcuts.

mattahorton avatar mattahorton commented on July 20, 2024

Absolutely. I am sure it will crop up again. Didn't this morning!

from streamdeck-shortcuts.

joshpuetz avatar joshpuetz commented on July 20, 2024

Ok, here's the specs of the machine I'm on:
CleanShot 2022-03-23 at 09 00 23@2x

I have a Stream Deck mini, and it's my first time using it. I haven't backed up or restored a profile: this is my first install!

Here's the log output right after reboot from a shortcut button that isn't triggering (it shows the 'yellow error' icon):

default	09:09:39.544576-0500	StreamDeck-Shortcuts	DEBUG: keyDown() was pressed down!
default	09:09:39.544831-0500	StreamDeck-Shortcuts	DEBUG: keyDown() finshed being running!
default	09:09:39.544940-0500	StreamDeck-Shortcuts	⚙️ Trying to run shortcut named 'Sleep Mac'...
default	09:09:39.545042-0500	StreamDeck-Shortcuts	trying with event: keyDown, data: 372 bytes
default	09:09:39.632631-0500	StreamDeck-Shortcuts	trying with event: keyUp, data: 370 bytes

Interestingly when this happens, I checked ~/Library/Application Support/com.elgato.StreamDeck/Plugins/com.sentinelite.streamdeckshortcuts.sdPlugin/keys.json and it had a week old date stamp and didn't have my latest shortcuts in it:

{
  "F16A8CEE471B4DFAB98FB44B7ABBA862" : "Set Evening",
  "DE449A2489674E8D8A5B3AC151DF87A9" : "Start Focus",
  "E37EB81A9F8749D4E5C144225EBE9521" : "Set Evening",
  "4FADBCF3F79618122773C57CBB57CE7B" : "Pause Focus"
}

After loading up the StreamDeck configuratator and letting the shortcut list load on for the button in question, my keys.json file was updated and the shortcut works:

{
  "608332E96B7B994FA5AD314002A825AB" : "Set Bedroom 70",
  "E37EB81A9F8749D4E5C144225EBE9521" : "Set Evening",
  "DE449A2489674E8D8A5B3AC151DF87A9" : "Start Focus",
  "4FADBCF3F79618122773C57CBB57CE7B" : "Pause Focus",
  "F16A8CEE471B4DFAB98FB44B7ABBA862" : "Set Evening",
  "0DD1AED5EA91674BEDDB1D45AF904642" : "Sleep Mac"
}

Interestingly this DID NOT happen this morning when I rebooted, so it's frustratingly intermittent 🤔

from streamdeck-shortcuts.

mattahorton avatar mattahorton commented on July 20, 2024

Came back to my mac this morning after having the flu for about 4 days. It happened again, and then I got the Kilo One error and all of my stream deck routines have been erased. They're just empty buttons with names that do nothing.

from streamdeck-shortcuts.

takashiyoshida avatar takashiyoshida commented on July 20, 2024

I have the same "yellow error" icon shows up quite often, especially after rebooting my MacBook Pro. Upon checking the keys.json file, the file was empty until:

  1. I opened Stream Deck application
  2. Go to the relevant profile and click on the affected key

After step 2, the keys.json became populated (though only for the key I clicked on). I need to repeat step 2 as many times as I have shortcut keys.

from streamdeck-shortcuts.

SENTINELITE avatar SENTINELITE commented on July 20, 2024

Hey, @takashiyoshida!

Thanks for providing the feedback! I'll try to get another look into this.

It's super sporadic. In my workflow, I restart my computer daily, & I rarely get this to crop up.

You did mention going to the relevant "profile", can you go ahead & put some Shortcut Keys on your primary profile &/or change your default profile to the one with Shortcut Keys, & see how that behaves after a reboot?

I wonder if that's where the issue is coming from.

Regardless, I appreciate the input & will dedicate some time for this!

from streamdeck-shortcuts.

takashiyoshida avatar takashiyoshida commented on July 20, 2024

I'll give it a try after work. I admit that rebooting does not necessarily trigger this issue. In some cases, the content of keys.json persists even after rebooting so it's not as easy to reproduce.

from streamdeck-shortcuts.

SENTINELITE avatar SENTINELITE commented on July 20, 2024

No idea how I missed your comment, @ishemes. I apologize for the delay!

On a high level, the keys are saved to a JSON file, then read & compared at runtime. For some reason some of the keys are getting overwritten/disappearing...

I didn't dig into this, but now that I think about it, I believe when the key appears, it may be overwriting it's "old" key/value pair, which could be rendered as blank...

Anyway's this is a known issue. I'm not exactly sure what the cause is. I get it sporadically, too.

I think it's best to drop the external JSON file in a future update (V2.0?), as I don't think we need it.

If you want to dig around & see if you can figure it out, I'm all ears! 😊

from streamdeck-shortcuts.

ddetton avatar ddetton commented on July 20, 2024

Thank you for this plugin! Unfortunately I also kept getting this error. In the end I decided to right click the shortcut in the shortcuts.app. Then choose 'Add to Dock'. This creates an application in the /Users//Applications/ folder. I then choose the Launch action from Streamdeck to launch this application. And it will launch the shortcut for me. I have been using the shortcuts daily like this for more than a week without any problems.

I'm a software developer, so if you need somebody to help you debug this, please let me know. Otherwise, you might want to change the plugin so it will create these apps for the end user and launch it from there. Good luck! And thanks again for your work!

Thank you @ishemes for coming up with this workaround. So far it has worked 100% of the time. Much appreciated!

from streamdeck-shortcuts.

SENTINELITE avatar SENTINELITE commented on July 20, 2024

Figure I'd post a little update here.

I've changed the back-end around. This issue should no longer be happening, in version 2. (Which is in early access, via Discord)

That being said, there may still be trouble with the plugin(s) failing to work, when waking up from a computer sleep, but more feedback/data points will be needed, to confirm this!

from streamdeck-shortcuts.

ddetton avatar ddetton commented on July 20, 2024

I just loaded v2 B10 and it seems to be working fine. I have not done extensive testing but I hooked it up to about 12 shortcuts and it works fine. I tried v1 a long time ago and had issues but this one seems to work much better. Not sure what the AI stuff but it does not seem to get in the way of running the shortcut. I'll let you know if I find anything. Thanks!!

from streamdeck-shortcuts.

SENTINELITE avatar SENTINELITE commented on July 20, 2024

Hey, @ddetton!

There's not really any A.I. stuff here. I'm using OpenAI's Voices (an extremely high-quality Text to Speech model). This is more for accessibility reasons & Apple's lack of Siri API support. Of course there's an offline, system default option, so you're never forced to share data if you don't want to! (Nothing is stored/collected. OpenAI doesn't use the data for training, etc.)

The last remaining "big" issue is #19, which still happens time to time, but I hope to root this one out soon enough!

from streamdeck-shortcuts.

PhilipHamilton avatar PhilipHamilton commented on July 20, 2024

I have this problem too.
But I don't get yellow warnings.
Pressing the stream deck button sometimes works and other times it has no effect.
I use profiles on the stream deck to change button collections and a copy of a button in one profile may not work in another profile (even though it is a direct copy).
What I have done as a work around is one step added to the solution suggested by ishemes commented on Nov 8, 2022
After I put the OS shortcut in the dock I find it in applications and move the .app to a folder on the mac. Then I remove it from the dock and launch it from the new location, with the rocket command "Open" native to stream deck (system group).
This works 100% of the time.
The problem seems to be with how the plugin "Launch Shortcut" button, interacts with the stream deck and the rest of the system.
Love the extra level of control shortcuts and "Zoom Cuts" gives!

from streamdeck-shortcuts.

SENTINELITE avatar SENTINELITE commented on July 20, 2024

Hey, @PhilipHamilton!

Copies of StreamDeck Key, only retain their parents settings, at the time of the copy. As such overtime, their states will diverge.

All that being said, I'd love to have you test out V2 of the plugin, via a Discord role. Feel free to ping me there, & I can provide more info! The core issue your experiencing has been fixed, in this version!

(Your setup seems kinda complex? So you seem like the perfect person to help break things)

from streamdeck-shortcuts.

Kobold02 avatar Kobold02 commented on July 20, 2024

Hi, got the same problems, and also using the shortcut/dock/app solution again as well (been using this before I found shourtcut plugin, .... but the the problems showed up, so I went back to ...) , and would like to try new plugin version. But the discord link does not work for me. Saying "Safari can not open this site cause the adress is not valid." Any other ways to get the updated plugin? GitHub? Cheers!

from streamdeck-shortcuts.

SENTINELITE avatar SENTINELITE commented on July 20, 2024

Hey, @Kobold02! Can you give this or the Discord link here a try?

Let me know how that works out!

from streamdeck-shortcuts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.