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

[Bug]: Firefly Luciferin infinitely starts itself after Windows standby #228

Closed
matmoeh opened this issue Sep 7, 2024 · 4 comments · Fixed by #225
Closed

[Bug]: Firefly Luciferin infinitely starts itself after Windows standby #228

matmoeh opened this issue Sep 7, 2024 · 4 comments · Fixed by #225
Assignees
Labels
bug Something isn't working

Comments

@matmoeh
Copy link

matmoeh commented Sep 7, 2024

Firefly Luciferin version

2.16.4

Glow Worm Luciferin version

5.15.4

Firmware type

FULL

What is the stream method?

WiFi Stream

Fiefly Luciferin config file

---
mqttStream: true
wifiEnable: true
mqttEnable: true
serialPort: "Monitor"
staticGlowWormIp: "-"
baudRate: "115200"
extendedLog: "INFO"
audioChannels: "2 channels"
audioDevice: "Default audio output (WASAPI)"
audioLoopbackGain: 0.0
autoDetectBlackBars: true
bottomLeftLed: 20
bottomRightLed: 20
bottomRowLed: 40
brightness: 255
brightnessLimiter: 1.0
captureMethod: "DDUPL"
checkForUpdates: true
colorChooser: "230,128,77,255"
colorMode: 2
configVersion: "2.15.4"
defaultLedMatrix: "FullScreen"
desiredFramerate: "15"
effect: "Solid"
enableLDR: false
eyeCare: false
frameInsertion: "Smoothing Lvl 4"
gamma: 2.2
gapTypeSide: "0%"
gapTypeTopBottom: "8%"
grabberAreaTopBottom: "8%"
grabberSide: "8%"
groupBy: 1
language: "Deutsch"
ldrInterval: 0
ldrMin: 0
ldrTurnOff: false
ledStartOffset: 0
leftLed: 20
monitorNumber: 0
mqttDiscoveryTopic: "homeassistant"
mqttPwd: ""
mqttServer: "tcp://192.168.1.5:1883"
mqttTopic: "glowwormluciferin"
mqttUsername: "luciferin"
multiMonitor: 1
multiScreenSingleDevice: false
nightModeBrightness: "60%"
nightModeFrom: "22:00"
nightModeTo: "08:00"
numberOfCPUThreads: 1
orientation: "Clockwise"
osScaling: 150
powerSaving: "Disabled"
rightLed: 20
sampleRate: 0
screenResX: 3840
screenResY: 2160
splitBottomMargin: "0%"
splitBottomRow: true
startWithSystem: true
streamType: "UDP stream"
syncCheck: true
theme: "Classic theme"
threadPriority: "HIGH"
timeout: 100
toggleLed: true
topLed: 38
whiteTemperature: 65
satellites: {}
algo: "Average color"

Relevant log output

[Instance #1] 2024-09-07 21:18:49,743 ERROR o.d.m.NetworkManager [MQTT Snd: FireflyLuciferin_2137836906] Connection Lost
[Instance #1] 2024-09-07 21:18:50,581 ERROR o.d.m.NetworkManager [MQTT Rec: FireflyLuciferin_1015002402] Connection Lost
[Instance #1] 2024-09-07 21:18:53,971 INFO o.d.m.NetworkManager [pool-13-thread-1] Long disconnection occurred
[Instance #1] 2024-09-07 21:18:53,983 INFO o.d.m.NetworkManager [pool-14-thread-1] Long disconnection occurred
[Instance #1] 2024-09-07 21:19:02,477 INFO o.d.NativeExecutor [pool-13-thread-1] Installation path=/C:/Users/moell/AppData/Local/Firefly%20Luciferin/app/FireflyLuciferin-jar-with-dependencies.jar
[Instance #1] 2024-09-07 21:19:02,477 INFO o.d.NativeExecutor [pool-14-thread-1] Installation path=/C:/Users/moell/AppData/Local/Firefly%20Luciferin/app/FireflyLuciferin-jar-with-dependencies.jar
[Instance #1] 2024-09-07 21:19:02,477 INFO o.d.NativeExecutor [pool-14-thread-1] Installation path from restart=C:\Users\moell\AppData\Local\Firefly Luciferin\Firefly Luciferin.exe
[Instance #1] 2024-09-07 21:19:02,477 INFO o.d.NativeExecutor [pool-13-thread-1] Installation path from restart=C:\Users\moell\AppData\Local\Firefly Luciferin\Firefly Luciferin.exe
[Instance #1] 2024-09-07 21:19:02,477 INFO o.d.NativeExecutor [pool-14-thread-1] Installation path=/C:/Users/moell/AppData/Local/Firefly%20Luciferin/app/FireflyLuciferin-jar-with-dependencies.jar
[Instance #1] 2024-09-07 21:19:02,477 INFO o.d.NativeExecutor [pool-13-thread-1] Installation path=/C:/Users/moell/AppData/Local/Firefly%20Luciferin/app/FireflyLuciferin-jar-with-dependencies.jar
[Instance #1] 2024-09-07 21:18:59,429 INFO o.d.m.NetworkManager [pool-15-thread-1] Long disconnection occurred
[Instance #1] 2024-09-07 21:19:02,485 INFO o.d.NativeExecutor [pool-15-thread-1] Installation path=/C:/Users/moell/AppData/Local/Firefly%20Luciferin/app/FireflyLuciferin-jar-with-dependencies.jar
[Instance #1] 2024-09-07 21:19:02,485 INFO o.d.NativeExecutor [pool-15-thread-1] Installation path from restart=C:\Users\moell\AppData\Local\Firefly Luciferin\Firefly Luciferin.exe
[Instance #1] 2024-09-07 21:19:02,486 INFO o.d.NativeExecutor [pool-15-thread-1] Installation path=/C:/Users/moell/AppData/Local/Firefly%20Luciferin/app/FireflyLuciferin-jar-with-dependencies.jar
[Instance #1] 2024-09-07 21:19:02,493 INFO o.d.m.NetworkManager [pool-15-thread-1] Long disconnection occurred


[Instance #1] 2024-09-07 21:19:24,331 INFO o.d.FireflyLuciferin [main] Starting instance #: 1
[Instance #1] 2024-09-07 21:19:24,500 INFO o.d.FireflyLuciferin [main] Starting instance #: 1
[Instance #1] 2024-09-07 21:19:24,773 INFO o.d.FireflyLuciferin [main] Starting instance #: 1
[Instance #1] 2024-09-07 21:19:24,879 INFO o.d.FireflyLuciferin [main] Starting instance #: 1
[Instance #1] 2024-09-07 21:19:24,947 INFO o.d.FireflyLuciferin [main] Starting instance #: 1
[Instance #1] 2024-09-07 21:19:24,992 INFO o.d.FireflyLuciferin [main] Starting instance #: 1
[Instance #1] 2024-09-07 21:19:25,143 INFO o.d.FireflyLuciferin [main] Starting instance #: 1
[Instance #1] 2024-09-07 21:19:25,446 INFO o.d.FireflyLuciferin [main] Starting instance #: 1



[Instance #1] 2024-09-07 21:19:40,947 INFO o.d.FireflyLuciferin [JavaFX Application Thread] ** Log level -> INFO **
[Instance #1] 2024-09-07 21:19:41,392 INFO o.d.NativeExecutor [pool-2-thread-1] Changing thread priority to -> HIGH
[Instance #1] 2024-09-07 21:19:41,398 INFO o.d.FireflyLuciferin [main] Starting instance #: 1
[Instance #1] 2024-09-07 21:19:45,450 INFO o.d.NativeExecutor [pool-2-thread-1] Changing thread priority to -> HIGH
[Instance #1] 2024-09-07 21:19:46,733 INFO o.d.FireflyLuciferin [JavaFX Application Thread] ** Log level -> INFO **
[Instance #1] 2024-09-07 21:19:46,943 INFO o.d.NativeExecutor [pool-2-thread-1] Changing thread priority to -> HIGH
[Instance #1] 2024-09-07 21:19:47,098 INFO o.d.NativeExecutor [pool-2-thread-1] Changing thread priority to -> HIGH
[Instance #1] 2024-09-07 21:19:47,492 INFO o.d.NativeExecutor [pool-2-thread-1] Changing thread priority to -> HIGH
[Instance #1] 2024-09-07 21:19:47,591 INFO o.d.FireflyLuciferin [JavaFX Application Thread] ** Log level -> INFO **
[Instance #1] 2024-09-07 21:19:47,936 INFO o.d.FireflyLuciferin [JavaFX Application Thread] ** Log level -> INFO **
[Instance #1] 2024-09-07 21:19:47,978 INFO o.d.FireflyLuciferin [JavaFX Application Thread] ** Log level -> INFO **
[Instance #1] 2024-09-07 21:19:48,170 INFO o.d.NativeExecutor [pool-2-thread-1] Changing thread priority to -> HIGH
[Instance #1] 2024-09-07 21:19:49,937 INFO o.d.NativeExecutor [pool-2-thread-1] Changing thread priority to -> HIGH
[Instance #1] 2024-09-07 21:19:52,681 INFO o.d.FireflyLuciferin [JavaFX Application Thread] ** Log level -> INFO **

How to reproduce

Sometimes, after starting my PC an windows leaving standby mode, Firefly Luciferin begins to start itself infinitely until Windows becomes unresponsive.

image

@matmoeh matmoeh added the bug Something isn't working label Sep 7, 2024
@matmoeh
Copy link
Author

matmoeh commented Sep 7, 2024

Sometimes i'm fast enough to start the windows shortcut on my desktop, witch i added:

C:\Windows\System32\taskkill.exe /T /F /IM "Firefly Luciferin.exe"

@sblantipodi
Copy link
Owner

sblantipodi commented Sep 7, 2024

Hi @matmoeh, this is a known issue because there are other users complaining about it.
Can you try to explain me how to reproduce it?
Every detail can be useful.

I'm not able to reproduce it and for this reason it's difficult to fix.

does this happen when your PC wake up from sleep?
do you hybernate it?
is the MQTT server up and running while your PC is sleeping?
and is it running when the PC wake up?

@sblantipodi
Copy link
Owner

ok I was able to reproduce it. fixing it the next release, thanks for reporting this issue @matmoeh 👍

sblantipodi added a commit that referenced this issue Sep 7, 2024
@sblantipodi sblantipodi linked a pull request Sep 7, 2024 that will close this issue
@matmoeh
Copy link
Author

matmoeh commented Sep 8, 2024

Wow! This was fast. Thank you! :)

sblantipodi added a commit to sblantipodi/glow_worm_luciferin that referenced this issue Sep 21, 2024
- ***Breaking changes***: requires `Glow Worm Luciferin` firmware (v2.17.6).   
- **Luciferin now has specific support for [AVX CPU extensions](https://github.com/sblantipodi/firefly_luciferin/wiki/Very-fast-capture#cpu-acceleration-using-avx-simd-extensions).**  
AMD and Intel are investing a lot of resources in improving their CPU extensions. Next-generation CPUs contain various optimizations related to `Advanced Vector Extensions (AVX)` which are `Single Instruction, Multiple Data (SIMD)` extensions to the x86 instruction set architecture for microprocessors.
AVX 512 and AVX 256 offer significant performance improvements and resource optimization benefits.
- USB/Serial communication has been redesigned: 
  - Improved USB device recognition under Linux.
  - Serial devices may cause an infinite loop due to buggy COM port enumeration. Fixed.
- [Tray icon](https://github.com/sblantipodi/firefly_luciferin/wiki/Tray-icon-shortcuts) has been improved with new shortcuts.
- Added a workaround for an existing Windows issue that causes tray menu to stay behind the taskbar. [Closes #229](sblantipodi/firefly_luciferin#229).
- Fixed an issue that prevented Firefly Luciferin from detecting Glow Worm Luciferin devices when the computer was connected to a VPN.
- Firefly Luciferin infinitely starts itself after PC standby / wake up. [Closes #228](sblantipodi/firefly_luciferin#228).
- There are microcontrollers that has built/in LED. This LED can stay on and be annoying, it now follows the [device reset](https://github.com/sblantipodi/firefly_luciferin/wiki/Device-reset) behaviour.
- Fixed an issue that prevented Linux version to show the UI when [debug level](https://github.com/sblantipodi/firefly_luciferin/wiki/Debug) is set to DEBUG.
- Fixed an issue that prevented Hyprland to show the UI.
- Fixed an issue that caused incorrect color reproduction on non-standard screen resolutions.
- Fixed an issue that prevented the Glow Worm Luciferin Light Firmware from properly turning off the LED strip when closing Firefly Luciferin.
- Java/JavaFX 23, libs update, code refactor to avoid using deprecated methods, CI/CD pipeline improvements.
- [Arduino Bootstrapper](https://github.com/sblantipodi/arduino_bootstrapper/releases) update (v.1.18.2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants