Jump to content

Viggen freeze during looping


TOViper

Recommended Posts

This is the second flight I got a freeze when doing just a looping over the runway, using Viggen as the only aircraft in a simple single player mission (starting from the mission editor and taking off).

 

It happens when passing the vertical.

 

DCS freezes, and there is not other solution than killing the process via the task manager.

It happend several times in the last days, so now I have enough of it 🤨

 

Edit: had to change title, because it is not related to Marianas Islands only.

 

The LOG is attached.

dcs.log


Edited by TOViper

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

I can reproduce the bug, happend just before. Let's see if I can make a video ...

https://www.youtube.com/watch?v=HPWkmNQgRSs

 


Edited by TOViper
link for video

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

Who in their right mind pulls up through vertical in the Viggen?  Get your nose back down in the mud where it belongs! 😁

  • Like 1

"Subsonic is below Mach 1, supersonic is up to Mach 5. Above Mach 5 is hypersonic. And reentry from space, well, that's like Mach a lot."

Link to comment
Share on other sites

7 hours ago, Machalot said:

Who in their right mind pulls up through vertical in the Viggen?  Get your nose back down in the mud where it belongs! 😁

 

right?! :biggrin:

Intel i7-12700K @ 8x5GHz+4x3.8GHz + 32 GB DDR5 RAM + Nvidia Geforce RTX 2080 (8 GB VRAM) + M.2 SSD + Windows 10 64Bit

 

DCS Panavia Tornado (IDS) really needs to be a thing!

 

Tornado3 small.jpg

Link to comment
Share on other sites

  • TOViper changed the title to Viggen freeze during looping
  • 1 month later...

This bug seems to be happening not only on my machine ... at least I am not alone in the dark.

@RagnarDa, plz help!!

 

https://forums.eagle.ru/topic/280625-viggen-crash-to-desktop/?tab=comments#comment-4760018

 

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

I’ve had this loop-bug happen too; get to the top of a loop and crash.  Unfortunately the game crashes so hard there is no track-file or crash-log.

Turning the mirrors off seems to fix the problem.

I’ll be checking for the bug with a new computer, which is in the mail, this weekend and report back.

Link to comment
Share on other sites

1 hour ago, Spanueh said:

I’ve had this loop-bug happen too; get to the top of a loop and crash.  Unfortunately the game crashes so hard there is no track-file or crash-log.

Turning the mirrors off seems to fix the problem.

I’ll be checking for the bug with a new computer, which is in the mail, this weekend and report back.

Can't confirm this, since I flew the sorties with mirrors off anyway.

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

39 minutes ago, TOViper said:

Can't confirm this, since I flew the sorties with mirrors off anyway.

Agreed, that's my experience as well.

Viggen is love. Viggen is life.

 

[sIGPIC][/sIGPIC]

 

i7-10700K @ 5GHz | RTX 2070 OC | 32GB 3200MHz RAM |

Link to comment
Share on other sites

  • 2 weeks later...

Now, eventually after a few test flights today, I got a LOG file.

Single player, engine out, stalling the aircraft and pitching it violently in a strong nose down attitude (around -90° of pitch).

 

dcs.log

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

New DCS update log from today:

 

  Fixed DCS Crash when looping the aircraft

 

Oh yeah baby yeah baby 🙂


Edited by TOViper

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

Back to work: this is not fixed. Still got a freeze when going through 90° nose down during a looping.

Attached see log.

 

dcs.log

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

  • 1 month later...

Confirmed as well after 3 half cuban eights, the fourth crashed.
edit: I was able to duplicate by flying level ->pull up slightly past vertical -> push forward to slightly past vertical. So level -> ~+95 degrees pitch change -> -6 degrees pitch change and the sim crashed.
I am also in the latest open beta
edit 2: checked the log:

2021-10-29 05:20:26.653 ERROR   VIGGEN: HeatBlur: Assert failed: Value out of range. -. Was nan. Expected between 0.000000 and 6.283185 @ e:\dcs\viggen git\ajs_5\trunk\viggennew\sources\flightmodel\flightdataunit.cpp:695


Tacview-20211028-221902-DCS-04 - AJS37 Training Basic Navigation.txt.acmidcs.log


Edited by CaptCrash
  • Like 1
Link to comment
Share on other sites

On 10/28/2021 at 9:58 PM, CaptCrash said:

Confirmed as well after 3 half cuban eights, the fourth crashed.
edit: I was able to duplicate by flying level ->pull up slightly past vertical -> push forward to slightly past vertical. So level -> ~+95 degrees pitch change -> -6 degrees pitch change and the sim crashed.
I am also in the latest open beta
edit 2: checked the log:

2021-10-29 05:20:26.653 ERROR   VIGGEN: HeatBlur: Assert failed: Value out of range. -. Was nan. Expected between 0.000000 and 6.283185 @ e:\dcs\viggen git\ajs_5\trunk\viggennew\sources\flightmodel\flightdataunit.cpp:695


Tacview-20211028-221902-DCS-04 - AJS37 Training Basic Navigation.txt.acmi 128 kB · 0 downloads dcs.log 63.5 kB · 1 download

 

The expected range of some variable is given as 0 to 2 pi.  I would bet money there is an issue with calculating the yaw, pitch, and roll Euler angles at vertical.  Based on the values 0 to 2 pi, it's likely yaw.  (Pitch is typically -pi/2 to +pi/2, and roll is typically -pi to +pi.)

There is a known singularity in the math at +/-90 deg pitch angle.  A "nan" result could be from trying to divide by zero [which is cos(90°), and appears in the denominator of the yaw equation] or by taking the inverse trig function of a value outside the range [-1, 1]. Both of those operations can appear in the relevant Euler angle equations, depending how they're written. The range exceedance could be the result of floating point rounding error.  These things should only occur very close to 90 deg pitch, which is why sometimes you don't get the crash, and sometimes you do. 

My own hypothesis, anyway.  That's where I would start debugging. 


Edited by Machalot

"Subsonic is below Mach 1, supersonic is up to Mach 5. Above Mach 5 is hypersonic. And reentry from space, well, that's like Mach a lot."

Link to comment
Share on other sites

3 hours ago, Machalot said:

The expected range of some variable is given as 0 to 2 pi.  I would bet money there is an issue with calculating the yaw, pitch, and roll Euler angles at vertical.  Based on the values 0 to 2 pi, it's likely yaw.  (Pitch is typically -pi/2 to +pi/2, and roll is typically -pi to +pi.)

There is a known singularity in the math at +/-90 deg pitch angle.  A "nan" result could be from trying to divide by zero [which is cos(90°), and appears in the denominator of the yaw equation] or by taking the inverse trig function of a value outside the range [-1, 1]. Both of those operations can appear in the relevant Euler angle equations, depending how they're written. The range exceedance could be the result of floating point rounding error.  These things should only occur very close to 90 deg pitch, which is why sometimes you don't get the crash, and sometimes you do. 

My own hypothesis, anyway.  That's where I would start debugging. 

 

My guess is that the attitude indicator is what is causing the nan since DCS would be using quaternions for the flight model

Link to comment
Share on other sites

8 hours ago, CaptCrash said:

My guess is that the attitude indicator is what is causing the nan since DCS would be using quaternions for the flight model

I agree. The error is occurring in flightdataunit.cpp, which seems like a plausible name for some avionics and instrument model(s).


Edited by Machalot

"Subsonic is below Mach 1, supersonic is up to Mach 5. Above Mach 5 is hypersonic. And reentry from space, well, that's like Mach a lot."

Link to comment
Share on other sites

  • 4 weeks later...

Yep, wrong alert. After 1 hour of flying a few sorties I got the freeze again.

2021-11-26 21:04:19.949 ERROR   VIGGEN: HeatBlur: Assert failed: Value out of range. -. Was nan. Expected between 0.000000 and 6.283185 @ e:\dcs\viggen git\ajs_5\trunk\viggennew\sources\flightmodel\flightdataunit.cpp:695

DAMN

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...