Recent

Author Topic: Lazarus IDE Windows 64 load crash after attempt to install LZScene(GLScene)  (Read 984 times)

StuPot

  • Newbie
  • Posts: 6
Hi Fellow Lazarus Developers.

I have been working on a complex project for sonar with graphics for a year now, right at the last throws of getting it ready for market and final testing at live sea trials. But I now have a crashed IDE that I cant recover. I cant possibly rebuild it manually from a fresh install - does anyone know how I could itterate through the mad list of access violations to try to get the IDE or at least the Lazarus app console running again to recompile and link the IDE? I was attempting to load into the IDE packages for design and runtime LZSene (a wrapper on GLSene) of which is an Open GL 3D graphics library components and classes. Please Help!! See attachment

Any Ideas Welcome!!


StuPot

TRon

  • Hero Member
  • *****
  • Posts: 3271
Before the IDE rebuild itself, f.i. as a result of adding components, it makes a backup of itself.

You can rename the back-upped IDE executable to read Lazarus(.exe) and you should be able to start the IDE again as it was just before you installed the component.
This tagline is powered by AI

StuPot

  • Newbie
  • Posts: 6
Re: Lazarus IDE Windows 64 load crash after attempt to install LZScene(GLScene)
« Reply #2 on: September 04, 2024, 03:23:05 pm »
TRon,

You are indeed a Hero! Just for anyone else who has and IDE crash this works great to rollback to previous IDE build.
Make sure you havent multiple instances of Lazarus open - if thats even possible.
Find your lazarus.exe for me was in default directory c:\lazarus and rename it somthing like lazarus-crash-date.exe.
Then rename lazarus.old.exe to lazarus.exe - open lazrus IDE, hey presto rollback.

Thank you again sooooo much - I hope this is helpful for other users.

Regards

StuPot

TRon

  • Hero Member
  • *****
  • Posts: 3271
Re: Lazarus IDE Windows 64 load crash after attempt to install LZScene(GLScene)
« Reply #3 on: September 04, 2024, 09:57:00 pm »
You're more than welcome StuPot.

To my knowledge, if you use the StartLazarus executable instead of the Lazarus executable to launch Lazarus then this situation is automatically detected and StartLazarus then tries to start the Lazarus executable that still works. That should save you the task of doing it manually.

Before testing/experimenting with such things (in case you feel inclined to do so) always make sure to make a manual backup of your (working) Lazarus executable first. Just in case :)
This tagline is powered by AI

StuPot

  • Newbie
  • Posts: 6
Re: Lazarus IDE Windows 64 load crash after attempt to install LZScene(GLScene)
« Reply #4 on: September 06, 2024, 10:11:35 pm »
Hey TRon!

Thanks again great advice,
I may make a batchfile, or little app to copy stable Lazarus.exe, do a roll back of the IDE, and startup in different modes for the IDE.

You wouldn't happen to know what the access violations would be on starting LZScene, no one on their forum has got back to me. Its like they just did a massive load of worked and then walked away? Its weird because the design time package compiles fine but on restarting IDE and assuming on restart its then trying to place components onto the dev environment palette, it crashes? But I'm assuming that simply from the lack of progress in re-start?

Or maybe any suggestions of a simple 3D graphics engine i can use to create 3d tesselated grid of a surface with a fill?

Regards StuPot

wp

  • Hero Member
  • *****
  • Posts: 12364
Re: Lazarus IDE Windows 64 load crash after attempt to install LZScene(GLScene)
« Reply #5 on: September 06, 2024, 11:40:41 pm »
Tried to install LZScene in Laz/main, and it seems that this package is even in worse shape than GLSceneLCL... Both contain the same source units, but GLSceneLCL is easier to fix.

Do this:
  • Use the Online-Package-Manager (OPM) to download the packages of GLSceneLCL. Do not "Install" at the moment
  • Go to the directory into which OPM stores the packages. To find out, go to OPM's "Options", then to "Folders", and read the directory name in the "Local repository" control.
  • Close OPM
  • Load the file "GLSLanguage.pas" from the source folder of the download directory (was written in the "Local repository" control).
  • Find the function "TGLLanguage.EncodeToUTF8"; in the long "case" instruction there is a line "Result := KOI8ToUTF8(aValue);": Replace the "KOI8" here by a "KOI8R" (add an "R" between "KOI8" and "ToUTF8"). Save.
  • Load the file "source/Plateform/GLLCLViewer.pas"
  • Find the "constructor TGLSceneViewer.Create". Before its "end;" add "DoubleBuffered := false;". Save.
  • In the menu go to "Package" > "Open Package file (*.lpk)". Load the file "GLScene_RunTime.lpk" from the "Packages" folder of the  download folder. Click "Compile" --> Compilation should be successful.
  • "Open Package File (*.lpk)" again. Now load "GLScene_Designtime.lpk" from the same folder. Click "Use" > "Install". Confirm the prompt to rebuild the IDE.
  • After a while the IDE restarts, and you have the GLScene components in the palette.
« Last Edit: September 06, 2024, 11:42:26 pm by wp »

StuPot

  • Newbie
  • Posts: 6
Re: Lazarus IDE Windows 64 load crash after attempt to install LZScene(GLScene)
« Reply #6 on: September 09, 2024, 11:28:36 pm »
Hey wp - you too are a hero!  :D

Thanks so much for looking into this.
I tried to find GLSceneLCL in the OPM as you suggested but only GLScene is present? Any Ideas or has someone already uploaded a fix in the OPM?

Regards

StuPot

StuPot

  • Newbie
  • Posts: 6
Re: Lazarus IDE Windows 64 load crash after attempt to install LZScene(GLScene)
« Reply #7 on: September 09, 2024, 11:43:12 pm »
Hey wp - just figured out by downloading that in OPM GLScene.zip contains GLSceneLCL - duh , Thanks again I'm giving it a go!

StuPot

  • Newbie
  • Posts: 6
Re: Lazarus IDE Windows 64 load crash after attempt to install LZScene(GLScene)
« Reply #8 on: September 10, 2024, 12:01:38 am »
Worked a treat!  :D Now to learn another framework  :o

 

TinyPortal © 2005-2018