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

Skipping breaks with Enter causes a segmentation fault on linux #86

Closed
WesYu opened this issue Jan 21, 2021 · 10 comments
Closed

Skipping breaks with Enter causes a segmentation fault on linux #86

WesYu opened this issue Jan 21, 2021 · 10 comments
Labels
bug Something isn't working

Comments

@WesYu
Copy link

WesYu commented Jan 21, 2021

I am not sure if this is a bug or a feature I'm not aware of.
I have attached my settings as screenshots.
Screenshot from 2021-01-21 14-11-15
Screenshot from 2021-01-21 14-11-12
Screenshot from 2021-01-21 14-11-09
Screenshot from 2021-01-21 14-11-06

@tom-james-watson
Copy link
Owner

That's not something that should happen. Sounds like a crash of some kind. Can you please take a look in the logs (~/snap/breaktimer/current/.config/BreakTimer/logs/main.log) and paste any errors here, or if you're unsure, just send the whole file in an email to [email protected]?

@WesYu
Copy link
Author

WesYu commented Jan 21, 2021

That's not something that should happen. Sounds like a crash of some kind. Can you please take a look in the logs (~/snap/breaktimer/current/.config/BreakTimer/logs/main.log) and paste any errors here, or if you're unsure, just send the whole file in an email to [email protected]?

Thank you for your prompt reply. I have sent the log by email.

@tom-james-watson
Copy link
Owner

tom-james-watson commented Jan 21, 2021

Yeah I can't see anything of note in the logs. Could you by any chance be running out of RAM?

The only thing I can think of at the moment is running the app via the command line and see if you see any error messages there when the app closes.

If the app is already running, open the terminal and run killall breaktimer. Then start the app again with breaktimer and just leave the terminal open.

@WesYu
Copy link
Author

WesYu commented Jan 21, 2021

Yeah I can't see anything of note in the logs. Could you by any chance be running out of RAM?

The only thing I can think of at the moment is running the app via the command line and see if you see any error messages there when the app closes.

If the app is already running, open the terminal and run killall breaktimer. Then start the app again with breaktimer and just leave the terminal open.

The app has not stopped yet, but I can report this error when it started:
`(breaktimer:152020): Gtk-WARNING **: 17:50:40.818: Theme parsing error: gtk.css:1555:23: 'font-feature-settings' is not a valid property name

(breaktimer:152020): Gtk-WARNING **: 17:50:40.823: Theme parsing error: gtk.css:3591:25: 'font-feature-settings' is not a valid property name

(breaktimer:152020): Gtk-WARNING **: 17:50:40.824: Theme parsing error: gtk.css:4053:23: 'font-feature-settings' is not a valid property name
`

@tom-james-watson
Copy link
Owner

They shouldn't matter - they're just warnings about gtk css.

@WesYu
Copy link
Author

WesYu commented Jan 21, 2021

They shouldn't matter - they're just warnings about gtk css.

Okay, the app stopped on its own and the terminal said "Segmentation fault (core dumped)"

@tom-james-watson
Copy link
Owner

OK - thanks! Not much I can do about a segmentation fault - I imagine that is something going wrong lower down the stack, for example in electron. What I can do (which I do periodically anyway) is to bump the app's dependencies to pull in fixes etc. and hope that that fixes it.

@WesYu
Copy link
Author

WesYu commented Jan 26, 2021

OK - thanks! Not much I can do about a segmentation fault - I imagine that is something going wrong lower down the stack, for example in electron. What I can do (which I do periodically anyway) is to bump the app's dependencies to pull in fixes etc. and hope that that fixes it.

Thank you for the update. I have since found that the segmentation fault happens every time I skip the break by hitting the enter key. But if I click the button or press space it works fine.

@tom-james-watson
Copy link
Owner

Ohhh ok I can actually recreate that! That's very strange. OK, will be much easier to look into now.

@tom-james-watson tom-james-watson changed the title Break Timer randomly quits on Ubuntu LTS 20.04 Skipping breaks with Enter causes a segmentation fault on linux Jan 26, 2021
@tom-james-watson tom-james-watson added the bug Something isn't working label Jan 26, 2021
@tom-james-watson
Copy link
Owner

It looks like upgrading electron as part of the just-released v0.9.0 (https://github.com/tom-james-watson/breaktimer-app/releases/tag/v0.9.0) should fix this. Please let me know if it doesn't!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants