-
Notifications
You must be signed in to change notification settings - Fork 51
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
Pressing q for fullscreen crashes the program #9
Comments
Initializing the window fullscreen works good. |
got the same problem on a Raspberry Pi, no error message. What did you do to get it work? I don't need to switch it. It could always run in fullscreen mode. |
|
Thanks for the fast reply! I tried it, but it still doesn't start in fullscreen on a Pi (4). And when I press q (for fullscreen) there is a frameless picture of the output on the left top side for a few milli seconds on the desktop. Then the script stopped working, no error message (even with -v). the scale option (keys d and c) doesn't change the window size. It changes the font and crosshair size. (maybe that explains why fullscreen doesn't work?) When I change lines 294 and 302 from if dispFullscreen == False and isPi == False: to if dispFullscreen == False and isPi == True: then the script executes cv2.resizeWindow('Thermal', newWidth,newHeight) after rescaling and that works on a Pi as expected. below is a link to an example of a py (MLX) thermal script from another project which uses the same commands to go into fullscreen and this script actually works (with an MLX chip). Any ideas to make the PyThermalCamera script go into fullscreen on a Pi (4). https://myshare.leuphana.de/?t=8096f1b371e565d325914e8ff45cd9a9
|
I found the problem. q starts fullscreen mode and at the same time quits the application. It works after changing the quit key (second block).
.... |
Hah! good catch. I suppose I should have included line numbers with those modifications. I changed the init code toward the top.
|
Instead of changing the quit key, I changed the Fullscreen key to 'e'. |
Thank you!! |
Not sure where to drop this, so I'll do it here. I started a branch to make this more user friendly on the Librem5. It works on the Pinephone too. It includes a patch that triggers fullscreen on phosh devices. q remains Quit. https://github.com/fuzzy7k/PyThermalCamera/ It still needs some work to restore rotation settings after closing. I might create some pull requests, but the author does not seem entirely active. There is a helper/install script to install udev and systemd files on linux that will automatically launch the program on plugin. The automatic launch on plugin only works on the p2pro, as that is what I have, Adding tc001 vid,pid to the udev file should make it work. |
While running on PurseOS 10 with Phosh, attempting to run fullscreen causes the window to crash. There are no messages on the console or in the journal. It just closes and I am not sure how to debug further.
The text was updated successfully, but these errors were encountered: