hyOzd / serialplot

Small and simple software for plotting data from serial port in realtime.

Home Page:https://hackaday.io/project/5334-serialplot-realtime-plotting-software

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crashes like crazy on Ubuntu 22.04

michaelalex94536 opened this issue · comments

Tried ver 0.12 on Ubuntu 22.04 and it worked fine at first. I was able to create several *.ini files for different Arduino sketches. Next day (next reboot perhaps?) it crashed spontaneously - the GUI would appear for a second or two, and then close by itself. I uninstalled it and installed ver 0.11, and this worked fine until I rebooted the computer. This was observed on two PCs, both using Ubunto 22.04 and in all cases using the "AppImage" version of serialplot.

So now, on both PCs, serialplot won't stay open for more than a second or two. If you want it to close faster, try to load an ini file - kapow!

Its a great app; I really want to use it! Thank you.

~/.config/serialplot/serialplot.conf should be the default config file of the app on ubuntu. If you delete it maybe you can open the app.

Can you share one of the ini files that crashes the application?

Because you said application crashes after a few seconds, maybe it is crashing because of the update check. In the config file can you try setting update check to false:

[UpdateCheck]
lastCheck=2022-05-28
periodicCheck=false

Just a follow-up and confirmation:

I started up another Ubuntu machine today and serial plot crashed like it did last night. But I then modified the config file, setting "periodicCheck=false" and rebooted the system, and now serialplot runs fine, just like it did on the other machine I am using. So the issue was seen on two systems and repaired on both using the same solution.

Yikes! On my two Ubuntu systems today Serialplot crashed and I found that in the config file [UpdateCheck] section that the value of "periodicCheck" was once again set back to "true." I changed it back to "false" but after closing SerialPlot it was reset again to "true". I prevented any writing to the config file, but Serialplot doesn't close gracefully when you do this... Is there a way to insure this option always stays set to "false?"

Thanks,
Michael

I think application fails to read the periodicCheck field so it overwrites it with the default value. Can you make sure it looks like this:

periodicCheck=false

Update checks are disabled by default in the latest code, but it is not released yet. So you might try building from the latest source.

Can you also make sure the Check updates periodically is checked off before closing the application.

Q: Can you also make sure the Check updates periodically is checked off before closing the application.

A: Yeah, I do this and it still crashes, even before I can gracefully close the application.

I don't understand. The problem is very time dependent. It went away for a few days after making sure periodicCheck=false is set in the config file, and this flag stayed false for a few days - I didn't need to edit the conf file anymore; I just looked at it to confirm the flag was set to false. This was the case on both of my systems. But now, the periodicCheck is being set to true once again starting from yesterday - on both systems. I think the update check should not even be an option in the config file. The user should manually click a button somewhere and make the update a manual operation, not occur behind the scenes and causing unexpected crashes. At least if I click an "update" button and the app crashes, I know - for some reason - to avoid clicking that button, and the app still works fine.