Ticket #185 (closed defect: fixed)

Opened 19 months ago

Last modified 10 months ago

Padre crash when closing files

Reported by: szabgab Owned by:
Priority: major Milestone:
Component: editor Version: trunk
Keywords: Cc: heiko_jansen@…

Description (last modified by szabgab) (diff)

I open several files, then I close them one by one by clicking on [x] on the tab title, If I do it fast enough - before the window gets refreshed padre crashes without anything on the console.

This only seems to happen if the Perl 5 syntax checker is on.

Happens on r2180

Change History

follow-up: ↓ 3   Changed 19 months ago by szabgab

  • version changed from 0.21 to trunk
  • description modified (diff)

in reply to: ↑ description   Changed 19 months ago by azawawi

On windows XP Pro & Oct '08 strawberry perl 5.10, you can replicate the same problem by opening all the files in Padre/Padre/eg and then hold CTRL-W (which closes documents very quickly). Windows will show its usual process crashed dialog and Padre perl.exe process hangs (CTRL-C on the command line does not have any effect). Even End Task from Task manager does not kill it. If you kill the cmd.exe process that spawned it, then it dies.

in reply to: ↑ 1   Changed 19 months ago by azawawi

sub update_gui() is the guilty one (line 122) of Padre::Task::SyntaxChecker?. If you comment the lines 199-200; then it wont happen. It seems to be related to C-level and related to scintilla.

  Changed 19 months ago by azawawi

  • status changed from new to closed
  • resolution set to fixed

Fixed in trunk.

# allow one refresh per second.. This prevents possible
# future refresh bugs...

  Changed 19 months ago by hjansen

  • cc heiko_jansen@… added
  • priority changed from critical to major
  • status changed from closed to reopened
  • resolution fixed deleted

I can still reproduce the crash with the current r2628.
It happens even when I unchecked the syntax check menu item and restarted Padre to get a completely fresh app.
Just open a dozen or so empty new files and hold CTRL-W.
Happens on Linux/32Bit, Wx 0.89, wxWidgets 2.8.8 (openSUSE 11.1).

  Changed 10 months ago by szabgab

  • status changed from reopened to closed
  • resolution set to fixed

I assume this has been fixed since then. Please reopen if you still see this crash.

Note: See TracTickets for help on using tickets.