Giter Site home page Giter Site logo

Crashes about gtimer HOT 9 OPEN

craigk5n avatar craigk5n commented on June 19, 2024
Crashes

from gtimer.

Comments (9)

craigk5n avatar craigk5n commented on June 19, 2024 1

Let me know if you can identify the other bug.

from gtimer.

craigk5n avatar craigk5n commented on June 19, 2024 1

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.

craigk5n avatar craigk5n commented on June 19, 2024

Sure, I always accept PRs for bug fixes.

from gtimer.

motching avatar motching commented on June 19, 2024

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.

motching avatar motching commented on June 19, 2024

image

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.

motching avatar motching commented on June 19, 2024

image

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.

craigk5n avatar craigk5n commented on June 19, 2024

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.

motching avatar motching commented on June 19, 2024

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.

motching avatar motching commented on June 19, 2024

That particular one didn't come back since I put in logging (typical), but FYI another segfault happened:

image

from gtimer.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.