Sign in Join

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

Mailing lists / lazarus / 2014-09

Error message if lazarus is closed

9 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

John Landmesser

Hi list,

since some time i get an error message if i close lazarus:

content of the message dialog:

In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing

But there is no .lazarus file, but the folder .lazarus?!!

The caption of the MessageBox is in german "Lesefehler" (reading error).

So i think lazarus tries to read a file, that doesn't exist?!

my lazarus:
Lazarus 1.3 r46345 FPC 2.6.2 x86_64-linux-gtk 2

Should i write a bug report?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140929/dfed605a/attachment.html>

Reply by email

Mattias Gaertner
to John Landmesser
Show quoted text 8 lines
Hi list, since some time i get an error message if i close lazarus: content of the message dialog: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing

Maybe you installed a package, that reads a config file ''. Start the IDE in gdb or the debugger and find the stacktrace of the error message. That should give you a hint what package it is.

See here:
http://wiki.freepascal.org/Creating_a_Backtrace_with_GDB#GDB_ready_to_accept_commands

Mattias

Reply by email

John Landmesser
to John Landmesser: since some time i get an error message if i close lazarus: content of the message dialog:…

notice:

just startet lazarus from Terminal and saw this line:

"[TJITComponentList.DestroyJITComponent] ERROR destroying component Error: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing
"

that should give a important hint ( ... but not for me )

***********************************************************************

John Landmesser wrote 42 lines
Hi list, since some time i get an error message if i close lazarus: content of the message dialog: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing But there is no .lazarus file, but the folder .lazarus?!! The caption of the MessageBox is in german "Lesefehler" (reading error). So i think lazarus tries to read a file, that doesn't exist?! my lazarus: Lazarus 1.3 r46345 FPC 2.6.2 x86_64-linux-gtk 2 Should i write a bug report?

Reply by email

Juha Manninen
to John Landmesser: since some time i get an error message if i close lazarus: content of the message dialog:…
John Landmesser wrote
In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing

The *file://* part looks suspicious. Otherwise it is the default Lazarus config directory in your Unix/Linux home directory.

my lazarus: Lazarus 1.3 r46345 FPC 2.6.2 x86_64-linux-gtk 2 Should i write a bug report?

I don't have any problems with the latest trunk, including r46345. So, it is not a bug in Lazarus but some kind of local configuration problem. Try to clean your system. Remove the local config (after making a backup maybe), make sure there are no other Lazarus versions in search path, "make clean" etc.

Juha

Reply by email

Mattias Gaertner
to Juha Manninen
Show quoted text 6 lines
On Mon, Sep 29, 2014 at 4:35 PM, John Landmesser wrote: > In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing > In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing The *file://* part looks suspicious. Otherwise it is the default Lazarus config directory in your Unix/Linux home directory.

This is probably PrimaryConfigPath+''. Some code uses an empty filename. And worse: it does not catch the exception with a message. So this code has at least two bugs.
Now we have to find out what code this is.

Mattias

Reply by email

John Landmesser
to Mattias Gaertner

Hi Mattias:

notice:

just startet lazarus from Terminal and saw this line:

"[TJITComponentList.DestroyJITComponent] ERROR destroying component Error: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing
"

that should give a important hint ( ... but not for me )

***********************************************************************

Reply by email

Mattias Gaertner
to John Landmesser
Show quoted text 12 lines
Hi Mattias: notice: just startet lazarus from Terminal and saw this line: "[TJITComponentList.DestroyJITComponent] ERROR destroying component Error: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing " that should give a important hint ( ... but not for me )

DestroyJITComponent has only caught the exception. It did not raise it. Please use gdb to find out what raised it.

Mattias

Reply by email

John Landmesser
to Mattias Gaertner

Hi Mattias,

the problem is strange, but solved:

Had a project with XMLPropStorage1.Active := true ( at design-Time!!! )
but without the fileName for the "config.xml"

Changed it to false and now everything is ok.

But why tries XMLPropStorage1 to write its xml file when i close lazarus, there is just nothing to save at design-time!

Should i write a bug-report for this?

Thanks for your help!

I didn't try the gdb, thats far beyond my knowledge :-((

JohnML

Reply by email