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

AV after turning the screen off and on #196

Open
den13x opened this issue Apr 15, 2024 · 7 comments
Open

AV after turning the screen off and on #196

den13x opened this issue Apr 15, 2024 · 7 comments

Comments

@den13x
Copy link

den13x commented Apr 15, 2024

I'm using Windows 11 23H2 (set HighDPI = 150% i.e. Settings -> System -> Display -> Scale = 150%), Delphi 12.1 (v29.0.51961.7529), CnWizards v1.3.1.1181 (only "Source Highlight Enhancements" and "Debugger Enhancements" are enabled).
Problem: I’m working in Delphi, I leave the computer, after some time the monitor turns off (energy saving), after I return to the computer and the monitor turns on, Delphi becomes smaller when I try to work in Delphi or expand Delphi to full screen (Maximize), then the following error appears:


Error


Access violation at address 504D556D in module 'CnWizards_D120A.DLL'. Read of address 5B5EFFFC.


OK Details <<


[504D556D]{CnWizards_D120A.DLL} Unknown function at INITWIZARD0001 + $104369
[58CE0D8E]{vcl290.bpl } Vcl.Controls.TControl.GetStyleName (Line 8990, "Vcl.Controls.pas" + 5) + $7
[577B9ADE]{rtl290.bpl } System.Contnrs..TCustomBucketList + $15E
[504D5565]{CnWizards_D120A.DLL} Unknown function at INITWIZARD0001 + $104361
[58DAFDD3]{vcl290.bpl } Vcl.ExtCtrls.TTimer.Timer (Line 3253, "Vcl.ExtCtrls.pas" + 1) + $E
[58DAFCB3]{vcl290.bpl } Vcl.ExtCtrls.TTimer.WndProc (Line 3211, "Vcl.ExtCtrls.pas" + 4) + $7
[5758477C]{rtl290.bpl } System.Classes.StdWndProc (Line 19085, "System.Classes.pas" + 9) + $2
[50399D9A]{CnWizards_D120A.DLL} Unknown function at __dbk_fcall_wrapper + $B805A
[58E33927]{vcl290.bpl } Vcl.Forms.TApplication.ProcessMessage (Line 13282, "Vcl.Forms.pas" + 23) + $1
[58E3396A]{vcl290.bpl } Vcl.Forms.TApplication.HandleMessage (Line 13312, "Vcl.Forms.pas" + 1) + $4
[58E33CA9]{vcl290.bpl } Vcl.Forms.TApplication.Run (Line 13451, "Vcl.Forms.pas" + 27) + $3
[00F08AD2]{bds.exe } bds.bds + $DE

This problem also occurred in Delphi 11, 11.1, 11.2, 11.3, 12.0. CnWizard is always the latest version.
Restarting Delphi helps solve the problem. Or turn off, then turn on "Source Highlight Enhancements"

@cnpack
Copy link
Owner

cnpack commented Apr 15, 2024

Thanks for your detailed report. Could you download our latest night-build to get more clear stacktrace about CnWizards?

https://www.cnpack.org/downbuilds.php

@den13x
Copy link
Author

den13x commented Apr 17, 2024

Error when using CnWizards_1.3.1.1186_Unstable:


Access violation at address 791A5E85 in module 'CnWizards_D120A.DLL'. Read of address 5B5EFFFC.


[791A5E85]{CnWizards_D120A.DLL} CnSourceHighlight.TCnSourceHighlight.OnCurrentTokenValidateTimer (Line 5766, "CnSourceHighlight.pas" + 6) + $3
[59120D8E]{vcl290.bpl } Vcl.Controls.TControl.GetStyleName (Line 8990, "Vcl.Controls.pas" + 5) + $7
[59359043]{vcl290.bpl } Vcl.Styles.TCustomStyle.SourceLoaded (Line 3317, "Vcl.Styles.pas" + 1) + $13
[57BF9ADE]{rtl290.bpl } System.Contnrs..TCustomBucketList + $15E
[791A5E7D]{CnWizards_D120A.DLL} CnSourceHighlight.TCnSourceHighlight.OnCurrentTokenValidateTimer (Line 5765, "CnSourceHighlight.pas" + 5) + $5
[591EFDD3]{vcl290.bpl } Vcl.ExtCtrls.TTimer.Timer (Line 3253, "Vcl.ExtCtrls.pas" + 1) + $E
[591EFCB3]{vcl290.bpl } Vcl.ExtCtrls.TTimer.WndProc (Line 3211, "Vcl.ExtCtrls.pas" + 4) + $7
[579C477C]{rtl290.bpl } System.Classes.StdWndProc (Line 19085, "System.Classes.pas" + 9) + $2
[7906A606]{CnWizards_D120A.DLL} CnEditControlWrapper.TCnEditControlWrapper.ApplicationMessage (Line 2679, "CnEditControlWrapper.pas" + 29) + $15
[59273927]{vcl290.bpl } Vcl.Forms.TApplication.ProcessMessage (Line 13282, "Vcl.Forms.pas" + 23) + $1
[5927396A]{vcl290.bpl } Vcl.Forms.TApplication.HandleMessage (Line 13312, "Vcl.Forms.pas" + 1) + $4
[59273CA9]{vcl290.bpl } Vcl.Forms.TApplication.Run (Line 13451, "Vcl.Forms.pas" + 27) + $3
[00328AD2]{bds.exe } bds.bds + $DE

@cnpack
Copy link
Owner

cnpack commented Apr 24, 2024

Thanks for your help. Seems our painting object associated with Delphi EditControl corrupted, we'll try to check how it happens.

@den13x
Copy link
Author

den13x commented May 21, 2024

Thanks!
The same error occurs if I change Windows Scale from 150% to 100%, then:

Access violation at address 502A675B in module 'CnWizards_D120A.DLL'. Read of address 000000D9.


[502A675B]{CnWizards_D120A.DLL} CnSourceHighlight.TCnSourceHighlight.OnCurrentTokenValidateTimer (Line 5767, "CnSourceHighlight.pas" + 6) + $5
[595CC6AD]{vcl290.bpl } Vcl.Themes.TStyleManager.GetStyle (Line 5833, "Vcl.Themes.pas" + 18) + $1E
[594C0D8E]{vcl290.bpl } Vcl.Controls.TControl.GetStyleName (Line 8990, "Vcl.Controls.pas" + 5) + $7
[594BED7C]{vcl290.bpl } Vcl.Controls.TControl.Perform (Line 7698, "Vcl.Controls.pas" + 10) + $8
[57F99ADE]{rtl290.bpl } System.Contnrs..TCustomBucketList + $15E
[502A6751]{CnWizards_D120A.DLL} CnSourceHighlight.TCnSourceHighlight.OnCurrentTokenValidateTimer (Line 5766, "CnSourceHighlight.pas" + 5) + $5
[5958FDD3]{vcl290.bpl } Vcl.ExtCtrls.TTimer.Timer (Line 3253, "Vcl.ExtCtrls.pas" + 1) + $E
[5958FCB3]{vcl290.bpl } Vcl.ExtCtrls.TTimer.WndProc (Line 3211, "Vcl.ExtCtrls.pas" + 4) + $7
[57D6477C]{rtl290.bpl } System.Classes.StdWndProc (Line 19085, "System.Classes.pas" + 9) + $2
[5016BBF6]{CnWizards_D120A.DLL} CnEditControlWrapper.TCnEditControlWrapper.ApplicationMessage (Line 2679, "CnEditControlWrapper.pas" + 29) + $15
[59613927]{vcl290.bpl } Vcl.Forms.TApplication.ProcessMessage (Line 13282, "Vcl.Forms.pas" + 23) + $1
[5961396A]{vcl290.bpl } Vcl.Forms.TApplication.HandleMessage (Line 13312, "Vcl.Forms.pas" + 1) + $4
[0012736E]{bds.exe } SanctuaryChecker.TLicenseManager.Destroy + $82
[59613CA9]{vcl290.bpl } Vcl.Forms.TApplication.Run (Line 13451, "Vcl.Forms.pas" + 27) + $3
[00148AD2]{bds.exe } bds.bds + $DE


CnWizards v1.3.1.1189_Unstable

@cnpack
Copy link
Owner

cnpack commented May 22, 2024

Thanks for this stack. we'll add the null pointer check and try again.

@cnpack
Copy link
Owner

cnpack commented Jul 2, 2024

Could you try to verify whether our latest nightly-build 1194 fixed this problem?

https://www.cnpack.org/downbuilds.php

@den13x
Copy link
Author

den13x commented Jul 3, 2024

The error began to appear immediately after turning on the monitor: stack 1.
Immediately after this the following error: stack 2

Version: 1.3.1.1194_Unstable Build 2024.07.02

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

No branches or pull requests

2 participants