MSVC Community development limit

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

MSVC Community development limit

Post by ONEEYEMAN »

Hi,
Does anybody knows if there is a limit either on the source code or a binary code size when developing with MSVC Community (2017)?

All of a sudden I start getting Windows messages as "CreateWindowEx failed with error code 0" on both Win 8.1 and Win10 VM.

If not - what could be the reason?

In the meantime I will probably continue on *nix/Mac, but I will need to test on Windows at one point of time... ;-)

Thank you.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: MSVC Community development limit

Post by doublemax »

ONEEYEMAN wrote: Mon Jun 27, 2022 2:26 am Does anybody knows if there is a limit either on the source code or a binary code size when developing with MSVC Community (2017)?
I don't think so.
ONEEYEMAN wrote: Mon Jun 27, 2022 2:26 am All of a sudden I start getting Windows messages as "CreateWindowEx failed with error code 0" on both Win 8.1 and Win10 VM.
Is it possible that you're running into the 10000 GDI handle limit under Windows? Open task manager and check the "GDI handle" column of your process.
Use the source, Luke!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MSVC Community development limit

Post by ONEEYEMAN »

doublemax,
Attached is the Task Manager running at the time of the crash.

I don't see a column "GDI Handles" there.

Thank you.
Attachments
task manager.PNG
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MSVC Community development limit

Post by ONEEYEMAN »

Never mind - fond it. It was hidden.

I did a screenshot - it shows I have only 400 objects.

Its still big but below the maximum.

Thank you.
Attachments
task manager.PNG
User avatar
doublemax@work
Super wx Problem Solver
Super wx Problem Solver
Posts: 474
Joined: Wed Jul 29, 2020 6:06 pm
Location: NRW, Germany

Re: MSVC Community development limit

Post by doublemax@work »

The assert message in the background is also a little suspicious. Try tackling that first, maybe it's related.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MSVC Community development limit

Post by ONEEYEMAN »

doublemax,
Yes, it is.
Since the CreateWindoEx() failed to be created its hWnd is NULL.
Therefore every tries to access the window will fail.

Thank you.
User avatar
doublemax@work
Super wx Problem Solver
Super wx Problem Solver
Posts: 474
Joined: Wed Jul 29, 2020 6:06 pm
Location: NRW, Germany

Re: MSVC Community development limit

Post by doublemax@work »

Does it only happen with one type of window?

Do you test regularly under Windows? Try git bisect to find out what change introduced the error.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MSVC Community development limit

Post by ONEEYEMAN »

doublemax,
I tried to run it under AppVerifier.

Will try to see if this will shed some light

I will also try bisecting...

Thank you.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: MSVC Community development limit

Post by PB »

Which wxWidgets version are you using? Does it do for one control all for all of them?

Last time I saw this it was because the control text was too long when creating a wxTextCtrl without wxTE_RICH2.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MSVC Community development limit

Post by ONEEYEMAN »

PB,
Both 3.1.6 (Win 8.1) and 3.1.7 (Win 10).

This one happens for wxScrolled<T> and there is no text on it.

Thank you.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MSVC Community development limit

Post by ONEEYEMAN »

Hi,
This is ApplicationVerifier log.

Anything looks suspicious?

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<avrf:logfile xmlns:avrf="Application Verifier">
	<avrf:logSession TimeStarted="2022-06-27 : 08:49:31" PID="7020" Version="2">
		<avrf:logEntry Time="2022-06-27 : 08:49:33" LayerName="LuaPriv" StopCode="0x33FF" Severity="Information">
			<avrf:message>Information: LUAPriv version.</avrf:message>
			<avrf:formatmessage>LUAPriv version: 1.0</avrf:formatmessage>
			<avrf:parameter1>1 - Version major</avrf:parameter1>
			<avrf:parameter2>0 - Version minor</avrf:parameter2>
			<avrf:parameter3>0 - n/a</avrf:parameter3>
			<avrf:parameter4>0 - n/a</avrf:parameter4>
		</avrf:logEntry>
		<avrf:logEntry Time="2022-06-27 : 08:49:33" LayerName="LuaPriv" StopCode="0x333A" Severity="Information">
			<avrf:message>Information: Application file name.</avrf:message>
			<avrf:formatmessage>C:\Users\Igor\OneDrive\Documents\dbhandler_app\dbhandler\vc_mswuddll\docview.exe</avrf:formatmessage>
			<avrf:parameter1>92ee60 - File Name</avrf:parameter1>
			<avrf:parameter2>0 - n/a</avrf:parameter2>
			<avrf:parameter3>0 - n/a</avrf:parameter3>
			<avrf:parameter4>0 - n/a</avrf:parameter4>
		</avrf:logEntry>
		<avrf:logEntry Time="2022-06-27 : 08:49:33" LayerName="LuaPriv" StopCode="0x3304" Severity="Warning">
			<avrf:message>Initialization failed.</avrf:message>
			<avrf:formatmessage>Profile: The USERPROFILE environment variable could not be found</avrf:formatmessage>
			<avrf:parameter1>55255638 - N/A</avrf:parameter1>
			<avrf:parameter2>521 - N/A</avrf:parameter2>
			<avrf:parameter3>0 - N/A</avrf:parameter3>
			<avrf:parameter4>0 - N/A</avrf:parameter4>
			<avrf:stackTrace>
				<avrf:trace>vfluapriv!+55264c03 ( @ 0)</avrf:trace>
				<avrf:trace>vfluapriv!+55264c50 ( @ 0)</avrf:trace>
				<avrf:trace>vfluapriv!+55264342 ( @ 0)</avrf:trace>
				<avrf:trace>vfluapriv!+552669ae ( @ 0)</avrf:trace>
				<avrf:trace>vfluapriv!+55267f0d ( @ 0)</avrf:trace>
				<avrf:trace>vfluapriv!+5526685c ( @ 0)</avrf:trace>
				<avrf:trace>verifier!VerifierGetPropertyValueByName+5b84 ( @ 0)</avrf:trace>
				<avrf:trace>vrfcore!VerifierTlsSetValue+48a ( @ 0)</avrf:trace>
				<avrf:trace>vfbasics!+5397aa24 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeCriticalSection+10e ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeCriticalSection+88 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlIsCriticalSectionLockedByThread+2a5 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlIsCriticalSectionLockedByThread+1ed ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlRemoveVectoredContinueHandler+2fc ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!LdrGetDllPath+9300 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeHandleTable+45 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!LdrInitializeThunk+10 ( @ 0)</avrf:trace>
			</avrf:stackTrace>
		</avrf:logEntry>
		<avrf:logEntry Time="2022-06-27 : 08:49:34" LayerName="LuaPriv" StopCode="0x3319" Severity="Warning">
			<avrf:message>Unable to display a security descriptor.</avrf:message>
			<avrf:formatmessage>Could not convert Key security descriptor &apos;\REGISTRY\MACHINE\SOFTWARE\Microsoft\OLE&apos; to text due to error 0x8</avrf:formatmessage>
			<avrf:parameter1>9a89fa0 - Object Name</avrf:parameter1>
			<avrf:parameter2>55253ad0 - Object Type</avrf:parameter2>
			<avrf:parameter3>9a8bf60 - Security Descriptor</avrf:parameter3>
			<avrf:parameter4>8 - Win32 Error</avrf:parameter4>
			<avrf:stackTrace>
				<avrf:trace>vfluapriv!+55258487 ( @ 0)</avrf:trace>
				<avrf:trace>vfluapriv!+55259084 ( @ 0)</avrf:trace>
				<avrf:trace>vfluapriv!+5525fdb9 ( @ 0)</avrf:trace>
				<avrf:trace>combase!ObjectStublessClient18+1999 ( @ 0)</avrf:trace>
				<avrf:trace>combase!ObjectStublessClient18+12ae ( @ 0)</avrf:trace>
			</avrf:stackTrace>
		</avrf:logEntry>
		<avrf:logEntry Time="2022-06-27 : 08:49:34" LayerName="LuaPriv" StopCode="0x332E" Severity="Warning">
			<avrf:message>The application called an API that failed unexpectedly, possibly due to bad parameters.</avrf:message>
			<avrf:formatmessage>RegOpenKeyExW: Key (HKEY_LOCAL_MACHINE\Software\Microsoft\OLE\Tracing) is denied &apos;READ_CONTROL KEY_QUERY_VALUE KEY_ENUMERATE_SUB_KEYS KEY_NOTIFY&apos; access with error 0x2.</avrf:formatmessage>
			<avrf:parameter1>2 - Error returned</avrf:parameter1>
			<avrf:parameter2>20019 - Access Requested (if applicable)</avrf:parameter2>
			<avrf:parameter3>20019 - Access Requested (for compatibility)</avrf:parameter3>
			<avrf:parameter4>0 - n/a</avrf:parameter4>
			<avrf:stackTrace>
				<avrf:trace>vfluapriv!+5526408e ( @ 0)</avrf:trace>
				<avrf:trace>vfluapriv!+5525fd30 ( @ 0)</avrf:trace>
				<avrf:trace>combase!ObjectStublessClient18+ddc ( @ 0)</avrf:trace>
				<avrf:trace>combase!ObjectStublessClient18+137a ( @ 0)</avrf:trace>
				<avrf:trace>combase!CoTaskMemAlloc+115 ( @ 0)</avrf:trace>
				<avrf:trace>verifier!VerifierGetPropertyValueByName+5b84 ( @ 0)</avrf:trace>
				<avrf:trace>vrfcore!VerifierTlsSetValue+48a ( @ 0)</avrf:trace>
				<avrf:trace>vfbasics!+5397aa24 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeCriticalSection+10e ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeCriticalSection+88 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlIsCriticalSectionLockedByThread+2a5 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlIsCriticalSectionLockedByThread+1ed ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlGetVersion+7c0 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlGetVersion+7c0 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlGetVersion+7c0 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlGetVersion+7c0 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeHandleTable+e8d ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeHandleTable+45 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!LdrInitializeThunk+10 ( @ 0)</avrf:trace>
			</avrf:stackTrace>
		</avrf:logEntry>
		<avrf:logEntry Time="2022-06-27 : 08:49:34" LayerName="LuaPriv" StopCode="0x332E" Severity="Warning">
			<avrf:message>The application called an API that failed unexpectedly, possibly due to bad parameters.</avrf:message>
			<avrf:formatmessage>OpenEventA: Event (HookSwitchHookEnabledEvent) is denied &apos;SYNCHRONIZE&apos; access with error 0x2.</avrf:formatmessage>
			<avrf:parameter1>2 - Error returned</avrf:parameter1>
			<avrf:parameter2>100000 - Access Requested (if applicable)</avrf:parameter2>
			<avrf:parameter3>100000 - Access Requested (for compatibility)</avrf:parameter3>
			<avrf:parameter4>0 - n/a</avrf:parameter4>
			<avrf:stackTrace>
				<avrf:trace>vfluapriv!+5526408e ( @ 0)</avrf:trace>
				<avrf:trace>vfluapriv!+5525d8a7 ( @ 0)</avrf:trace>
				<avrf:trace>combase!ObjectStublessClient18+1042 ( @ 0)</avrf:trace>
				<avrf:trace>combase!ObjectStublessClient18+142b ( @ 0)</avrf:trace>
				<avrf:trace>combase!CoTaskMemAlloc+115 ( @ 0)</avrf:trace>
				<avrf:trace>verifier!VerifierGetPropertyValueByName+5b84 ( @ 0)</avrf:trace>
				<avrf:trace>vrfcore!VerifierTlsSetValue+48a ( @ 0)</avrf:trace>
				<avrf:trace>vfbasics!+5397aa24 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeCriticalSection+10e ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeCriticalSection+88 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlIsCriticalSectionLockedByThread+2a5 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlIsCriticalSectionLockedByThread+1ed ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlGetVersion+7c0 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlGetVersion+7c0 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlGetVersion+7c0 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlGetVersion+7c0 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeHandleTable+e8d ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeHandleTable+45 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!LdrInitializeThunk+10 ( @ 0)</avrf:trace>
			</avrf:stackTrace>
		</avrf:logEntry>
		<avrf:logEntry Time="2022-06-27 : 08:49:34" LayerName="LuaPriv" StopCode="0x332E" Severity="Warning">
			<avrf:message>The application called an API that failed unexpectedly, possibly due to bad parameters.</avrf:message>
			<avrf:formatmessage>RegOpenKeyExW: Key (HKEY_LOCAL_MACHINE\Software\Microsoft\OLE\Tracing) is denied &apos;READ_CONTROL KEY_QUERY_VALUE KEY_ENUMERATE_SUB_KEYS KEY_NOTIFY&apos; access with error 0x2.</avrf:formatmessage>
			<avrf:parameter1>2 - Error returned</avrf:parameter1>
			<avrf:parameter2>20019 - Access Requested (if applicable)</avrf:parameter2>
			<avrf:parameter3>20019 - Access Requested (for compatibility)</avrf:parameter3>
			<avrf:parameter4>0 - n/a</avrf:parameter4>
			<avrf:stackTrace>
				<avrf:trace>vfluapriv!+5526408e ( @ 0)</avrf:trace>
				<avrf:trace>vfluapriv!+5525fd30 ( @ 0)</avrf:trace>
				<avrf:trace>ole32!OleReleaseEnumVerbCache+e75 ( @ 0)</avrf:trace>
				<avrf:trace>ole32!OleReleaseEnumVerbCache+81f ( @ 0)</avrf:trace>
				<avrf:trace>ole32!+7537468a ( @ 0)</avrf:trace>
				<avrf:trace>verifier!VerifierGetPropertyValueByName+5b84 ( @ 0)</avrf:trace>
				<avrf:trace>vrfcore!VerifierTlsSetValue+48a ( @ 0)</avrf:trace>
				<avrf:trace>vfbasics!+5397aa24 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeCriticalSection+10e ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeCriticalSection+88 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlIsCriticalSectionLockedByThread+2a5 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlIsCriticalSectionLockedByThread+1ed ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlGetVersion+7c0 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlGetVersion+7c0 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlGetVersion+7c0 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeHandleTable+e8d ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!RtlInitializeHandleTable+45 ( @ 0)</avrf:trace>
				<avrf:trace>ntdll!LdrInitializeThunk+10 ( @ 0)</avrf:trace>
			</avrf:stackTrace>
		</avrf:logEntry>
	</avrf:logSession>
</avrf:logfile>
Thank you.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MSVC Community development limit

Post by ONEEYEMAN »

doublemax,
This is very weird and even more weird. 😀
As you suggested I triedto bisected which revision broke it.
I found a good commit, but then bisecting everyhng worked. So I reset bisecting and everything was good. And it stayed good until last night
Last the same exact crash reappear.

Does this sounds familiar?

I see if rebooting the laptop will help...

Thank you.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: MSVC Community development limit

Post by doublemax »

Can you add some build instructions for Windows to the repo? I always forget how to do it :(
Use the source, Luke!
Post Reply