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

Crashes like crazy on Ubuntu 22.04 #63

Open
michaelalex94536 opened this issue Feb 2, 2024 · 11 comments
Open

Crashes like crazy on Ubuntu 22.04 #63

michaelalex94536 opened this issue Feb 2, 2024 · 11 comments

Comments

@michaelalex94536
Copy link

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.

@hyOzd
Copy link
Owner

hyOzd commented Feb 2, 2024

~/.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?

@hyOzd
Copy link
Owner

hyOzd commented Feb 2, 2024

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

@michaelalex94536
Copy link
Author

michaelalex94536 commented Feb 2, 2024 via email

@michaelalex94536
Copy link
Author

michaelalex94536 commented Feb 2, 2024 via email

@michaelalex94536
Copy link
Author

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.

@michaelalex94536
Copy link
Author

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

@michaelalex94536
Copy link
Author

michaelalex94536 commented Feb 6, 2024 via email

@hyOzd
Copy link
Owner

hyOzd commented Feb 7, 2024

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.

@hyOzd
Copy link
Owner

hyOzd commented Feb 7, 2024

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

@michaelalex94536
Copy link
Author

michaelalex94536 commented Feb 7, 2024 via email

@michaelalex94536
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants