[Lazarus] Major flaw with trunk and unit cases

David Emerson dle3ab at angelbase.com
Sat Nov 5 18:45:42 CET 2011


Reproduced again, and took a screenshot.

I get a standard dialog, "Debugger Exception Notification" for an exception that 
I have raised in my program.

Looking at the call stack, the top line (index 0) shows for the source what 
looks like a memory address; Line 0; function fpc_raiseexception

Then I double-click that line to bring it up in the source window. The source 
window shows binary garbage, and the name of the tab is "saralatools" -- also 
the name of my project folder. The source (garbage) mutates when selecting and 
moving the cursor around.

Stop the debugger, exit lazarus, and SAVE the project-- if I don't save, that 
binary garbage is discarded; if I do save, it replaces my project folder.

Here is a screenshot: http://david9.freepgs.com/i/callstack2.png
I have an unusual color scheme, and usually my source editor has the same 
scheme, but when bringing up this weird thing, it abandons that scheme. You can 
see the selected tab (far right) has a slightly lighter color.

~David.

On Sat 5 Nov 2011, David Emerson wrote:
> On Fri 4 Nov 2011, Andrew Brunner wrote:
> > Updated to todays Lazarus from svn/trunk and started work... Only to
> > have my entire project build folder nuked by DoOpenEditorFile fixing
> > case routine...
> > 
> > /Developer/Source/Linux/64 was transformed into a binary file and
> > wiped out all sub folders.  I had to rm 64 and restore  :-(
> 
> This has happened to me several times. When it does, I find that lazarus 
creates 
> a folder called "backups" and moves my entire project directory over there.
> 
> I am using the following version (via Graeme's git repo): git-svn-id: 
> http://svn.freepascal.org/svn/lazarus/trunk@32710 
> 4005530d-fff6-0310-9dd1-cebe43e6787f
> 
> I've observed it occurring when I am debugging an error, and I click on the 
call 
> stack to access a file for which I don't have the source unit. Then the source 
> editor shows ... I don't remember, maybe it's a binary, or assembler, or 
> something-- I can't recall. Anyway, the style is wrong: the source editor is 
> not using my fonts and colors. Then it crashes and my source folder is 
replaced 
> by a binary, and the source folder moved to the backups folder (thank God for 
> that!)
> 
> ~David.
> 
> > 
> > Ubuntu 11.10 x64 running Gnome3 shell
> > 
> > Please fix asp !!!
> > 
> > 
> > dbmUserStorage.pas(2216,12) Error: identifier idents no member "cntEncoding"
> > 2300 178.311/182.624 Kb Used
> > dbmUserStorage.pas(2394,3) Fatal: Syntax error, ";" expected but "ELSE" 
found
> > TMainIDE.DoOpenEditorFile Fixing file case:
> > /Developer/Source/Builds/SCS/Linux/64/ ->
> > /Developer/Source/Builds/SCS/Linux/64
> > ### TCodeToolManager.HandleException: "identifier not found: MainP" at
> > Line=2131 Col=3 in
> > "/Developer/Source/Projects/SCS/Stored/dbmUserStorage.pas"
> > ### TCodeToolManager.HandleException: "identifier not found: PMime" at
> > Line=2131 Col=9 in
> > "/Developer/Source/Projects/SCS/Stored/dbmUserStorage.pas"
> > TApplication.HandleException Unable to create file
> > "/Developer/Source/Builds/SCS/Linux/64/Console.ico"
> >   Stack trace:
> >   $00000000007FE3A2 line 546 of ../objpas/classes/streams.inc
> >   $000000000105C80B line 191 of projecticon.pas
> >   $000000000105C22F line 130 of projecticon.pas
> >   $0000000000BD72F5 line 375 of projectresources.pas
> >   $0000000000BD7AA4 line 497 of projectresources.pas
> >   $0000000000DDC9AF line 1360 of buildmanager.pas
> >   $00000000007BD1E5 line 10672 of main.pp
> >   $00000000007C30A2 line 11922 of main.pp
> >   $00000000007C0344 line 11325 of main.pp
> >   $00000000007C17F2 line 11605 of main.pp
> >   $000000000079B904 line 3251 of main.pp
> >   $0000000000CDA75E line 7058 of sourceeditor.pp
> >   $0000000000CC9F63 line 3122 of sourceeditor.pp
> >   $0000000000ED796D line 6735 of synedit.pp
> >   $0000000000ED52E7 line 6105 of synedit.pp
> >   $0000000000EC9005 line 2436 of synedit.pp
> >   $000000000094A40B line 5501 of include/wincontrol.inc
> > [TMainIDE.Destroy] A
> > WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the
> > component is processing an event?
> > [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
> > [TMainIDE.Destroy] END
> > 
> > --
> > _______________________________________________
> > Lazarus mailing list
> > Lazarus at lists.lazarus.freepascal.org
> > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> > 
> 
> 
> 
> 
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> 







More information about the Lazarus mailing list