View change crash

Other problems or issues not covered by other troubleshooting topics.
kjjj11223344
Posts: 14
Joined: Wed Aug 16, 2017 10:14 pm

View change crash

Post by kjjj11223344 »

I keep on getting crashes when I switch views in pmdg aircraft (737, 777, 747). I have tested with default aircraft, and I can reproduce the issue. At first it seemed to be random after some time flying, but I think I've narrowed it down. All it takes is to switch views quickly while simultaneously pressing the q key to toggle the sound on and off. Switching views quickly by itself seems to not cause an issue.

I do this unconsciously in order to prevent the fsx sound view bug (not sure if p3d has it), so I believe it is what is causing the pseudo-random crashes in my case.
User avatar
Rob McCarthy
Lockheed Martin
Posts: 3703
Joined: Wed Aug 24, 2011 1:37 pm

Re: View change crash

Post by Rob McCarthy »

I've got a few questions to try and narrow down the issue. When this is happening with default vehicles are you starting with a PMDG aircraft and then switching to a default aircraft? What default vehicles do you see the crash in? How are you switching views when this occurs? Also do you still see this issue if PMDG is uninstalled/disabled?

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
kjjj11223344
Posts: 14
Joined: Wed Aug 16, 2017 10:14 pm

Re: View change crash

Post by kjjj11223344 »

I initiated the sim and jumped straight into the default extra 300 (didn't try with other planes). Having pmdg installed or not makes no difference (I uninstalled all of my planes, and the bug was still there). Always the same issue - after some fairly quick view changing, when I decide to reset the sound by pressing q 2 times, sometimes the sound will hang for a couple of seconds, after which the sim crashes. I was able to get a memory dump using visual studio, and I can provide that if needed.

However, i think I've figured it out. I was running the sim through steam. The overlay was off, but it was running through steam nonetheless. As soon as I stopped doing that, I couldn't reproduce the crash. I fully uninstalled v4 and all its addons just in case after I realized that steam was the culprit, in order to have a clean slate for when the fslabs is released, but I really think it was the fact that I was running through steam which was causing the issues. I just completed a flight with pmdg 737 and active sky, fsdreamteam airports, and gsx, and everything went great (had gotten 4 CTD's on last 4 attempted flights for comparison).

I can provide the memory dump if needed and will post back in case the issue reappears (which I doubt).
User avatar
Rob McCarthy
Lockheed Martin
Posts: 3703
Joined: Wed Aug 24, 2011 1:37 pm

Re: View change crash

Post by Rob McCarthy »

Glad to hear this is resolved. Feel free to PM me a link to the memory dump file and we can still take a look.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
kjjj11223344
Posts: 14
Joined: Wed Aug 16, 2017 10:14 pm

Re: View change crash

Post by kjjj11223344 »

Turns out the issue reared its ugly head again. I can produce it say 5/10 times whenever the sim begins to load textures, etc. This is how to reproduce it - change views, and if the sim pauses/freezes for a second while it tries to load scenery/textures, etc., immediately press the q key to turn the sound off and then back on again. Sometimes, the sim will never unfreeze, and it will just crash. Other times, the sim will continue fine, but the sound will never come back. After around 5 seconds, a CTD occurs. I believe visual studio said something about a corrupt stack or buffer overflow, can't remember the exact error in ntdll.dll. Here is a link to the memory dump:

https://1drv.ms/f/s!AufbJOFbqk6ckWL2dRHsZXsgoSpQ

P.S. the only addons I have are pmdg 737, 747, 777, active sky for p3d v4, and fsuipc for p3d v4. It can occur with default planes as well, but it seems to be exacerbated by pmdg planes since they cause pauses sometimes on view change while textures load. It has happened with the pmdg 737. I used to have similar crashes with the pmdg 747 like a month ago when I switched views. Can't say it was the same cause, but it exhibited the same symptoms. I want to say it was the same cause because I have an automatic habit of double pressing q key when I switch views since I come from fsx. For now, I will just unbind the sound on and off function away from the q key since I can't help pressing it.
Note, I got a strange error while obtaining the dump, and I've attached a picture in the above folder.
Tamba765
Posts: 77
Joined: Tue May 30, 2017 11:42 pm

Re: View change crash

Post by Tamba765 »

I'm having the same problems and have yet to find a solution. I thought it was something involving OF2 in ORBX, but even after reverting back to the stable version of FTX Central, it's still happening. I'm thinking of dumping everything and starting from a clean install, but I really hate to go through that B.S. again. Have you had any luck fixing the problem. It's driving me nuts!
Pete Locascio
kjjj11223344
Posts: 14
Joined: Wed Aug 16, 2017 10:14 pm

Re: View change crash

Post by kjjj11223344 »

In my case, the issue is my automatic reflex to toggle the sound off and on again after a view change. I changed this functionality away from the q key (since this is where my hand instinctively goes to), and I've been able to fly without any more crashes.

Are you suffering from crashes on view change or are you suffering from crashes when you toggle the sound off and on after a view change? If your sim crashes on view change without you pressing any keys, then I think your issue is different than mine. I can change views until my heart's content, and everything is okay as long as I don't toggle the sound off and then on immediately after view change.

P.s: I also have Orbx FTX global and the global lights configurator. I forgot to mention that earlier.
Tamba765
Posts: 77
Joined: Tue May 30, 2017 11:42 pm

Re: View change crash

Post by Tamba765 »

I've never toggled the sound on or off with a view change. Sometimes after a couple of hours of flying the screen will go black with a view change, and then I just wait for the crash which happens a few seconds later. I've noticed that these problems only occur on flights over about 2.5 hours, so far at least.
The P3D forums on AVSIM are full of CTD problems, as is ORBX. I'm sure the P3D developers are working on this, but until then, I'm not going to be changing and renaming files, and adding 3rd party workarounds, especially since I don't really know enough about doing that sort of thing.
Pete Locascio
User avatar
Rob McCarthy
Lockheed Martin
Posts: 3703
Joined: Wed Aug 24, 2011 1:37 pm

Re: View change crash

Post by Rob McCarthy »

kjjj11223344 I was unable to open the dump file you sent, it threw an invalid format error.

Please follow these steps to produce the dump file:

When Prepar3D crashes, the option to debug through Visual Studio should appear. Attach to the Prepar3D process and then go to Debug --> Save Dump As to save the memory dump. Feel free to upload that dump to Dropbox or some other file server and PM me a link. Make sure you provide the full version number with each dump.

More details here: msdn.microsoft.com/en-us/library/d5zhxt22.aspx


We also have general debugging steps outlined here:
viewtopic.php?f=6312&t=123246

Going through these will help narrow down the cause of the issue. If the issue is caused by an add-on, you will likely want to reach out to developer for direct support. If they need any support with development, they should not hesitate to contact us.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
kjjj11223344
Posts: 14
Joined: Wed Aug 16, 2017 10:14 pm

Re: View change crash

Post by kjjj11223344 »

It keeps on saying "unable to create dump: Only part of a ReadProcessMemory or WriteProcessMemory request was completed." or something along those lines. Then, when I open the file, it says "This dump file has an invalid format", as you state.

I try starting p3d from within visual studio, but when the flight loads, it immediately crashes, saying "This application caused the runtime to quit unexpectedly" or something of that nature. I am using visual studio 2015, should I use another version of vs? I know that 2015 came with some significant changes to the microsoft c runtime.

P.S. I have basically followed the debugging steps. I uninstalled V4 fully (including cleaning registry, deleting all cfg and leftover v4 files in app data, etc.), and the issue persists. It actually crashed with no addons while I running it through steam as well; I hypothesized steam was the culprit and did another flight and no crash, but I think that was just by chance (Ie i don't think steam is the issue as I run it outside of steam now and it still crashes). Notice, the view change itself isn't the issue, it is quickly double tapping the sound on/off key in succession that will cause a crash (specifically in instances where the sim has a small pause in order to load textures). The reason it crashes more frequently in PMDG planes than with default planes is that PMDG planes cause the sim to load more and higher quality textures, thereby increasing the chance that I experience one of these small pauses on view change. It is more difficult to reproduce the crash with default planes as they rarely cause a small pause/hiccup while changing views in the sim (for obvious reasons). Can you reproduce this on your machine?
User avatar
Rob McCarthy
Lockheed Martin
Posts: 3703
Joined: Wed Aug 24, 2011 1:37 pm

Re: View change crash

Post by Rob McCarthy »

We will dig into this more on our end and get back to you. In the meantime please keep us posted with any additional information that may help us narrow down the issue.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
kjjj11223344
Posts: 14
Joined: Wed Aug 16, 2017 10:14 pm

Re: View change crash

Post by kjjj11223344 »

That sounds good, hope the bug is fixed. As I predicted, switching the sound off/on function away from the q key has done wonders - I haven't experienced anymore crashes. I still subconsciously press the q key after view change, but as it isn't bound to the sound off/on functionality, the crashes never occur. Sometimes the sim pauses or has small hiccups, as expected, during view change under heavy load conditions, but it always recovers after 2-3 seconds and never crashes.
User avatar
Martyson
Posts: 15188
Joined: Sun Mar 25, 2012 11:08 am

Re: View change crash

Post by Martyson »

How are you pilots changing the views?
Using a default method (menu/mouse) in the P3D software or a 3rd party program?
Best Regards,
Vaughan Martell PP-ASEL (KDTW)
saharatj98
Posts: 23
Joined: Sun Oct 15, 2017 8:46 am

Re: View change crash

Post by saharatj98 »

I am getting a heap corrupt error CTD. I cleaned my drives and fragemented, uninstalled UTL and turned all AI off, thought I got it but now get a stack overflow error CTD. I am not sure what is going on. Be great if errors were in English so someone can actually fix the problem. I7700 over clocked 10% V4 resides on my F drive which is 2TB C drive has 200GB free, I run a 8gb video card so speed is not my problem. ORBX, PMDG all has run fine. Started with a CTD at Maldives lookingwest which is why I thought it may be an AI issue. but it got worse during the day. Thankyou if you can point me in the right direction to correct this. Irritating!


Version=1
EventType=BEX64
EventTime=131621919483960662
ReportType=2
Consent=1
UploadTime=131621919504425088
ReportStatus=268435456
ReportIdentifier=9b2ba3e9-51e7-4119-8de4-f488b401a03d
IntegratorReportIdentifier=7b54af78-5f61-4338-b424-d139b0d2e533
Wow64Host=34404
NsAppName=Prepar3D.exe
AppSessionGuid=00001acc-0002-0035-59a8-b7c76f9dd301
TargetAppId=W:0000f0e3cd7a622a9f58f96eda9e904fcd8500000904!0000fe4ba4844cdbd482c25c2fa58f1644d0a18615dd!Prepar3D.exe
TargetAppVer=2017//10//05:18:48:53!2d051c!Prepar3D.exe
BootId=4294967295
TargetAsId=1512
UserImpactVector=271594288
Response.BucketId=d5491c109c91179f7c2c4fcb60bea740
Response.BucketTable=5
Response.LegacyBucketId=2030085266957313856
Response.type=4
Sig[0].Name=Application Name
Sig[0].Value=Prepar3D.exe
Sig[1].Name=Application Version
Sig[1].Value=4.1.7.22841
Sig[2].Name=Application Timestamp
Sig[2].Value=59d67e95
Sig[3].Name=Fault Module Name
Sig[3].Value=ucrtbase.dll
Sig[4].Name=Fault Module Version
Sig[4].Value=10.0.16299.214
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=e71e5dfe
Sig[6].Name=Exception Offset
Sig[6].Value=000000000006b79e
Sig[7].Name=Exception Code
Sig[7].Value=c0000409
Sig[8].Name=Exception Data
Sig[8].Value=0000000000000007
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=10.0.16299.2.0.0.768.101
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=8271
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=8271a651f4b77d14fc47f4e0c1a568d5
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=9e92
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=9e92398cf8f057f34c926b323e457553
UI[2]=F:\Program Files\Lockheed Martin\Prepar3D v4\Prepar3D.exe
UI[3]=Prepar3D exe has stopped working
UI[4]=Windows can check online for a solution to the problem.
saharatj98
Posts: 23
Joined: Sun Oct 15, 2017 8:46 am

Re: View change crash

Post by saharatj98 »

which is now a ucrtbase.dll module. I command promt scanned, nothing, ran the restore healthy online command. still CTD. I\m pulling my hair out here.
Prepar3D.exe Stopped working 2/4/2018 1:11:06 AM All Users 0xc0000409 The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.
0x0006b79e ucrtbase.dll 10.0.16299.214 F:\Program Files\Lockheed Martin\Prepar3D v4\Prepar3D.exe C:\Users\All Users\Microsoft\Windows\WER\ReportArchive\AppCrash_Prepar3D.exe_a5c0cf16a5565e24f0eea4bb1b478f1090e916e4_911d388a_0ce1fb0f\Report.wer
Locked