Comments (9)
Let me know if you can identify the other bug.
from gtimer.
I would build gtimer with debug symbols:
./configure "CFLAGS=-g"
make clean; make
and then start it using gdb:
gdb gtimer
Then, just use the run
command for gdb to startup gtimer. The gdb debugger should catch the point where the crash happens and you can let me know what file and line number this happens.
from gtimer.
Sure, I always accept PRs for bug fixes.
from gtimer.
Now that I compiled and am looking at the code, it won't crash of course, lol... I'll try to recognize the pattern which breaks it in my day-to-day workflow. Great software but that bug is quite annoying.
In the meantime I submitted a PR for another little thorn in my side: the delete key binding is clashing with the one for annotation so I have to right-click and delete all my tasks periodically.
from gtimer.
It's indeed a segfault, see screenshot.
Can you maybe give me a pointer how would you track this down? I'm not a wizard level at debugging C to say the least, I guess I need to get a stack trace somehow. Thanks!
(GTK error probably not related, those appear all the time)
from gtimer.
main.c, line 1121
It crashed when I added a new task and pressed Alt-S to start it. I looked at it a for a bit but I wouldn't go into guesses what's happening, I'm curious about your opinion. Thanks.
(If you dump your thougths here I might be able to do some of the legwork tracking it down :) )
from gtimer.
Curious.... I would be interested to know what the value of the st
variable (selected task number). It sounds like a valid task number is being returned and the assignment for td = visible_tasks[st]
is returning an invalid memory address. Try changing the start_callback
function's if
clause to the following:
static void start_callback ( GtkAction *act )
{
TaskData *td;
int st = get_selected_task ();
if ( st < 0 || st >= num_visible_tasks ) {
This may avoid the crash, but it suggests there is a bug somewhere else that is not fixed...
from gtimer.
OK, thanks, I changed it, I also log st... waiting for the next crash.
BTW I have to manually set this env variable when configuring, to pass the X11 library, I'm not sure if this is specific to my system or should be put in the configure script.
LIBS=-lX11 ./configure "CFLAGS=-g"
from gtimer.
That particular one didn't come back since I put in logging (typical), but FYI another segfault happened:
from gtimer.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtimer.