High Number Of Envirnoment Variables Crashes 64 Bit XYPlorer

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
robertoleonardo
Posts: 38
Joined: 17 Jun 2021 19:56

High Number Of Envirnoment Variables Crashes 64 Bit XYPlorer

Post by robertoleonardo »

XYPLORER VERSION: 28.30.1800 (but have been experiencing on beta builds for several months -- at least as far back as 28.30.0.1603)
WINDOWS VERSION: Win 11 26H2 build 26300.9032 (currently on dev build, but had same issue when on normal beta insider build on 25H1. I don't think it relates to the insider build and presumably would have the same issue on a non-insider build).
SCALING: 150%

I rely heavily on environment variables and have a bunch of them. A few months ago, 64 bit xyplorer stopped working for me on both of my machines. I've been using the 32-bit version (which continues to work fine) since then, but finally had some time to investigate the 64-bit issue this afternoon. The crashes appear to be because i crossed some threshold number of environment variables. The max number of variables 64 bit can handle seems to be somewhere around 256-260 or so. Unclear why the cutoff appears to be a bit fuzzy instead of an exact number, but probably not important.

fewer than 256-260 environment variables -- 64 bit works fine. more than that -- xyplorer 64 bit crashes immediately and silently at startup 100% of the time.

The process briefly appears in Task Manager, then exits without opening a window or showing an error. The trigger appears to be variable count, and not content. I reproduced it with meaningless dummy variables (`ZZTEST001=x`, etc.) -- the same cutoff applied somewhere around 256-260 variables.

Event Viewer:

Code: Select all

Faulting application name: XYplorer.exe, version: 28.30.0.1800
Faulting module name: ntdll.dll, version: 10.0.26100.9032
Exception code: 0xc0000374 (heap corruption)
--
rob

xyplorer 64-bit
install path: c:\program files\xyplorer
data path: %appdata%\xyplorer64
scaling: 150%
monitor resolution: 5120 x 2160

admin
Site Admin
Posts: 66532
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: High Number Of Envirnoment Variables Crashes 64 Bit XYPlorer

Post by admin »

Good catch! :tup:

a) The 64-bit version (tB), as you observed, completely chokes at this. It's even worse: I cannot even start the app from the IDE, so no chance for me to do anything about it. It's totally in the hands of the tB team. I'll make a report.

b) The 32-bit version (VB6) runs but has an internal limit of 255 EVs, sorted alphabetically. The rest is simply ignored and won't be resolved. I can fix that.

admin
Site Admin
Posts: 66532
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: High Number Of Envirnoment Variables Crashes 64 Bit XYPlorer

Post by admin »

a) I could fix it! :beer:
b) I could fix it! :beer:

robertoleonardo
Posts: 38
Joined: 17 Jun 2021 19:56

Re: High Number Of Envirnoment Variables Crashes 64 Bit XYPlorer

Post by robertoleonardo »

as always, you're the man - thank you!
--
rob

xyplorer 64-bit
install path: c:\program files\xyplorer
data path: %appdata%\xyplorer64
scaling: 150%
monitor resolution: 5120 x 2160

Post Reply