Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomly build failed with "Access violation" error #1453

Open
PeterDaveHello opened this issue May 1, 2023 · 2 comments
Open

Randomly build failed with "Access violation" error #1453

PeterDaveHello opened this issue May 1, 2023 · 2 comments

Comments

@PeterDaveHello
Copy link
Member

Kind of frequent error during the build on CI ...

++++ realpath ./build.sh
+++ dirname /transgui/setup/unix/build.sh
++ cd /transgui/setup/unix/../../
++ pwd
+ ROOT=/transgui
++ cat /transgui/VERSION.txt
+ VERSION=5.18.0
++ git rev-list --abbrev-commit --max-count=1 HEAD
+ build=595be89
++ lazbuild -v
+ lazarus_ver=2.0.0+dfsg-2
++ fpc -i V
++ head -n 1
+ fpc_ver='Free Pascal Compiler version 3.0.4'
+ sed -i.bak 's/'\''Version %s'\''/'\''Version %s Build 595be89'\''#13#10'\''Compiled by: Free Pascal Compiler version 3.0.4, Lazarus v2.0.0+dfsg-2'\''/' /transgui/about.lfm
+ lazbuild -B /transgui/transgui.lpi --lazarusdir=/usr/lib/lazarus/default/
CopySecondaryConfigFile /etc/lazarus/environmentoptions.xml -> /root/.lazarus/environmentoptions.xml
Hint: (lazarus) [RunTool] /usr/bin/fpc "-iWTOTP"
Hint: (lazarus) [RunTool] /usr/bin/fpc "-va" "compilertest.pas"
Hint: (lazarus) Missing state file of trcomp 1.0: /transgui/lib/arm-linux/trcomp.compiled
Hint: (lazarus) [RunTool] /usr/bin/fpc "-iWTOTP" "-Parm" "-Tlinux"
Hint: (lazarus) [RunTool] /usr/bin/fpc "-va" "-Parm" "-Tlinux" "compilertest.pas"
Info: (lazarus) Execute Title="Compile package trcomp 1.0"
Info: (lazarus) Working Directory="/transgui/"
Info: (lazarus) Executable="/usr/bin/fpc"
Info: (lazarus) Param[0]="-B"
Info: (lazarus) Param[1]="-MObjFPC"
Info: (lazarus) Param[2]="-Scgi"
Info: (lazarus) Param[3]="-O1"
Info: (lazarus) Param[4]="-g"
Info: (lazarus) Param[5]="-gl"
Info: (lazarus) Param[6]="-l"
Info: (lazarus) Param[7]="-vewnhibq"
Info: (lazarus) Param[8]="-Fu/usr/lib/lazarus/default/packager/units/arm-linux"
Info: (lazarus) Param[9]="-Fu/usr/lib/lazarus/default/components/lazutils/lib/arm-linux"
Info: (lazarus) Param[10]="-Fu/usr/lib/lazarus/default/lcl/units/arm-linux"
Info: (lazarus) Param[11]="-Fu/usr/lib/lazarus/default/lcl/units/arm-linux/gtk2"
Info: (lazarus) Param[12]="-Fu/transgui/"
Info: (lazarus) Param[13]="-FU/transgui/lib/arm-linux/"
Info: (lazarus) Param[14]="-dLCL"
Info: (lazarus) Param[15]="-dLCLgtk2"
Info: (lazarus) Param[16]="trcomp.pas"
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.4+dfsg-22+rpi1 [2019/02/04] for arm
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for ARMHF
(3104) Compiling trcomp.pas
(3104) Compiling vargrid.pas
(3104) Compiling varlist.pas
(9009) Assembling varlist
/transgui/vargrid.pas(104,28) Hint: (5024) Parameter "Sender" not used
/transgui/vargrid.pas(118,29) Hint: (5024) Parameter "Sender" not used
(9009) Assembling vargrid
(9009) Assembling trcomp
(1008) 1913 lines compiled, 1.9 sec
(1022) 4 hint(s) issued
An unhandled exception occurred at $00123C60:
EAccessViolation: Access violation
  $00123C60
  $005FB778
  $005FF5AC
  $006009C0
  $0003408C

TProject.DoLoadStateFile Statefile not found: /transgui/units/.compiled
An unhandled exception occurred at $000DA410:
EAccessViolation: Access violation
  $000DA410
  $000DA514
  $000DFB5C
  $001BB630
  $001BBC90
  $00014070
  $00013734
  $00011BDC
  $00016D48
  $000196D4
@PeterDaveHello
Copy link
Member Author

@fredo-47
Copy link

fredo-47 commented May 1, 2023

On my local Linux Mint 21, when I follow the steps
git clone --depth=10 --branch=master https://github.com/transmission-remote-gui/transgui.git .
git checkout -qf be92509c3cbad97ec2e131760a36eeda7a1410eb
and then use the build.sh script, I have no "Access Violation" errors.
The transgui executable and the txz-archive are built normally.

Btw, I have fpc version 3.2.2 and lazarus version 2.2.0, from standard Linux Mint repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants