Bug #970

Gtk backend hangs on "Ctrl::RenderPrimarySelection" (GtkClip.cpp)

Added by Zbigniew Rebacz over 9 years ago. Updated over 9 years ago.

Status:ApprovedStart date:01/27/2015
Priority:UrgentDue date:
Assignee:-% Done:

0%

Category:CtrlCoreSpent time:-
Target version:-

Description

Sometimes I have got random crashes on Linux with GTK IDE Backend. It seems that I have found cause.

How to reproduce? (It is hard)

1. Run IDE.
2. Try to double click on assembly name (Do this fast).
3. If evrything is OK. Press cancel.
4. Repeat points 2 & 3 untile the error occures.

GtkClipCrash.png - Screnshot after crash (IDE debug mode) (346 KB) Zbigniew Rebacz, 01/27/2015 05:45 PM

History

#1 Updated by Zbigniew Rebacz over 9 years ago

  • Status changed from New to Patch ready
  • Priority changed from High to Urgent

Maybe something like this can help:

String Ctrl::RenderPrimarySelection(const Value& fmt)
{
    return sel_ctrl ? sel_ctrl->GetSelectionData(fmt) : String();
}

To make sure that sel_ctrl is not null ptr (I can be wrong, beacuse I don't fully understand this code). On the other hand this problem is serious, beacuse it can leads to random crashes on GTK backend.

Patch ready +/-.

#2 Updated by Zbigniew Rebacz over 9 years ago

Even "Enviroment Settings" stop crashing.

#3 Updated by Miroslav Fidler over 9 years ago

  • Status changed from Patch ready to Approved

Also available in: Atom PDF