Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-07

View form as .lfm crashes Lazarus

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Torsten Bonde Christiansen

Hi List.

I was trying to check out my form with the .lfm view mode of lazarus, but there seems to be a bug. This is with the latest svn revision: Lazarus 0.9.31 r31694M FPC 2.4.2 x86_64-linux-gtk 2

Even very simple forms will make the program crash.

This was the stack-track (+ debug info from Lazarus): TLazarusManager.Run starting /home/torsten/FreePascal/lazarus/lazarus ... TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/torsten/.lazarus"
SecondaryConfigPath="/etc/lazarus"
TMainIDE.DoNewProject A
TMainIDE.DoLoadLFM Creating designer for hidden component of /home/torsten/EpiData/Manager/trunk/designer/design_frame.pas TMainIDE.DoOpenProjectFile _Designer_DesignFrame:TFrameDesignerForm TDesigner
TMainIDE.OnDesignerViewLFM
/home/torsten/EpiData/Manager/trunk/designer/design_frame.pas WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
TApplication.HandleException Access violation
Stack trace:
$00000000005C37C0 line 415 of ../inc/objpas.inc
[TMainIDE.Destroy] A
[TJITComponentList.DestroyJITComponent] ERROR destroying component Error: Access violation
Stack trace:
$00000000006636F6 line 14881 of main.pp
$0000000000660F72 line 14239 of main.pp
$00000000009EE541 line 5340 of propedits.pp
$0000000000A9C4C4 line 2575 of ../designer/designer.pp $0000000000A9CDB1 line 2721 of ../designer/designer.pp $00000000005FB3F8 line 202 of include/customform.inc $0000000000F13503 line 111 of ../designer/customnonformdesigner.pas $000000000069E438 line 462 of ../objpas/classes/compon.inc $00000000007D9671 line 4259 of include/control.inc $00000000007C9E85 line 6402 of include/wincontrol.inc $00000000007DBE1E line 60 of include/customcontrol.inc $00000000005FA3AE line 257 of include/scrollingwincontrol.inc $00000000005C334A line 165 of ../inc/objpas.inc
$0000000000A83B63 line 697 of ../designer/jitforms.pp $00000000005C334A line 165 of ../inc/objpas.inc
$00000000005C334A line 165 of ../inc/objpas.inc
$0000000000625FBA line 1501 of main.pp
TCustomFormEditor.JITListException List.CurReadStreamClass=nil nil [TMainIDE.Destroy] B -> inherited Destroy... TMainIDE [TMainIDE.Destroy] END
[TGtk2WidgetSet.Destroy] WARNING: There are 4 unreleased DCs, a detailed dump follows:
[TGtk2WidgetSet.Destroy] DCs: 00007FBF2B9403A0 00007FBF2B9401C0 00007FBF2B93FFE0 00007FBF2B93FE00
[TGtk2WidgetSet.Destroy] WARNING: There are 14 unreleased GDIObjects, a detailed dump follows:
[TGtk2WidgetSet.Destroy] GDIOs: 00007FBF27B465C0 00007FBF27B466C0 00007FBF27B46640 00007FBF27B46840 00007FBF27B46BC0 00007FBF27B46740 00007FBF27B46B40
[TGtk2WidgetSet.Destroy] gdiBitmap: 14

Kind regards,
Torsten Bonde Christiansen.

Our Program who art in Memory, Hello be Thy Name. Thy Operating System come, Thy Commands be done, at the Printer as it is on the Screen. Give us this day our daily Data, and forgive us our I/O Errors as we forgive those whose Logic Circuits are faulty. Lead us not into frustration, and deliver us from Power Surges, for Thine is the Algorithm, the Application, and the Solution, looping forever and ever. Return.

Reply by email

Mattias Gaertner
to Torsten Bonde Christiansen

?
?

Torsten Bonde Christiansen hat am 14. Juli 2011 um 10:45 geschrieben:

Show quoted text 5 lines
Hi List. I was trying to check out my form with the .lfm view mode of lazarus, but there seems to be a bug. This is with the latest svn revision: Lazarus 0.9.31 r31694M FPC 2.4.2 x86_64-linux-gtk 2?

What do you mean with '.lfm view mode'??
?

?

Even very simple forms will make the program crash.?

It works here with Lazarus 0.9.31 r30979 FPC 2.5.1 i386-linux-gtk 2. ?
Can you create a bug report with an example?
?

?

[...] TApplication.HandleException Access violation ? ? Stack trace: ? ? $00000000005C37C0 line 415 of ../inc/objpas.inc?

Can you start the IDE in gdb and create a backtrace?

Show quoted text 11 lines
-- Our Program who art in Memory, Hello be Thy Name. Thy Operating System come, Thy Commands be done, at the Printer as it is on the Screen. Give us this day our daily Data, and forgive us our I/O Errors as we forgive those whose Logic Circuits are faulty. Lead us not into frustration, and deliver us from Power Surges, for Thine is the Algorithm, the Application, and the Solution, looping forever and ever.

omg

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110714/d9c62c90/attachment.html>

Reply by email

Torsten Bonde Christiansen
to Mattias Gaertner
Mattias Gaertner wrote 12 lines
Torsten Bonde Christiansen hat am 14. Juli 2011 um 10:45 geschrieben: > Hi List. > > I was trying to check out my form with the .lfm view mode of lazarus, > but there seems to be a bug. This is with the latest svn revision: > Lazarus 0.9.31 r31694M FPC 2.4.2 x86_64-linux-gtk 2 What do you mean with '.lfm view mode'?

The feature: Right click form -> View source (.lfm)

Show quoted text 16 lines
> Even very simple forms will make the program crash. It works here with Lazarus 0.9.31 r30979 FPC 2.5.1 i386-linux-gtk 2. Can you create a bug report with an example? >[...] > TApplication.HandleException Access violation > Stack trace: > $00000000005C37C0 line 415 of ../inc/objpas.inc Can you start the IDE in gdb and create a backtrace?

This is the best I could get - it's from Lazarus own call stack window. Taken right
after the error occured.

#0 INHERITSFROM(0x8948d07d8948ffff, 0x14227f8) at ../inc/objpas.inc:416 #1 fpc_do_is(0x8948d07d8948ffff, 0x8948d07d8948ffff) at ../inc/objpas.inc:40 #2 :201
#3 GTKWSPOPUPDELAYEDCLOSE(0x7fffee99c860, 0x7fffee99c860) at gtk2/gtk2wsmenus.pp:603
#4 g_main_context_dispatch at :0
#5 ?? at :0
#6 g_main_context_iteration at :0
#7 APPPROCESSMESSAGES(0x7ffff7dffc30) at gtk2/gtk2widgetset.inc:2397 #8 POPUP(0x7fffeebcc3b0, 0x7fffee99c860, 633, 509) at gtk2/gtk2wsmenus.pp:661
#9 POPUP(0x7fffee99c860, 633, 509) at include/popupmenu.inc:87 #10 MOUSEUPONCONTROL(0x7ffff7ff4bc0, 0x7fffeb812250, @0x7fffffffdde0: {MSG = 517, KEYS = 2, XPOS = 97, YPOS = 81, POS = {X = 97, Y = 81}, DUMMY = 5308513, RESULT = 0}) at ../designer/designer.pp:2188 #11 ISDESIGNMSG(0x7ffff7ff4bc0, 0x7fffeb812250, @0x7fffffffdde0: {MSG = 517, UNUSEDMSG = 0, WPARAM = 2, LPARAM = 5308513, RESULT = 0}) at ../designer/designer.pp:2623
#12 WNDPROC(0x7fffeb812250, @0x7fffffffdde0: {MSG = 517, UNUSEDMSG = 0, WPARAM = 2, LPARAM = 5308513, RESULT = 0}) at include/control.inc:1594 #13 WNDPROC(0x7fffeb812250, @0x7fffffffdde0: {MSG = 517, UNUSEDMSG = 0, WPARAM = 2, LPARAM = 5308513, RESULT = 0}) at include/wincontrol.inc:5243 #14 WNDPROC(0x7fffeb812250, @0x7fffffffdde0: {MSG = 517, UNUSEDMSG = 0, WPARAM = 2, LPARAM = 5308513, RESULT = 0}) at include/customform.inc:1368 #15 DELIVERMESSAGE(0x7fffeb812250, @0x7fffffffdde0: 0) at lclmessageglue.pas:111
#16 DELIVERMESSAGE(0x7fffeb812250, @0x7fffffffdde0: 0) at gtk2/gtk2proc.inc:3628
#17 DELIVERMOUSEUPMESSAGE(0x1c9dac0, 0x1e2de50, 0x7fffeb812250) at gtk2/gtk2callback.inc:1920
#18 GTKMOUSEBTNRELEASE(0x1c9dac0, 0x1e2de50, 0x7fffeb812250) at gtk2/gtk2callback.inc:1977
#19 ?? at :0
#20 g_closure_invoke at :0
#21 ?? at :0
#22 g_signal_emit_valist at :0
#23 g_signal_emit at :0
#24 ?? at :0
#25 gtk_propagate_event at :0
#26 gtk_main_do_event at :0
#27 ?? at :0
#28 g_main_context_dispatch at :0
#29 ?? at :0
#30 g_main_context_iteration at :0
#31 APPWAITMESSAGE(0x7ffff7dffc30) at gtk2/gtk2widgetset.inc:2471 #32 IDLE(0x7ffff7dfe050, true) at include/application.inc:401 #33 HANDLEMESSAGE(0x7ffff7dfe050) at include/application.inc:1265 #34 RUNLOOP(0x7ffff7dfe050) at include/application.inc:1397 #35 APPRUN(0x7ffff7dffc30, {Proc = {procedure (POINTER)} 0x7fffffffe620, Self = 0x7ffff7dfe050}) at include/interfacebase.inc:60 #36 RUN(0x7ffff7dfe050) at include/application.inc:1385 #37 :119

-Torsten.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110714/50d59834/attachment-0001.html>

Reply by email

Mattias Gaertner
to Torsten Bonde Christiansen

?
?

Torsten Bonde Christiansen hat am 14. Juli 2011 um 11:27 geschrieben:

Show quoted text 14 lines
On 2011-07-14 11:06, Mattias Gaertner wrote: > ? > ? > > Torsten Bonde Christiansen [mailto:] hat am > 14. Juli 2011 um 10:45 geschrieben: > > > Hi List. > > > > I was trying to check out my form with the .lfm view mode of lazarus, > > but there seems to be a bug. This is with the latest svn revision: > > Lazarus 0.9.31 r31694M FPC 2.4.2 x86_64-linux-gtk 2? > What do you mean with '.lfm view mode'? >

The feature: Right click form -> View source (.lfm) ?
That simply opens a file. It works here.?
Maybe related to the gtk2 bug of wrong OnMouseDown event.? ?
?

Show quoted text 9 lines
> > >[...] > > TApplication.HandleException Access violation > >? ? Stack trace: > >? ? $00000000005C37C0 line 415 of ../inc/objpas.inc > ? > Can you start the IDE in gdb and create a backtrace? >

This is the best I could get - it's from Lazarus own call stack window. Taken right

Show quoted text 7 lines
after the error occured. #0 INHERITSFROM(0x8948d07d8948ffff, 0x14227f8) at ../inc/objpas.inc:416 #1 fpc_do_is(0x8948d07d8948ffff, 0x8948d07d8948ffff) at ../inc/objpas.inc:40 #2 :201 #3 GTKWSPOPUPDELAYEDCLOSE(0x7fffee99c860, 0x7fffee99c860) at gtk2/gtk2wsmenus.pp:603

?
Thanks. Maybe Zeljko can help.?
?

Show quoted text 27 lines
#4 g_main_context_dispatch at :0 #5 ?? at :0 #6 g_main_context_iteration at :0 #7 APPPROCESSMESSAGES(0x7ffff7dffc30) at gtk2/gtk2widgetset.inc:2397 #8 POPUP(0x7fffeebcc3b0, 0x7fffee99c860, 633, 509) at gtk2/gtk2wsmenus.pp:661 #9 POPUP(0x7fffee99c860, 633, 509) at include/popupmenu.inc:87 #10 MOUSEUPONCONTROL(0x7ffff7ff4bc0, 0x7fffeb812250, @0x7fffffffdde0: {MSG = 517, KEYS = 2, XPOS = 97, YPOS = 81, POS = {X = 97, Y = 81}, DUMMY = 5308513, RESULT = 0}) at ../designer/designer.pp:2188 #11 ISDESIGNMSG(0x7ffff7ff4bc0, 0x7fffeb812250, @0x7fffffffdde0: {MSG = 517, UNUSEDMSG = 0, WPARAM = 2, LPARAM = 5308513, RESULT = 0}) at ../designer/designer.pp:2623 #12 WNDPROC(0x7fffeb812250, @0x7fffffffdde0: {MSG = 517, UNUSEDMSG = 0, WPARAM = 2, LPARAM = 5308513, RESULT = 0}) at include/control.inc:1594 #13 WNDPROC(0x7fffeb812250, @0x7fffffffdde0: {MSG = 517, UNUSEDMSG = 0, WPARAM = 2, LPARAM = 5308513, RESULT = 0}) at include/wincontrol.inc:5243 #14 WNDPROC(0x7fffeb812250, @0x7fffffffdde0: {MSG = 517, UNUSEDMSG = 0, WPARAM = 2, LPARAM = 5308513, RESULT = 0}) at include/customform.inc:1368 #15 DELIVERMESSAGE(0x7fffeb812250, @0x7fffffffdde0: 0) at lclmessageglue.pas:111 #16 DELIVERMESSAGE(0x7fffeb812250, @0x7fffffffdde0: 0) at gtk2/gtk2proc.inc:3628 #17 DELIVERMOUSEUPMESSAGE(0x1c9dac0, 0x1e2de50, 0x7fffeb812250) at gtk2/gtk2callback.inc:1920 #18 GTKMOUSEBTNRELEASE(0x1c9dac0, 0x1e2de50, 0x7fffeb812250) at gtk2/gtk2callback.inc:1977 [...]

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110714/955fa390/attachment-0001.html>

Reply by email