Recent

Author Topic: Windows 2026_7 update and Lazarus 4.8  (Read 976 times)

morknot

  • Jr. Member
  • **
  • Posts: 63
  • still learning
Windows 2026_7 update and Lazarus 4.8
« on: July 16, 2026, 04:39:39 pm »
The first time I used Lazarus after the above update, Lazarus crashed on Start up with an Access Violation. No project loaded.

As I had been having slow start up problems with 4.8 as well, I re-installed it. Still crashes on Start Up. I don't suppose anyone else is having the same problem?

Thanks!


Thaddy

  • Hero Member
  • *****
  • Posts: 19623
  • Glad to be alive.
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #1 on: July 16, 2026, 04:42:16 pm »
No. Windows 11 fully up-to-date.
Any "programmer" that knows only one programming language is not a programmer

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12640
  • Debugger - SynEdit - and more
    • wiki
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #2 on: July 16, 2026, 05:06:23 pm »
Someone just reported a similar issue on Linux. Also after going to 4.8.

Unfortunately the reason  was not diagnosed.

Could you bundle your config files
menu: view > ide internals > about lazarus => search for "primary config path"

You can sent them to me in private if you prefer not to publish them.

------------------
Do you have any packages installed? Did you rebuild your IDE (to get the installed packages working)?

wp

  • Hero Member
  • *****
  • Posts: 13649
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #3 on: July 16, 2026, 05:07:07 pm »
Antivirus or related? Put your Lazarus folder (and your project folder as well) on the whitelist of the virus scanner.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12640
  • Debugger - SynEdit - and more
    • wiki
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #4 on: July 16, 2026, 05:08:38 pm »
If you did install over an old installation (without removing)
and if you did rebuild...

then try to do a clean rebuild.

----------
If you use packages from 3rd party or ORM, then check if they are up to date.

morknot

  • Jr. Member
  • **
  • Posts: 63
  • still learning
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #5 on: July 16, 2026, 07:20:13 pm »
Thank you all for the replies.

I should have said that when I load Lazarus then click "Run", that is when the External Access violation occurs. This happens whether it is an empty form or one component  or a project.

The assembler window on the exception shows:

ntdll:ZwMapViewOfSection
   77259C30 B828000000               mov eax,$00000028
   77259C35 BA50512977               mov edx,$77295150
   77259C3A FFD2                     call edx
 **  77259C3C C22800                   ret $0028
   77259C3F 90                       nop
ntdll:ZwAccessCheckAndAuditAlarm

The previous installation of 4.8 was uninstalled and the config folder (AppData/Lazarus was deleted). Martin_fr do you just want the files in this folder?

Only the default packages are installed.

I've paused Antivirus protection but it makes no difference - Lazarus is excluded anyway.


 
 



Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12640
  • Debugger - SynEdit - and more
    • wiki
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #6 on: July 16, 2026, 07:28:00 pm »
The previous installation of 4.8 was unistalled and the config folder (AppData/Lazarus was deleted). Martin_fr do you just want the files in this folder?

Yes, please. So if they are all new then the aren't very likely to help (still worth a shot).

Do you get a stacktrace for that error?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12640
  • Debugger - SynEdit - and more
    • wiki
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #7 on: July 16, 2026, 07:29:22 pm »
Also to check "Windows 2026_7" means the latest Windows 11 update?

And that is "normal update cycle" or "get latest asap available" or some developer preview channel?
« Last Edit: July 16, 2026, 07:44:58 pm by Martin_fr »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12640
  • Debugger - SynEdit - and more
    • wiki
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #8 on: July 16, 2026, 07:46:38 pm »
Your install is the Lazarus 4.8 for 64 bits as available on sourceforge?
And the download was correctly code signed (so you got the correct package)?


I will see from your conf, but anyway ask: With/Without Anchoredock / docked-form edit enabled?

morknot

  • Jr. Member
  • **
  • Posts: 63
  • still learning
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #9 on: July 17, 2026, 11:13:20 am »
It's actually the 32 bit version, downloaded from sourceforge.

The 2026_7 update is the latest one and part of the normal cycle.

No anchor docking.

Getting a bit technical for me now - not sure what a stack trace is !!

config files in laztemp.rar, attached.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12640
  • Debugger - SynEdit - and more
    • wiki
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #10 on: July 17, 2026, 11:23:55 am »
You provided the assembler https://forum.lazarus.freepascal.org/index.php/topic,74409.msg586619.html#msg586619
So I though maybe you run the IDE in an older (working) IDE as debugger.
But you may have had some other debugger provide that..

If you are running the IDE inside the IDE, then there is menu: View > Debug Windows > Stacktrace.

If not:
In your lazarus install folder is a copy of gdb inside the  mingw folder (or download a newer one from our sourceforge site "Alternative GDB" in the Win64/32 bit folders...)

- Open cmd.com
- change to the drive and directory of your lazarus install
- run
    mingw\i386-win32\bin\gdb.exe  lazarus.exe
- answer any questions (if any) with: n
- enter (followed by return):
  r
- now the IDE will start, when it crashes, it will just freeze and you will see some output in the cmd.com window
- enter (followed by return)
   bt

Copy and paste the trace.

Depending on the result, you may need to rebuild the IDE /  I will comment on that once I see the result...

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12640
  • Debugger - SynEdit - and more
    • wiki
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #11 on: July 17, 2026, 12:02:48 pm »
Ok, so I tested what I can test....

I made sure my Win11 was all updated. Then installed the 32bit 4.8 using the official installer. Cleared all existing user settings.

I started the IDE with the default conf, and with your conf (except changing to C: as that machine does not have D: ). Also rebuild and started...

Opened the example and a new project. => Doesn't give any error for me.

Lets see if we can find any other details...

jamie

  • Hero Member
  • *****
  • Posts: 7902
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #12 on: July 17, 2026, 12:41:38 pm »
I once had an issue with Lazarus and it happened after a windows 11 update, the "Smart App" detection feature of windows 11 was on, that would not allow any app, even a blank one to run from the IDE. it would cause an error that I don't remember now, but I turned that off and all is well now.

Jamie
The only true wisdom is knowing you know nothing

morknot

  • Jr. Member
  • **
  • Posts: 63
  • still learning
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #13 on: July 17, 2026, 03:07:21 pm »
@Martin_fr

The debugger is the default FpDebug. IDE is the default IDE

Didn't find View>DebugWindows>Stacktrace. but did find >Call Stack ...same thing? Attached screen shot.

@Jamie thanks but switching off Smart App didn't make any difference

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12640
  • Debugger - SynEdit - and more
    • wiki
Re: Windows 2026_7 update and Lazarus 4.8
« Reply #14 on: July 17, 2026, 03:52:59 pm »
Ok, I was midst a generic reply - trying to collect some data in order to compare.

And well, I got an access violation.. Not sure if the same, might be a different one.

Quote
Lazarus crashed on Start up with an Access Violation

Is that
- When you start Lazarus (by double clicking the icon on the desktop)
- When you start a (your) project in Lazarus: "start up" = start up of the debugged project
- When you start Lazarus in the debugger (debug the IDE itself, open ide/lazarus.lpi and debug it)
- other?





EDIT:
Ok, so the access violation I run into is likely  a different one.
- It exist since June 2024 (at least very most likely)
- it only happens when debugging certain apps (then the IDE doing the debugging does crash)
« Last Edit: July 17, 2026, 04:38:48 pm by Martin_fr »

 

TinyPortal © 2005-2018