Lazarus

Programming => General => Topic started by: aducom on May 04, 2018, 10:12:23 pm

Title: Anyone having issues with latest Windows upgrade?
Post by: aducom on May 04, 2018, 10:12:23 pm
My Windows 10 was updated today. Now one of my applications is not working any more. It terminates in the start-up or gives an error, but I cannot figure out why. Not even sure if it's caused by the update, but my backup's give the same result. Anyone has similar issues?

If I dump the stack I get:
#0 fpc_popaddrstack at :0
#1 TPHSPEEDLIBCOMPONENTS__COMPILECOMPONENT(<error reading variable>) at phcomponents.pas:647
#2 TPHSPEEDLIBCOMPONENTS__COMPILECOMPONENTS(<error reading variable>) at phcomponents.pas:663
#3 TPHSPEEDLIBCOMPONENTS__COMPILELIBCOMPONENT(0xc89c604 'phspcomp\database.phscomp', <error reading variable>) at phcomponents.pas:767
#4 TPHSPEEDLIBCOMPONENTS__COMPILELIBCOMPONENTS(<error reading variable>) at phcomponents.pas:796
#5 TPHSPEEDLIBCOMPONENTS__CREATE(0x0, 0x1, <error reading variable>) at phcomponents.pas:356
#6 TPHSPMAIN__FORMSHOW(0xc798a78, <error reading variable>) at phspeedmain.pas:5922
#7 TCUSTOMFORM__DOSHOW(<error reading variable>) at .\include\customform.inc:1019
#8 TCUSTOMFORM__CMSHOWINGCHANGED({MSG = 45081, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, WPARAMFILLER = {}, LPARAMLO = 0, LPARAMHI = 0, LPARAMFILLER = {}, RESULTLO = 0, RESULTHI = 0, RESULTFILLER = {}}, <error reading variable>) at .\include\customform.inc:649
#9 SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal at :0
#10 VMT_$FORMS_$$_TCUSTOMFORM at :0
#11 ?? at :0
#12 TWINCONTROL__WNDPROC({MSG = 45081, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, WPARAMFILLER = {}, LPARAMLO = 0, LPARAMHI = 0, LPARAMFILLER = {}, RESULTLO = 0, RESULTHI = 0, RESULTFILLER = {}}, <error reading variable>) at .\include\wincontrol.inc:5396
#13 TCUSTOMFORM__WNDPROC({MSG = 45081, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, WPARAMFILLER = {}, LPARAMLO = 0, LPARAMHI = 0, LPARAMFILLER = {}, RESULTLO = 0, RESULTHI = 0, RESULTFILLER = {}}, <error reading variable>) at .\include\customform.inc:1467
#14 TCONTROL__PERFORM(45081, 0, 0, <error reading variable>) at .\include\control.inc:1571
#15 CHANGESHOWING(true, 0x6f6fdf4) at .\include\wincontrol.inc:4357
#16 TWINCONTROL__UPDATESHOWING(<error reading variable>) at .\include\wincontrol.inc:4407
#17 TCUSTOMFORM__UPDATESHOWING(<error reading variable>) at .\include\customform.inc:2762
#18 TWINCONTROL__DOALLAUTOSIZE(<error reading variable>) at .\include\wincontrol.inc:3566
#19 TCONTROL__ENABLEAUTOSIZING(<error reading variable>) at .\include\control.inc:5680
#20 TCONTROL__SETVISIBLE(true, <error reading variable>) at .\include\control.inc:4504
#21 TCUSTOMFORM__SETVISIBLE(true, <error reading variable>) at .\include\customform.inc:492
#22 TCUSTOMFORM__SHOW(<error reading variable>) at .\include\customform.inc:2307
#23 TAPPLICATION__RUN(<error reading variable>) at .\include\application.inc:1400
#24 main at phspeedide.lpr:48

So things start to go wrong immediately?

Albert
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: aducom on May 04, 2018, 10:29:38 pm
I'm really puzzled. I have fixed the issue by:

  {$IFDEF FPC}
   {$IFDEF MSWINDOWS}
    //For now - disable all floating point exceptions or XULRUNNER will crash.
    // disabled and it seems to work now in this version
    SetExceptionMask([exInvalidOp,exDenormalized,exZeroDivide,exOverflow,exUnderflow,exPrecision]);
   {$ENDIF}
  {$ENDIF}
   
Now I have used GeckoPort in the project a long time ago, but am using Chromium currently. There is no reference to Gecko anywhere.
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: jamie on May 04, 2018, 10:41:22 pm
You need to make a do nothing program that works the Float types to see if  you can get an error...

 If you don't receive an error then its my guess you could have some uninitialized variables for some
float operation and it just happens to have invalid memory now..
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: Mr.Madguy on May 05, 2018, 07:17:14 am
This has happened with me too. On my own computer program, that used DX11, worked well, but on my work computer is was crashing during D3D11CreateDevice for no reason. Solution was pretty simple: it seems like C++ runtime disables FP exceptions by default, so guys, who develop apps/drivers using C++, don't even care about FP exceptions and this exceptions are normal behaviour for C++ apps. Actually DX docs explicitly say, that FP exceptions should be disabled. Delphi seems to do it too, that's why I've never encountered this problem before. And Lazarus doesn't disable FP exceptions by default, so your application crashes, when encounters them. Why this problem appeared now only? Dunno. May be your video driver updated or something like that.
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: aducom on May 05, 2018, 07:47:14 am
Thank you, it makes sense to me. I don't use FP in the application myself, but I can imagine that the stuff I'm using does. Why it occurs now, I don't know, but perhaps some required file has changed due to the update process. But I'm glad I was able to fix it, if I hadn't had the piece of code commented out I would never have come to this idea. I hope this thread will help others that encounter similar issues.
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: Mr.Madguy on May 05, 2018, 01:08:54 pm
Thank you, it makes sense to me. I don't use FP in the application myself, but I can imagine that the stuff I'm using does. Why it occurs now, I don't know, but perhaps some required file has changed due to the update process. But I'm glad I was able to fix it, if I hadn't had the piece of code commented out I would never have come to this idea. I hope this thread will help others that encounter similar issues.
Well, SetExceptionMask controls exceptions for both FP and SSE at the same time, so it may be some SSE exception.
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: jamie on May 05, 2018, 06:26:35 pm
all this tells me is "BADLY WRITTEN CODE" with no regards of property FP math just to save a couple of
CPU cycles.

I do remember at one time graphic drivers had issues when doing hardware processing with the FP triggers
enabled..
   
  But I would of thought that to be fixed long ago..
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: Mr.Madguy on May 05, 2018, 08:04:16 pm
all this tells me is "BADLY WRITTEN CODE" with no regards of property FP math just to save a couple of
CPU cycles.

I do remember at one time graphic drivers had issues when doing hardware processing with the FP triggers
enabled..
   
  But I would of thought that to be fixed long ago..
I had such problems with NVidia drivers and tried to report them to official forums - guys there looked at me, like I was crazy.
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: ASBzone on May 07, 2018, 07:20:02 pm
My Windows 10 was updated today. Now one of my applications is not working any more. It terminates in the start-up or gives an error, but I cannot figure out why. Not even sure if it's caused by the update, but my backup's give the same result. Anyone has similar issues?

I have upgraded to Version 1803 of Windows 10 x64, and I do not have any issue with Lazarus that I can determine.   Running x32 Lazarus v1.8.2 with FPC 3.0.4
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: Pascal on May 07, 2018, 07:43:59 pm
I have upgraded to Version 1803 of Windows 10 x64, and I do not have any issue with Lazarus that I can determine.   Running x32 Lazarus v1.8.2 with FPC 3.0.4

Do you notice any slowdown when opening tools/options in Lazarus?
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: ASBzone on May 07, 2018, 09:44:18 pm
I have upgraded to Version 1803 of Windows 10 x64, and I do not have any issue with Lazarus that I can determine.   Running x32 Lazarus v1.8.2 with FPC 3.0.4

Do you notice any slowdown when opening tools/options in Lazarus?

Nope, none at all.

I tested for a few of my applications just to be sure.

-ASB
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: lainz on May 07, 2018, 09:56:34 pm
Everything working fine here, for now I not detected any issues.

The Windows Defender issue (slowness) is not new from this update, is an old issue, and to fix that you need to add to ignore list lazarus folders.
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: wp on May 07, 2018, 09:59:26 pm
Did you try the demo at https://forum.lazarus.freepascal.org/index.php/topic,40273.msg284977.html#msg284977?
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: lainz on May 07, 2018, 10:08:09 pm
Hi wp, In that demo there is a missing file "curredit". I don't know from where to grab it.
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: wp on May 07, 2018, 10:24:02 pm
https://forum.lazarus.freepascal.org/index.php/topic,40273.msg284977.html#msg284977: Hey, kpp, why are you writing there "Here is the RX-free version", but then RX is still required?

Anyway, Lainz, please try my version, slowstart.zip, from reply #78 of the same thread.
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: ASBzone on May 07, 2018, 10:29:45 pm
My Windows 10 was updated today. Now one of my applications is not working any more. It terminates in the start-up or gives an error, but I cannot figure out why. Not even sure if it's caused by the update, but my backup's give the same result. Anyone has similar issues?
...
So things start to go wrong immediately?

Albert


I have recently come across the following, so it could very well be OS related, even though not everyone is experiencing these things...

https://www.ghacks.net/2018/05/01/all-the-issues-of-windows-10-version-1803-you-may-run-into/
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: lainz on May 07, 2018, 11:05:58 pm
https://forum.lazarus.freepascal.org/index.php/topic,40273.msg284977.html#msg284977: Hey, kpp, why are you writing there "Here is the RX-free version", but then RX is still required?

Anyway, Lainz, please try my version, slowstart.zip, from reply #78 of the same thread.

Maybe I've downloaded the wrong one.

But I've downloaded also your demo, and it is really slow. I have an i7 4790 8 GB of RAM.
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: wp on May 07, 2018, 11:10:22 pm
So, better to keep my fingers off of the 1803-release at least for the next couple of months!
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: jamie on May 08, 2018, 12:45:29 am
I just checked my version, I am still using 1709, and my system is set for automatic updates.

 The only updates I see sitting there are defender updates, that's it, no OS update...

 Maybe MS has put a hold on it ?

Title: Re: Anyone having issues with latest Windows upgrade?
Post by: Pascal on May 08, 2018, 05:53:36 am
I just checked my version, I am still using 1709, and my system is set for automatic updates.

 The only updates I see sitting there are defender updates, that's it, no OS update...

 Maybe MS has put a hold on it ?
No, my private machine is just updating :(
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: ASBzone on May 08, 2018, 07:39:36 pm
No, my private machine is just updating :(

I don't think it will be all bad.  So far, I have had a machine update without any issue.

And my friend who had an update, and found an issue with his audio, determined that is was because of a new privacy setting which he turned off.

So far, I've read a few complaints online, but I haven't seen any outside of that.   (And I've seen similar stats for previous builds)
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: Pascal on June 13, 2018, 12:20:27 pm
With latest KB4284835 it's getting worse: program takes 80s now.
"Options" in Lazarus take 7s to show now!
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: ASBzone on June 13, 2018, 02:48:16 pm
With latest KB4284835 it's getting worse: program takes 80s now.
"Options" in Lazarus take 7s to show now!

Are you talking about the one released in May?

I've had no problems with Version 1803 on two machines running Lazarus 1.8.2 (and upgraded to v1.8.4)

You might want to check your EventLog for other error messages which might help you narrow down the problem.

Are other applications experiencing the same issues?  (Seems disk related, also...)
Title: Re: Anyone having issues with latest Windows upgrade?
Post by: Pascal on June 13, 2018, 03:02:34 pm
With latest KB4284835 it's getting worse: program takes 80s now.
"Options" in Lazarus take 7s to show now!

Are you talking about the one released in May?

No, this is the one from yesterday.

I've had no problems with Version 1803 on two machines running Lazarus 1.8.2 (and upgraded to v1.8.4)

You might want to check your EventLog for other error messages which might help you narrow down the problem.

Are other applications experiencing the same issues?  (Seems disk related, also...)

No other apps, just Lazarus/FPC related ones. SSD in use here. No noticeable problems in EventLog.

I am using FPC trunk compiled with -gl -O- and Lazarus trunk.
TinyPortal © 2005-2018