IDE Stürtzt beim laden eines Projectes ab.

Für Installationen unter Linux-Systemen
Antworten
Benutzeravatar
corpsman
Lazarusforum e. V.
Beiträge: 1498
Registriert: Sa 28. Feb 2009, 08:54
OS, Lazarus, FPC: Linux Mint Mate, Lazarus GIT Head, FPC 3.0
CPU-Target: 64Bit
Wohnort: Stuttgart
Kontaktdaten:

IDE Stürtzt beim laden eines Projectes ab.

Beitrag von corpsman »

Servus,

ich habe meinen Odroid U3 neu aufgesetzt und nun habe ich ein sehr merkwürdiges verhalten beim Laden meiner Projekte.
Mein System :
Linux odroid 3.8.13.29 #1 SMP PREEMPT Sat Jan 10 17:32:31 BRST 2015 armv7l armv7l armv7l GNU/Linux
odroid@odroid:~$ pgrep -l "gnome|kde|mate|cinnamon|lx|xfce|jwm"
26 kdevtmpfs
1085 gnome-keyring-d
1115 lxsession
1204 lxpanel

Lazarus ist die Aktuelle SVN Revision : 47827M

Wenn ich in der IDE ein neues Projekt erstelle, speichere, die IDE beende und dann via "Startlazarus project1.lpi" starte (danach wieder beende) sehe ich folgenden Consolen Output

odroid@odroid:~/Desktop/test$ startlazarus project1.lpi
project1.lpi is a file
is a file
TLazarusManager.Run starting /home/odroid/lazarus/lazarus ...
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/odroid/.lazarus"
SecondaryConfigPath="/etc/lazarus"
TLazSourceFileManager.LoadLFM Creating designer for hidden component of /home/odroid/Desktop/test/unit1.pas
TLazSourceFileManager.InitOpenedProjectFile select form in designer: Form1:TForm1 TDesigner
TIDEAnchorDockMaster.OnIDEClose auto save ...
TAnchorDockMaster.SaveMainLayoutToTree AForm=MainIDE:TMainIDEBar
WriteChildAnchors MainIDE:TMainIDEBar Caption="Lazarus IDE v1.5 - project1" Align=alNone
TAnchorDockMaster.SaveMainLayoutToTree AForm=AnchorDockSite4:TAnchorDockHostSite
WriteChildAnchors AnchorDockSite4:TAnchorDockHostSite Caption="Quelltexteditor,Nachrichten" Align=alNone
AnchorDockSite1:TAnchorDockHostSite Caption="Quelltexteditor" Align=alNone Bounds=l=0,t=0,r=1563,b=697
akTop=True Parent asrTop
akLeft=True Parent asrLeft
akRight=True Parent asrRight
akBottom=True AnchorDockSplitter1:TAnchorDockSplitter asrTop
SourceNotebook:TSourceNotebook Caption="Quelltexteditor" Align=alClient Bounds=l=0,t=0,r=1563,b=697
akTop=True nil asrTop
akLeft=True nil asrLeft
akRight=True nil asrLeft
akBottom=True nil asrTop
AnchorDockSite2:TAnchorDockHostSite Caption="Nachrichten" Align=alNone Bounds=l=0,t=701,r=1563,b=896
akTop=True AnchorDockSplitter1:TAnchorDockSplitter asrBottom
akLeft=True Parent asrLeft
akRight=True Parent asrRight
akBottom=True Parent asrBottom
MessagesView:TMessagesView Caption="Nachrichten" Align=alClient Bounds=l=0,t=0,r=1563,b=195
akTop=True nil asrTop
akLeft=True nil asrLeft
akRight=True nil asrLeft
akBottom=True nil asrTop
TAnchorDockMaster.SaveMainLayoutToTree AForm=AnchorDockSite3:TAnchorDockHostSite
WriteChildAnchors AnchorDockSite3:TAnchorDockHostSite Caption="Objektinspektor" Align=alNone
ObjectInspectorDlg:TObjectInspectorDlg Caption="Objektinspektor" Align=alClient Bounds=l=0,t=11,r=345,b=894
akTop=True nil asrTop
akLeft=True nil asrLeft
akRight=True nil asrLeft
akBottom=True nil asrTop
WriteDebugLayout TAnchorDockMaster.SaveLayoutToConfig :
DrawNode Node= ARect=l=1,t=1,r=79,b=20
DrawNode Node=MainIDE ARect=l=2,t=2,r=78,b=19
+-----------------------------------------------------------------------------+
|+MainIDE--------------------------------------------------------------------+|
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|+---------------------------------------------------------------------------+|
+-----------------------------------------------------------------------------+

LAZARUS END - cleaning up ...
[TMainIDE.Destroy] A
[TMainIDE.Destroy] B -> inherited Destroy... TMainIDE
[TMainIDE.Destroy] END
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$002141C4 TCONTROL__DOCK, line 4447 of ./include/control.inc
$0005344C TCUSTOMFORM__DOCK, line 2993 of ./include/customform.inc
$002131DC TCONTROL__SETHOSTDOCKSITE, line 4073 of ./include/control.inc
$001FF6DC TWINCONTROL__DESTROY, line 6464 of ./include/wincontrol.inc
$00218228 TCUSTOMCONTROL__DESTROY, line 54 of ./include/customcontrol.inc
$000494F0 TSCROLLINGWINCONTROL__DESTROY, line 290 of ./include/scrollingwincontrol.inc
$0004AB40 TCUSTOMFORM__DESTROY, line 207 of ./include/customform.inc
$00B70D30 TANCHORDOCKHOSTSITE__DESTROY, line 4996 of anchordocking.pas
$000CC8D8
$00024E70
$00028208
TApplication.HandleException Access violation
Stack trace:
$002141C4 TCONTROL__DOCK, line 4447 of ./include/control.inc
$0005344C TCUSTOMFORM__DOCK, line 2993 of ./include/customform.inc
$002131DC TCONTROL__SETHOSTDOCKSITE, line 4073 of ./include/control.inc
$001FF6DC TWINCONTROL__DESTROY, line 6464 of ./include/wincontrol.inc
$00218228 TCUSTOMCONTROL__DESTROY, line 54 of ./include/customcontrol.inc
$000494F0 TSCROLLINGWINCONTROL__DESTROY, line 290 of ./include/scrollingwincontrol.inc
$0004AB40 TCUSTOMFORM__DESTROY, line 207 of ./include/customform.inc
$00B70D30 TANCHORDOCKHOSTSITE__DESTROY, line 4996 of anchordocking.pas
$000CC8D8
$00024E70
$00028208
exception at 002141C4:
Access violation.
[TGtk2WidgetSet.Destroy]WARNUNG: Es gibt 6 nicht freigegebene GDI-Objekte. Es folgt ein detaillierter Dump:
[TGtk2WidgetSet.Destroy] GDIOs: A676F380 A676F740 A676F500 A676F7A0 A676F560 A676E120
[TGtk2WidgetSet.Destroy] gdiBitmap: 6
odroid@odroid:~/Desktop/test$


Was man sieht es wird nicht alles sauber frei gegeben. Prinzipiell böse aber damit könnte ich leben.

Starte ich nun aber ein Project welches "alt" ist kommt folgendes :
odroid@odroid:~/Projects/Sample/Graphik/minipaint$ startlazarus project1.lpi
project1.lpi is a file
is a file
TLazarusManager.Run starting /home/odroid/lazarus/lazarus ...
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/odroid/.lazarus"
SecondaryConfigPath="/etc/lazarus"
TLazSourceFileManager.LoadLFM Creating designer for hidden component of /home/odroid/Projects/Sample/Graphik/minipaint/unit1.pas
TLazSourceFileManager.InitOpenedProjectFile select form in designer: Form1:TForm1 TDesigner
The program 'lazarus' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 8977 error_code 8 request_code 66 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
odroid@odroid:~/Projects/Sample/Graphik/minipaint$


Witzigerweise, wenn ich das selbe Projekt durch eine SSH Session mit X-Forwarding von meinem KDE-Linux Rechner aus starte, dann Startet Lazarus korrekt.

Hat einer von Euch eine Idee, wie ich dem Problem auf die schliche komme ? Ich befürchte ja, dass es kein direktes Lazarus Problem ist, sondern eher etwas mit meinem Linux Fenstermanager zu tun hat ...
--
Just try it

Benutzeravatar
theo
Beiträge: 10497
Registriert: Mo 11. Sep 2006, 19:01

Re: IDE Stürtzt beim laden eines Projectes ab.

Beitrag von theo »

Beim ersten Teil sieht es so aus, als ob Anchordocking Ärger macht. Würde ich mal deinstallieren.

Und unten kannst du ja mal mit dem Debugger starten. Es steht ja da:

Code: Alles auswählen

 
Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior.


http://wiki.freepascal.org/Creating_a_B ... ith_GDB/de
http://sourceware.org/gdb/current/onlinedocs/gdb/

Ob's was hilft weiß ich nicht, aber probieren kann man es.
Trunk "spinnt" auch manchmal einfach. Hatte gestern auch ein Problem: http://bugs.freepascal.org/view.php?id=27481

Benutzeravatar
corpsman
Lazarusforum e. V.
Beiträge: 1498
Registriert: Sa 28. Feb 2009, 08:54
OS, Lazarus, FPC: Linux Mint Mate, Lazarus GIT Head, FPC 3.0
CPU-Target: 64Bit
Wohnort: Stuttgart
Kontaktdaten:

Re: IDE Stürtzt beim laden eines Projectes ab.

Beitrag von corpsman »

Anchordocking ist raus,

Aber das mit dem Backtrace hat wohl nicht geklappt :

odroid@odroid:~/lazarus$ gdb lazarus
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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 "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from lazarus...done.
(gdb) run
Starting program: /home/odroid/lazarus/lazarus
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/odroid/.lazarus"
SecondaryConfigPath="/etc/lazarus"
[New Thread 0xb59812d0 (LWP 4474)]
[New Thread 0xb4fff2d0 (LWP 4475)]
[New Thread 0xb45ff2d0 (LWP 4476)]
[New Thread 0xb3dff2d0 (LWP 4477)]
[Thread 0xb45ff2d0 (LWP 4476) exited]
Looking for code tools config file: "/home/odroid/.lazarus/codetoolsoptions.xml"
Hinweis: CodeTools-Konfigurationsdatei nicht gefunden - verwende Voreinstellungen
NOTE: help options config file not found - using defaults
TLazSourceFileManager.InitOpenedProjectFile select form in designer: Form1:TForm1 TDesigner
The program 'lazarus' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 9066 error_code 8 request_code 66 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
[Thread 0xb3dff2d0 (LWP 4477) exited]
[Thread 0xb4fff2d0 (LWP 4475) exited]
[Thread 0xb59812d0 (LWP 4474) exited]
[Inferior 1 (process 4471) exited with code 01]
(gdb) backtrace
No stack.
(gdb)


[Edit]
Neue Erkenntnisse :
Wie hier zu lesen ist, schaffe ich es auch nicht, dass normale Lazarus aus den Packetquellen zu installieren.
Interessanterweise kann man es trotzdem starten und damit Projekte laden, dabei zeigt sich, das Lazaruspacket "ImagesforLazarus" wird von meinem "Problembehafteten" Projekt eingebunden und ist in der Lazarus IDE nicht installiert. Leider kann ich die IDE mit dem Packet ImagesForLazarus nicht kompilieren. Damit komme ich also auch nicht weiter :(.
--
Just try it

Antworten