narzoul / DDrawCompat

DirectDraw and Direct3D 1-7 compatibility, performance and visual enhancements for Windows Vista, 7, 8, 10 and 11
BSD Zero Clause License
880 stars 67 forks source link

DEdit for Jupiter - crashes when easily overloaded. #276

Open WildChargerTV opened 6 months ago

WildChargerTV commented 6 months ago

I'd like to preface this submission by saying this is definitely an outlandish scenario, and may not actually indicate a problem with DDrawCompat itself. I'm submitting this because I want to ensure all of my bases are covered.

The program I'm using is not a game in and of itself; rather, it is a world editor program for the LithTech Jupiter engine named "DEdit". I have checked the list of unsupported cases and confirmed that this program does not fall under any of those categories. (The game for which the program was made does not suffer from these problems.) For reasons I've not yet been able to figure out, this program appears to have become wildly unstable running on any modern Intel hardware (post 2020), constantly crashing with unspecified access violation errors. DDrawCompat was the only thing I've been able to use thus far to stabilize the program (for the most part) with a significant performance reduction; however, attempting to close larger world files will still cause crashes for the same access violations.

Limited testing was done on two other sets of hardware. Neither had problems remotely like this.

The log file for this run is here. Although I did use a lot of process-specific configuration settings, because the crash in question is easily replicatable, I can say with relative confidence that very few, if any, of these settings have had any performance impact or have been able to make the crash avoidable following testing.

The mini-crash dump is here. A full one can be provided if needed.

I am already (painfully) aware that the 0xc0000005 error could apply to literally anything under the sun, but if nothing else, it would at least give me peace of mind if I knew the culprit was elsewhere beyond this wrapper. Any potential insight would be appreciated.

narzoul commented 2 months ago

The crash you posted should be fixed by v0.5.2, though I'm not sure because I wasn't able to reproduce it with earlier versions either. I don't know about the performance issues, I'd need more info on how to reproduce them exactly. Since your GPU was using D3D9On12 by default, v0.5.2 should now automatically switch it to igd9trinity32.dll instead, which hopefully will have better performance as well.

WildChargerTV commented 2 months ago

You're a miracle worker, friend. The crashes have indeed mostly dissipated, as have the performance issues. I'm not sure if you were able to actually go out of your way to install this software yourself, but if that's what you did, I can't thank you enough. This was the only major barrier to making the software work with my laptop, and although it's still not perfect (viewports don't tend to show anything until I've switched to software rendering and then back to hardware manually), it's far better than it was before.

If there's anything else posing an issue I'll let you know. Thanks again!

narzoul commented 1 day ago

viewports don't tend to show anything until I've switched to software rendering and then back to hardware manually

This may have been caused by the windowed mode presentation issue in v0.5.2. Is it by chance fixed in v0.5.3? If not, I'll need some more help on how to reproduce the problem, as I haven't even figured out how to load anything in the editor yet.

WildChargerTV commented 12 hours ago

No, unfortunately the issue is not fixed in v0.5.3. Reproducing the problem should be as simple as attempting to create a new World file, but I've not seen DEdit without preset functionality before, so we may just not be using the same program, so to speak.

The version of DEdit I'm using is bundled alongside the editing tools for the game TRON 2.0. For me, the build number is 109.21. I'll assemble a video showing current vs. intended behavior when I get the chance - however unfortunately I cannot send you a working world file to open for yourself, as this version is (to my knowledge) quite closely tied to the unique version of LithTech that runs the game (LithTech Triton). Getting that specific version may be the only way we can actually compare results.

Its editing tools are a separate install from the game itself, but upon doing so you'd be provided with a preset project file that loads everything needed for you to run your tests. (The installer bundle also comes with its own uninstaller that can clean up all of the other software once you're done.)