Opened 8 weeks ago

Last modified 7 weeks ago

#70817 new defect

lazarus with GTK backend fails to start due to Access violation

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: Cc: kamischi (Karl-Michael Schindler)
Port: lazarus

Description

36-242% /opt/local/share/lazarus/lazarus 
[FORMS.PP] ExceptionOccurred 
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $00043368
  $82AA50CE
  $00000010
  $00000001
  $00000001
TApplication.HandleException: EAccessViolation
Access violation
  Stack trace:
  $00043368
  $82AA50CE
  $00000010
  $00000001
  $00000001
Exception at 00043368: EAccessViolation:
Access violation.
[FORMS.PP] ExceptionOccurred 
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $00043368
  $00000255
TApplication.HandleException: EAccessViolation
Access violation
  Stack trace:
  $00043368
  $00000255
Exception at 00043368: EAccessViolation:
Access violation.
36-242% /opt/local/share/lazarus/startlazarus 
[FORMS.PP] ExceptionOccurred 
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $00043508
  $C24BC195

Apparently the issue is not unique: https://forum.lazarus.freepascal.org/index.php?topic=65960.0 And here a specific mention of GTK: https://forum.lazarus.freepascal.org/index.php/topic,50050.msg364511.html#msg364511

But no solution.

Change History (5)

comment:1 Changed 8 weeks ago by barracuda156

  1. S. And cocoa is just broken, as usual:
    /opt/local/bin/gmkdir -p lib/powerpc-darwin-cocoa
    /opt/local/bin/ppcppc -MObjFPC -Scgim -O1 -g -gl -l -vewnhibq -dLCL -dLCLcocoa -gw -Fuunits/cocoa -Fu../../packager/units/powerpc-darwin -Fu../lazutils/lib/powerpc-darwin -Fu../buildintf/units/powerpc-darwin -Fu../freetype/lib/powerpc-darwin -Fu../../lcl/units/powerpc-darwin -Fu../../lcl/units/powerpc-darwin/cocoa -Fu../lazcontrols/lib/powerpc-darwin/cocoa -Fu../lclextensions/lib/powerpc-darwin-cocoa -Fu../ideintf/units/powerpc-darwin/cocoa -Fu. -Fiinclude/intf/cocoa -Fiunits -Fiinclude/intf -FE. -FUlib/powerpc-darwin-cocoa -gl -dpowerpc laz.virtualtreeview_package.pas
    Hint: (11030) Start of reading config file /opt/local/etc/fpc.cfg
    Hint: (11031) End of reading config file /opt/local/etc/fpc.cfg
    Free Pascal Compiler version 3.2.2 [2024/02/06] for powerpc
    Copyright (c) 1993-2021 by Florian Klaempfl and others
    (1002) Target OS: Darwin for PowerPC
    (3104) Compiling laz.virtualtreeview_package.pas
    (3104) Compiling laz.virtualtrees.pas
    (3104) Compiling ./units/cocoa/laz.fakeactivex.pas
    (9001) Assembling (pipe) lib/powerpc-darwin-cocoa/laz.fakeactivex.s
    (3104) Compiling ./units/cocoa/laz.virtualpanningwindow.pas
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/./units/cocoa/laz.virtualpanningwindow.pas(21,21) Hint: (5024) Parameter "OwnerHandle" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/./units/cocoa/laz.virtualpanningwindow.pas(21,49) Hint: (5024) Parameter "Position" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/./units/cocoa/laz.virtualpanningwindow.pas(23,20) Hint: (5024) Parameter "ClipRegion" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/./units/cocoa/laz.virtualpanningwindow.pas(17,5) Note: (5029) Private field "TVirtualPanningWindow.FOwnerHandle" is never used
    (9001) Assembling (pipe) lib/powerpc-darwin-cocoa/laz.virtualpanningwindow.s
    (3104) Compiling laz.vtgraphics.pas
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.vtgraphics.pas(21,104) Hint: (5024) Parameter "ConstantAlpha" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.vtgraphics.pas(21,119) Hint: (5024) Parameter "Bias" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.vtgraphics.pas(23,28) Hint: (5024) Parameter "Bits" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.vtgraphics.pas(23,43) Hint: (5024) Parameter "Width" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.vtgraphics.pas(23,55) Hint: (5024) Parameter "Height" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.vtgraphics.pas(23,63) Hint: (5024) Parameter "Row" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.vtgraphics.pas(25,34) Hint: (5024) Parameter "Bitmap" not used
    (9001) Assembling (pipe) lib/powerpc-darwin-cocoa/laz.vtgraphics.s
    (3104) Compiling ./units/cocoa/laz.fakemmsystem.pas
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/./units/cocoa/laz.fakemmsystem.pas(18,10) Warning: (5033) Function result does not seem to be set
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/./units/cocoa/laz.fakemmsystem.pas(10,26) Hint: (5024) Parameter "x1" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/./units/cocoa/laz.fakemmsystem.pas(23,10) Warning: (5033) Function result does not seem to be set
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/./units/cocoa/laz.fakemmsystem.pas(12,24) Hint: (5024) Parameter "x1" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/./units/cocoa/laz.fakemmsystem.pas(33,21) Hint: (5057) Local variable "ATime" does not seem to be initialized
    (9001) Assembling (pipe) lib/powerpc-darwin-cocoa/laz.fakemmsystem.s
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(4233,60) Hint: (5024) Parameter "ContentRect" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(4790,26) Hint: (5024) Parameter "dc" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(4790,35) Hint: (5024) Parameter "Left" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(4790,41) Hint: (5024) Parameter "Top" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(4790,46) Hint: (5024) Parameter "Right" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(4790,53) Hint: (5024) Parameter "Bottom" not used
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(5146,6) Note: (6058) Call to subroutine "function CompareByte(const buf1:<Formal type>;const buf2:<Formal type>;len:LongInt):LongInt;" marked as inline is not inlined
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(5650,53) Hint: (5057) Local variable "Msg" does not seem to be initialized
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(5771,18) Warning: (4105) Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(5786,3) Error: (3026) Wrong number of parameters specified for call to "SetString"
    /opt/local/libexec/fpc/lib/fpc/3.2.2/units/powerpc-darwin/univint/MacOSAll.ppu:TextUtils.pas(343,11) Error: (5088) Found declaration: SetString(StringHandle;const ShortString);
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(5791,3) Error: (3026) Wrong number of parameters specified for call to "SetString"
    /opt/local/libexec/fpc/lib/fpc/3.2.2/units/powerpc-darwin/univint/MacOSAll.ppu:TextUtils.pas(343,11) Error: (5088) Found declaration: SetString(StringHandle;const ShortString);
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(5816,3) Error: (3026) Wrong number of parameters specified for call to "Move"
    /opt/local/libexec/fpc/lib/fpc/3.2.2/units/powerpc-darwin/univint/MacOSAll.ppu:Quickdraw.pas(887,11) Error: (5088) Found declaration: Move(SmallInt;SmallInt);
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(23402,9) Error: (3026) Wrong number of parameters specified for call to "Move"
    /opt/local/libexec/fpc/lib/fpc/3.2.2/units/powerpc-darwin/univint/MacOSAll.ppu:Quickdraw.pas(887,11) Error: (5088) Found declaration: Move(SmallInt;SmallInt);
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(23413,7) Error: (3026) Wrong number of parameters specified for call to "Move"
    /opt/local/libexec/fpc/lib/fpc/3.2.2/units/powerpc-darwin/univint/MacOSAll.ppu:Quickdraw.pas(887,11) Error: (5088) Found declaration: Move(SmallInt;SmallInt);
    /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview/laz.virtualtrees.pas(25106,9) Error: (3026) Wrong number of parameters specified for call to "Move"
    /opt/local/libexec/fpc/lib/fpc/3.2.2/units/powerpc-darwin/univint/MacOSAll.ppu:Quickdraw.pas(887,11) Error: (5088) Found declaration: Move(SmallInt;SmallInt);
    laz.virtualtrees.pas(36837) Fatal: (10026) There were 12 errors compiling module, stopping
    Fatal: (1018) Compilation aborted
    make[2]: *** [laz.virtualtreeview_package.ppu] Error 1
    make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/components/virtualtreeview'
    make[1]: *** [idepackages] Error 2
    

So we need to use some other backend.

comment:2 Changed 8 weeks ago by barracuda156

On a side note, it probably should not use an archaic system libiconv, when MacPorts has a new one.

36-242% otool -L /opt/local/share/lazarus/lazarus
/opt/local/share/lazarus/lazarus:
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 117.0.0)
	/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/local/lib/libgtk-x11-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.33.0)
	/opt/local/lib/libgdk-x11-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.33.0)
	/opt/local/lib/libpango-1.0.0.dylib (compatibility version 5201.0.0, current version 5201.2.0)
	/opt/local/lib/libglib-2.0.0.dylib (compatibility version 7801.0.0, current version 7801.4.0)
	/opt/local/lib/libgobject-2.0.0.dylib (compatibility version 7801.0.0, current version 7801.4.0)
	/opt/local/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 4201.0.0, current version 4201.12.0)
	/opt/local/lib/libatk-1.0.0.dylib (compatibility version 23810.0.0, current version 23810.1.0)
	/opt/local/lib/libgthread-2.0.0.dylib (compatibility version 7801.0.0, current version 7801.4.0)
	/opt/local/lib/libpangocairo-1.0.0.dylib (compatibility version 5201.0.0, current version 5201.2.0)
	/opt/local/lib/libcairo.2.dylib (compatibility version 11709.0.0, current version 11709.0.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 150.0.0)
	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 711.1.0)
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 14.0.0)
	/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.6.0)
	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 988.3.0)
	/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 34772.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 511.1.0)

comment:3 Changed 8 weeks ago by barracuda156

qt4 backend builds, but also crashes on launch:

36-242% otool -L /opt/local/share/lazarus/lazarus 
/opt/local/share/lazarus/lazarus:
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 117.0.0)
	/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 150.0.0)
	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 711.1.0)
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 14.0.0)
	/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.6.0)
	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 988.3.0)
	/opt/local/libexec/qt4/lib/Qt4Pas.framework/Versions/5/Qt4Pas (compatibility version 5.2.0, current version 5.2.5)
	/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 34772.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 511.1.0)
36-242% /opt/local/share/lazarus/startlazarus 
[FORMS.PP] ExceptionOccurred 
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $00042CB8
36-242% /opt/local/share/lazarus/lazarus 
[FORMS.PP] ExceptionOccurred 
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $00043128
  $82AA50CE
  $00000010
  $00000001
  $00000001
TApplication.HandleException: EAccessViolation
Access violation
  Stack trace:
  $00043128
  $82AA50CE
  $00000010
  $00000001
  $00000001
Exception at 00043128: EAccessViolation:
Access violation.
[FORMS.PP] ExceptionOccurred 
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $00043128
  $0000024B
TApplication.HandleException: EAccessViolation
Access violation
  Stack trace:
  $00043128
  $0000024B
Exception at 00043128: EAccessViolation:
Access violation.

comment:4 Changed 7 weeks ago by barracuda156

comment:5 Changed 7 weeks ago by barracuda156

Command-line seems to work, I can use lazarus to build its dependents. However, GUI does not, whether with lazarus itself or dependents.

Note: See TracTickets for help on using tickets.