GTG

"insert a subtask" button causes freeze, then force quit

Bug #515174 reported by kokoshmusun
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Critical
Jeff Oliver

Bug Description

I use Ubuntu Karmic and GTG 0.2.

I added a task, and within it, a subtask. In the task window, the cursor is right by the subtask. While there, I click on the "insert a subtask" button. This freezes GTG, then it says its crashed, and I choose force quit.

Maybe this isn't something I'm supposed to do (as I'm still in the process of figuring out how to use GTG)???

Related branches

affects: launchpad → gtg
Changed in gtg:
status: New → Confirmed
milestone: none → 0.3
importance: Undecided → Critical
Revision history for this message
Luca Invernizzi (invernizzi) wrote :

Curious. I can't reproduce, while Bertrand can.

Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote : Re: [Bug 515174] Re: "insert a subtask" button causes freeze, then force quit

I did the following:

1) create a task
2) in the editor, type "- something<enter>"
3) push on the "insert subtask" toolbar button of the editor

During step 3, the carret is indeed placed after a subtask arrow "->"

On Sun, Jan 31, 2010 at 10:14 PM, Luca Invernizzi <email address hidden>wrote:

> Curious. I can't reproduce, while Bertrand can.
>
> --
> "insert a subtask" button causes freeze, then force quit
> https://bugs.launchpad.net/bugs/515174
> You received this bug notification because you are subscribed to Getting
> Things GNOME!.
>

--
Bertrand Rousseau

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

ok, thanks

Revision history for this message
Kevin Mehall (kevin-mehall) wrote :

For me, it happens sometimes, but not often. I couldn't reproduce it, but then it happened about 5 times in a row, and now I can't reproduce it again.

Revision history for this message
Kevin Mehall (kevin-mehall) wrote :

I've found that it only occurs if there is no text (not even a newline) after the last subtask

Revision history for this message
Jeff Oliver (jeffrey-oliver) wrote :

It looks like the code gets stuck spinning 100% CPU if it can't find a place to put the new subtask within the text editor window. Looking at the code in this area, there is a blind line += 1, without regard to the number of lines in the buffer.

Revision history for this message
Jeff Oliver (jeffrey-oliver) wrote :

I quickly hacked in a little check to see if the line that was found to insert the new task was the last one, if so, I insert a new CR at the end of it and let the rest of the code do its job. A patch is attached.

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

Hey, Jeff, thanks for the patch! It's always nice to fix a critical bug.
Committed to trunk

Changed in gtg:
assignee: nobody → Jeff Oliver (jeffrey-oliver)
status: Confirmed → Fix Committed
Changed in gtg:
milestone: 0.3 → 0.2.2
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.