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

2014-02-13 Thread leledumbo
 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_LineEndingNiceChartD7 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.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2014-02-13 Thread Mattias Gaertner
On Thu, 13 Feb 2014 07:38:08 -0800 (PST)
leledumbo leledumbo_c...@yahoo.co.id wrote:

  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 

Ah, you debugged startlazarus.

Please start /media/LinuxShared/lazarus/lazarus in gdb.

 TLazarusManager.Run starting /media/LinuxShared/lazarus/lazarus ...

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2014-02-13 Thread leledumbo
 Ah, you debugged startlazarus.
 Please start /media/LinuxShared/lazarus/lazarus in gdb. 

No difference:

leledumbo@LeleBuntu:/media/Sources/fpc$ gdb
/media/LinuxShared/lazarus/lazarus
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i686-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /media/LinuxShared/lazarus/lazarus...done.
(gdb) b FPC_RAISEEXCEPTION
Breakpoint 1 at 0x8072f25
(gdb) run
Starting program: /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 PackageEditor_
NiceChartD7 0
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x66000fe
[TEnvironmentOptions.Save]  error writing
/home/leledumbo/.lazarus/environmentoptions.xml: EDOMError in
DOMDocument.CreateElement PackageEditor_
NiceChartD7 0
LAZARUS END - cleaning up ...
[TMainIDE.Destroy] A 
[TMainIDE.Destroy] B  - inherited Destroy... TMainIDE
[TMainIDE.Destroy] END
During startup program exited normally.



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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2014-02-12 Thread Allan E. Registos
On Wednesday, 12 February, 2014 02:47 PM, leledumbo wrote:
 I have no idea since when, but the latest I've tried is r43866. Lazarus keeps
 asking for FPC source directory and it can't even find its own directory.
If Lazarus is on Linux, one problem is due to file permissions.  Your
.lazarus directory was somehow changed to read only or owner so you
can't save env variables on it, if not, the file must be corrupt?
If on Ubuntu in your home directory, you can try 'sudo chown
yourusername.yourusername -R .lazarus' then launch lazarus, change to
correct settings, exit then run again.

 Even so, after choosing the correct values, upon restarting these are asked
 again. So, I inspect environmentoptions.xml and indeed these values are
 missing. Could anyone confirm before I file a bug report? Or link to the
 bugtracker if it's been reported?



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

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2014-02-12 Thread Mark Morgan Lloyd

leledumbo wrote:

I have no idea since when, but the latest I've tried is r43866. Lazarus keeps
asking for FPC source directory and it can't even find its own directory.
Even so, after choosing the correct values, upon restarting these are asked
again. So, I inspect environmentoptions.xml and indeed these values are
missing. Could anyone confirm before I file a bug report? Or link to the
bugtracker if it's been reported?


I've noticed in the past that if the IDE fails during startup (e.g. an 
obscure bug in Synedit which raises an exception dialogue) the setup 
information isn't saved. So the actual problem can be quite a way from 
the configuration file handling.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2014-02-12 Thread leledumbo
 If Lazarus is on Linux, one problem is due to file permissions.  Your 
.lazarus directory was somehow changed to read only or owner so you 
can't save env variables on it, if not, the file must be corrupt? 
If on Ubuntu in your home directory, you can try 'sudo chown 
yourusername.yourusername -R .lazarus' then launch lazarus, change to 
correct settings, exit then run again. 

Yes, I'm on linux. The file is not read only, because I can rename it
normally (no sudo required) and when I start Lazarus with
environmentoptions.xml renamed, after I close the IDE it creates a new
environmentoptions.xml. Still, in the new file, LazarusDirectory and
FPCSourceDirectory don't exist. 



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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2014-02-12 Thread leledumbo
After some experiments, it looks like there's a bug in handling MY
environmentoptions.xml.

Running the IDE from terminal shows up:

[TEnvironmentOptions.Save]  error writing
/home/leledumbo/.lazarus/environmentoptions.xml: EDOMError in
DOMDocument.CreateElement

when I change certain value. but when I rename my .lazarus to .lazarusold,
the IDE creates a new .lazarus folder and when I change the same certain
value, the file can be saved. Moving the new environmentoptions.xml to
.lazarusold and rename it back to .lazarus shows that the IDE can save
modified values. Since the permissions of both files are the same, I simply
copy-paste the contents of my old environmentoptions.xml to the new one.
Guess what? The error message above comes again.

Here I attach the environmentoptions.xml that breaks the saving routine.
Please run lazarus from terminal, try changing a value (e.g. single button
on taskbar) and see the debug log. If it could reveal the same error message
in your installation, I'll file a bug report.
environmentoptions.xml
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4035804/environmentoptions.xml
  



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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2014-02-12 Thread Mattias Gaertner
On Wed, 12 Feb 2014 08:09:48 -0800 (PST)
leledumbo leledumbo_c...@yahoo.co.id wrote:

 After some experiments, it looks like there's a bug in handling MY
 environmentoptions.xml.
 
 Running the IDE from terminal shows up:
 
 [TEnvironmentOptions.Save]  error writing
 /home/leledumbo/.lazarus/environmentoptions.xml: EDOMError in
 DOMDocument.CreateElement

This probably means that somewhere an invalid xml path is used.

 
 when I change certain value. but when I rename my .lazarus to .lazarusold,
 the IDE creates a new .lazarus folder and when I change the same certain
 value, the file can be saved. Moving the new environmentoptions.xml to
 .lazarusold and rename it back to .lazarus shows that the IDE can save
 modified values. Since the permissions of both files are the same, I simply
 copy-paste the contents of my old environmentoptions.xml to the new one.
 Guess what? The error message above comes again.
 
 Here I attach the environmentoptions.xml that breaks the saving routine.
 Please run lazarus from terminal, try changing a value (e.g. single button
 on taskbar) and see the debug log. If it could reveal the same error message
 in your installation, I'll file a bug report.
 environmentoptions.xml
 http://free-pascal-lazarus.989080.n3.nabble.com/file/n4035804/environmentoptions.xml
   

Please load the IDE in the debugger and set a breakpoint at
FPC_RAISEEXCEPTION.
Then run, reproduce the error and create a backtrace. 
See here
http://wiki.freepascal.org/Creating_a_Backtrace_with_GDB


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2014-02-11 Thread leledumbo
I have no idea since when, but the latest I've tried is r43866. Lazarus keeps
asking for FPC source directory and it can't even find its own directory.
Even so, after choosing the correct values, upon restarting these are asked
again. So, I inspect environmentoptions.xml and indeed these values are
missing. Could anyone confirm before I file a bug report? Or link to the
bugtracker if it's been reported?



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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus