[Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

leledumbo leledumbo_cool at yahoo.co.id
Thu Feb 13 16:38:08 CET 2014


> Please load the IDE in the debugger and set a breakpoint at 
FPC_RAISEEXCEPTION. 
Then run, reproduce the error and create a backtrace. 

Done, but gdb doesn't seem to catch the exception. Here's the log:

(gdb) b FPC_RAISEEXCEPTION
Breakpoint 1 at 0x8072a45
(gdb) run
Starting program: /usr/bin/startlazarus 
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading
configurations from ~/.fonts.conf is deprecated.
 is a file
TLazarusManager.Run starting /media/LinuxShared/lazarus/lazarus ...
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading
configurations from ~/.fonts.conf is deprecated.
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="/home/leledumbo/.lazarus"
  SecondaryConfigPath="/etc/lazarus"
TSourceEditorSharedValues.GetMainLinkScanner not pascal highlighted:
unit1.pas
[TEnvironmentOptions.Save]  error writing
"/home/leledumbo/.lazarus/environmentoptions.xml": EDOMError in
DOMDocument.CreateElement
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x64000eb
[TEnvironmentOptions.Save]  error writing
"/home/leledumbo/.lazarus/environmentoptions.xml": EDOMError in
DOMDocument.CreateElement
LAZARUS END - cleaning up ...
[TMainIDE.Destroy] A 
[TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
[TMainIDE.Destroy] END
During startup program exited normally.

However, I've managed to get the exception source (line 2656 of laz2_dom) by
removing try-except in the respective code block. Extending the exception
message a bit, I guess I know the problem. Here's the log:

[TEnvironmentOptions.Save]  error writing
"/home/leledumbo/.lazarus/environmentoptions.xml": EDOMError in
DOMDocument.CreateElement PackageEditor_
NiceChartD7 FXML11=0

As you can see, I have PackageEditor_<LineEnding>NiceChartD7 in FormIdList
tag. The line ending seems to be the cause. I've removed the whole
FormIdList tag and everything seems well now.

I have no idea now whether this should be reported as bug or not. I have no
idea where that LineEnding comes from, because I never touch
environmentoptions.xml before this (unless when there's a problem).



--
View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035824.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.




More information about the Lazarus mailing list