emericg / WatchFlower

A plant monitoring application that reads and plots data from compatible Bluetooth sensors and thermometers like Xiaomi 'Flower Care' or Parrot 'Flower Power'
https://emeric.io/WatchFlower
GNU General Public License v3.0
192 stars 27 forks source link

Keeps crashing on windows 10 #45

Closed cyberb0b closed 2 years ago

cyberb0b commented 3 years ago

Im sorry to report It error here with event 1000 application error. Its a clean 1.0. Added all my devices (50) but after a few moments the application closes and there is an error 1000 in my event viewer.

–––

Log Name: Application Source: Application Error Date: 5/9/2021 19:20:10 Event ID: 1000 Task Category: (100) Level: Error User: N/A Computer: WINDOWS10-VR Description: Faulting application name: WatchFlower.exe, version: 1.0.0.0, time stamp: 0x606743ed Faulting module name: Qt5Bluetooth.dll, version: 5.15.2.0, time stamp: 0x5fa51110 Exception code: 0xc0000005 Fault offset: 0x0000000000043b6a Faulting process id: 0x4cec Faulting application start time: 0x01d744f77e064cc3 Faulting application path: C:*\WatchFlower-1.0-win64\WatchFlower.exe Faulting module path: C:*\WatchFlower-1.0-win64\Qt5Bluetooth.dll Report Id: 5d3ea902-15c1-46b1-85b7-39843d93933a Faulting package full name: Faulting package-relative application ID: Event Xml:

1000 0 2 100 0 0x80000000000000 398730 Application WatchFlower.exe 1.0.0.0 606743ed Qt5Bluetooth.dll 5.15.2.0 5fa51110 c0000005 0000000000043b6a 4cec 01d744f77e064cc3 C:\***\WatchFlower-1.0-win64\WatchFlower.exe C:\***\WatchFlower-1.0-win64\Qt5Bluetooth.dll 5d3ea902-15c1-46b1-85b7-39843d93933a
h3rm commented 3 years ago

hi! i have the same problem here (win 10 home 20H2 with newest system + driver updates) :/ Qt5Bluetooth.dll error in the windows event viewer and the app crashes all 2-3 hours.. i thought the problem is my device (so thx for your ticket!), but i already did a fresh windows 10 pro install and also installed wf 1.0 afterwards -> still the same problem... i couldn't find any information about "Qt5Bluetooth.dll" but already tried to give all windows users/admin&user-account all rights for this file... this didn't solved the problem :/

fyi: i use watchflower for windows for a few months now, and the problem persists since v0.15... i solved this issue by installing VNC-server on the device and restart the app every day when i remote check the sensors and because of the reason (offtopic content following), that i have to manually "search for bluetooth devices" (in windows) and while searching click "refresh data" in the app (otherwise ~50-100% sensors can't be refreshed) to get actual data for all sensors, i didn't wrote a ticket by myself and thought it is also a good everyday-workflow and thought posting 2 problems will not lead to the solution or my device is the problem... :) the problem with the "manuel search for devices" in windows was double checked with 3 different BT-devices/sticks (on the android app/device next to the windows-machine it works without problems - just sometimes problems with one or two of the sensors that are over ~8m away)

https://i.imgur.com/hd9reid.png https://i.imgur.com/IRnllkV.png https://i.imgur.com/w3PwbOn.png

I also already deactivated all energy saving options in windows (from the usb-hub driver over the BT 5.0 stick driver to all windows settings + bios options).. maybe this information helps to fix the Qt5Bluetooth.dll problem

last edit :D 👍 it seems that wf 1.0 has qt 5.15 onboard. maybe an update to 6.1. works? :) https://download.qt.io/official_releases/qt/ source: https://dslrdashboard.info/phpBB3/viewtopic.php?t=3399

emericg commented 3 years ago

Thanks for the detailed report guys. So far I have never be able to reproduce that crash, but many people complained so I'll have another look at this soon.

last edit :D  it seems that wf 1.0 has qt 5.15 onboard. maybe an update to 6.1. works? :)

Qt 6 does not have any bluetooth support at all, so probably not ^^

seeyouchiu commented 3 years ago

I have another issue with the Bluetooth connection between Wins 10 PC. Any guys encounter PC can view parrot pot on the Bluetooth list but can't connect successfully. Only my Ipad can success so far

janilahti commented 3 years ago

This issue was originally reported for WatchFlower version 1.0, but just I found the software, already on version 2.0. I have a similar problem with Windows 10. WatchFlower may start nicely and work for an hour (until next BLE update), or may hang right at the start so that I need to restart it a few times until it just starts to work again. For Bluetooth I'm using whatever Lenovo put inside a Thinkpad and default drivers. Two MiFlora sticks with firmware 3.2.4.

h3rm commented 3 years ago

@janilahti i posted the problem before, but it persists in v2.0 too... can you maybe check if you use a realtek bluetooth driver on your thinkpad? the past few weeks i read a few times that win 10 realtek-driver can cause problems with the automatic installed microsoft-provided realtek-driver... but i wasn't able to find a solution.. i tried a) the realtek bt onboard driver on my hp 250 g4 notebook and three different BT-usb-sticks 4.0 and 5.0... the only thing i found out: all of the bought usb-dongles have realtek chips inside;)

  1. i tried the original hp 250 g4 realtek driver from hp directly, also checked this one with driverbooster -> still application crash
  2. i tried to update the hp 250 g4 driver with "driverbooster" (i know it's not the best software/manufacturer, but it does what it shall do). the tool detects the correct chip and installs the newester driver -> still crash
  3. i tried on all 3 BT-USB-sticks at first: 3.1 the driver provided by the sellers -> still crash 3.2. on all the sticks the same thing with driverbooster-driverupdate (before this -> clean-driver-deinstallation + restart) -> still crash
  4. i also tried to check the hardware-id of each stick and tried to find an "official" driver (eg. USB\VID_0BDA&PID_8771&REV_0200 ) -> searched in on google to find out the chip MPN/model -> should be RTL8671B -> no driver from realtek directly: https://www.realtek.com/en/component/zoo/advanced-search/57475?Itemid=276

@emericg wrote that there are more users with the same problem with qt 5.15 and bluetooth.. but i am too stupid to understand and find something in jira (https://bugreports.qt.io/browse/QTBUG-94001?jql=text%20~%20bluetooth%20ORDER%20BY%20created%20DESC) and don't know anything more about "QT" :)

i still hope @emericg finds a solution and maybe he can tell us what causes/caused the problem :)

edit: in v2 i get tow different errors in the event viewer but maybe the reason for crash #1 is https://i.imgur.com/5xr2ysp.png

https://i.imgur.com/y1nmXVd.png https://i.imgur.com/c949ujC.png

Name der fehlerhaften Anwendung: WatchFlower.exe, Version: 2.0.0.0, Zeitstempel: 0x60cb23c7 Name des fehlerhaften Moduls: ntdll.dll, Version: 10.0.19041.1023, Zeitstempel: 0x7977b9de Ausnahmecode: 0xc0000374 Fehleroffset: 0x00000000000ff199 ID des fehlerhaften Prozesses: 0x2220 Startzeit der fehlerhaften Anwendung: 0x01d772b20e019fb5 Pfad der fehlerhaften Anwendung: D:\WatchFlower-2.0-win64\WatchFlower.exe Pfad des fehlerhaften Moduls: C:\Windows\SYSTEM32\ntdll.dll Berichtskennung: 70e5aa98-bcc5-4185-af22-20111ac66821 Vollständiger Name des fehlerhaften Pakets: Anwendungs-ID, die relativ zum fehlerhaften Paket ist:

https://i.imgur.com/y1nmXVd.png https://i.imgur.com/c949ujC.png

Name der fehlerhaften Anwendung: WatchFlower.exe, Version: 2.0.0.0, Zeitstempel: 0x60cb23c7 Name des fehlerhaften Moduls: Qt5Bluetooth.dll, Version: 5.15.2.0, Zeitstempel: 0x5fa51110 Ausnahmecode: 0xc0000005 Fehleroffset: 0x0000000000043b6a ID des fehlerhaften Prozesses: 0x408 Startzeit der fehlerhaften Anwendung: 0x01d7723be13727a4 Pfad der fehlerhaften Anwendung: D:\WatchFlower-2.0-win64\WatchFlower.exe Pfad des fehlerhaften Moduls: D:\WatchFlower-2.0-win64\Qt5Bluetooth.dll Berichtskennung: 9315fd9a-88f4-48d0-a29b-d5eec2643e8c Vollständiger Name des fehlerhaften Pakets: Anwendungs-ID, die relativ zum fehlerhaften Paket ist:

h3rm commented 3 years ago

@emericg https://wiki.qt.io/New_Features_in_Qt_6.2 juhu :) "The Qt Bluetooth module has been ported to Qt 6 and the CMake build system".. will this help?

[edit] today i installed ubuntu (multiboot) and now the app works fine :)

ZeeHammar commented 2 years ago

I am having the same issue with WatchFlower 3.1 constantly crashing. I am showing the same Qt5Bluetooth.dll error in the windows application event log reported by the OP (included below). I am not familiar with the QT framework, but doing some searching I think there are others who have reported similar issues with the bluetooth implementation and referenced potential workarounds. I could be way off the mark though.

Log Name: Application Source: Application Error Date: 5/4/2022 3:25:22 PM Event ID: 1000 Task Category: (100) Level: Error Keywords: Classic Description: Faulting application name: WatchFlower.exe, version: 3.1.0.0, time stamp: 0x618173ad Faulting module name: Qt5Bluetooth.dll, version: 5.15.2.0, time stamp: 0x5fa51110 Exception code: 0xc0000005 Fault offset: 0x0000000000043b6a Faulting process id: 0x43dc Faulting application start time: 0x01d85fecae95a223 Faulting application path: C:\Program Files\WatchFlower\WatchFlower.exe Faulting module path: C:\Program Files\WatchFlower\Qt5Bluetooth.dll Report Id: a74e9a71-4451-41ec-8e57-57be5776c0ad Faulting package full name: Faulting package-relative application ID:

ApplicationError.txt

emericg commented 2 years ago

Can you guys give the 4.0 version a go?

You can download it from the CI builders: https://github.com/emericg/WatchFlower/actions/runs/2456127012

ZeeHammar commented 2 years ago

Haven't had any issues with crashing on version 4.0 yet. I will leave it running for a few days to verify.

ZeeHammar commented 2 years ago

Issue still seems to be present, but it occurs with much less frequency. I can't seem to make it 24 hours without a crash, but before it was crashing every other sync attempt.

Error Details:

Faulting application name: WatchFlower.exe, version: 4.0.0.0, time stamp: 0x629f8403 Faulting module name: Qt6Bluetooth.dll, version: 6.3.0.0, time stamp: 0x624cbbd4 Exception code: 0xc0000005 Fault offset: 0x000000000005c795 Faulting process id: 0x4fe4 Faulting application start time: 0x01d87c65bbb105b5 Faulting application path: C:\Program Files\WatchFlower\WatchFlower.exe Faulting module path: C:\Program Files\WatchFlower\Qt6Bluetooth.dll Report Id: c65c9279-5157-4ea6-9bac-cb3e59b2c406 Faulting package full name: Faulting package-relative application ID:

emericg commented 2 years ago

Well I guess that's progress :) Thanks for testing!

cyberb0b commented 2 years ago

Here it works fine now.

Op 20 jun. 2022, om 18:23 heeft Emeric @.***> het volgende geschreven:

Well I guess that's progress :) Thanks for testing!

— Reply to this email directly, view it on GitHub https://github.com/emericg/WatchFlower/issues/45#issuecomment-1160641101, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFDPW7XAD5MRPOZBHEBYD3VQCLHFANCNFSM44PLVTFA. You are receiving this because you authored the thread.

emericg commented 2 years ago

I'm closing this thread, as the "keep crashing" parts seems fixed at least. I'll keep an eye on the "crash after 24h hours eventually", as it as been reported a couple of times.