View Issue Details

IDProjectCategoryView StatusLast Update
0017883LazarusIDEpublic2010-11-10 12:24
ReporterMario BonatiAssigned ToMartin Friebe 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
PlatformWin32OSWindowsOS VersionXP SP3
Product Version0.9.29 (SVN)Product BuildLazarus 0.9.29 r28160 FPC 2.4.0  
Target Version0.9.30Fixed in Version0.9.29 (SVN) 
Summary0017883: Opening any project i have an "Access violation"
DescriptionI've tried with 4 different project and when i open any of it i have an "Access Violation".

Same projects have no problem with "Lazarus 0.9.29 r28085 FPC 2.4.0 i386-win32-win32/win64"
TagsNo tags attached.
Fixed in Revision28165
LazTarget0.9.30
WidgetsetWin32/Win64
Attached Files

Activities

Martin Friebe

2010-11-09 12:06

manager   ~0042909

please start lazarus with
--debug-log=c:\log.txt
and attach the log file to this report.

please attach one of the projects that fails, if possible

please find any *.lpi / *.lps files in your project directory,or in C:\Users\<your_name>\AppData\Local\lazarus\projectsessions
Temporarily remove them, and see if the issue persists

Mario Bonati

2010-11-09 13:38

reporter   ~0042913

Sorry, now i'm at home and here i use Ubuntu. I have tried here at the same revision and it works fine.

You can see the same error, on Windows, using these steps:
- update your lazarus at revision 28085
- start lazarus
- exit lazarus

you will see the error "Access violation"

Tomorrow i will post the log from work.


Hi, Mario

Martin Friebe

2010-11-09 14:25

manager   ~0042914

Well I am on 28162 and no crash.

But if your lazarus crashes on start (even with empty project), then you should check if your config is not broken:

start lazarus with
 --primary-config-path="C:\empty_folder"

If that works, then go to (may differ on xp)
C:\Users\<your_name>\AppData\Local\lazarus\
and temporarily remove each xml file, to see which one is breaking your installation.

Otherwise it could be one of the packages you have installed...

Miroslav Nyameshchuk

2010-11-09 15:08

reporter   ~0042915

Last edited: 2010-11-09 15:20

This problem arises after build fpc from svn-trunk and Lazarus from svn-trunk.

But if I start lazarus with --debug-log=c:\log.txt from Lazarus directory - all working correct.

Mattias Gaertner

2010-11-09 15:46

manager   ~0042916

Please create a backtrace of the AV and attach it.

Miroslav Nyameshchuk

2010-11-09 15:51

reporter   ~0042917

Last edited: 2010-11-09 15:53

How create backtrace?
After only start Lazarus c:\log.txt is empty.

Vincent Snijders

2010-11-09 16:07

manager   ~0042918

Last edited: 2010-11-09 16:33

http://wiki.lazarus.freepascal.org/Creating_a_Backtrace_with_GDB

Martin Friebe

2010-11-09 16:18

manager   ~0042919

ok. reproduced:

If lazarus has neither logfile, nor console on w32:

#0 fpc_write_end(@0x0: <error reading variable>) at ..\inc\text.inc:504
0000001 DBGOUT(0xbcad678 'C:\data\lazarus\bug1\unit1.pas') at lclproc.pas:2418
0000002 CTDBGOUT(0xbcad678 'C:\data\lazarus\bug1\unit1.pas') at ideprocs.pp:2658
0000003 DBGOUT(0xbcad678 'C:\data\lazarus\bug1\unit1.pas') at fileprocs.pas:2693
0000004 DEBUGLN(@0x9cdf910: 0x9cdf910, 1) at fileprocs.pas:2602
0000005 DOLOADLFM(0x274460, 0xb1d4ab0, 0xc341258, [OFPROJECTLOADING..OFONLYIFEXISTS, OFMULTIOPEN], [CFSAVEDEPENDENCIES]) at main.pp:6152
0000006 DOLOADLFM(0x274460, 0xb1d4ab0, [OFPROJECTLOADING..OFONLYIFEXISTS, OFMULTIOPEN], [CFSAVEDEPENDENCIES]) at main.pp:6026
0000007 DOOPENPROJECTFILE(0x274460, 0xc1ec3c0 'C:\data\lazarus\bug1\project1.lpi', []) at main.pp:10184
0000008 SETUPSTARTPROJECT(0x274460) at main.pp:2119
0000009 STARTIDE(0x274460) at main.pp:1395
0000010 main at lazarus.pp:105

Martin Friebe

2010-11-09 16:25

manager   ~0042921

Please test with 28165 or up.
Close if ok.

Mario Bonati

2010-11-10 12:24

reporter   ~0042942

Now is Ok.

Thanks, Mario

Issue History

Date Modified Username Field Change
2010-11-09 08:34 Mario Bonati New Issue
2010-11-09 08:34 Mario Bonati Widgetset => Win32/Win64
2010-11-09 10:31 Vincent Snijders LazTarget => 0.9.30
2010-11-09 10:31 Vincent Snijders Status new => acknowledged
2010-11-09 10:31 Vincent Snijders Target Version => 0.9.30
2010-11-09 12:06 Martin Friebe Note Added: 0042909
2010-11-09 12:06 Martin Friebe Status acknowledged => feedback
2010-11-09 13:38 Mario Bonati Note Added: 0042913
2010-11-09 14:25 Martin Friebe Note Added: 0042914
2010-11-09 15:08 Miroslav Nyameshchuk Note Added: 0042915
2010-11-09 15:12 Miroslav Nyameshchuk Note Edited: 0042915
2010-11-09 15:20 Miroslav Nyameshchuk Note Edited: 0042915
2010-11-09 15:46 Mattias Gaertner Note Added: 0042916
2010-11-09 15:51 Miroslav Nyameshchuk Note Added: 0042917
2010-11-09 15:52 Miroslav Nyameshchuk Note Edited: 0042917
2010-11-09 15:53 Miroslav Nyameshchuk Note Edited: 0042917
2010-11-09 16:07 Vincent Snijders Note Added: 0042918
2010-11-09 16:18 Martin Friebe Note Added: 0042919
2010-11-09 16:20 Martin Friebe Status feedback => assigned
2010-11-09 16:20 Martin Friebe Assigned To => Martin Friebe
2010-11-09 16:25 Martin Friebe Fixed in Revision => 28165
2010-11-09 16:25 Martin Friebe Status assigned => resolved
2010-11-09 16:25 Martin Friebe Fixed in Version => 0.9.29 (SVN)
2010-11-09 16:25 Martin Friebe Resolution open => fixed
2010-11-09 16:25 Martin Friebe Note Added: 0042921
2010-11-09 16:33 Vincent Snijders Note Edited: 0042918
2010-11-10 12:24 Mario Bonati Status resolved => closed
2010-11-10 12:24 Mario Bonati Note Added: 0042942