sblantipodi / firefly_luciferin

Very fast Java screen capture PC software designed for the Glow Worm Luciferin firmware, the combination of these software create the perfect Bias Lighting and Ambient Light system for PC.
GNU General Public License v3.0
331 stars 30 forks source link

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

Closed matmoeh closed 1 month ago

matmoeh commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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

matmoeh commented 2 months ago

Wow! This was fast. Thank you! :)