Dette emnet er blitt låst
EvilBro 5. nov. 2017 kl. 11.02
<Solved> Unity games won't run on Windows 10 1709
Short story:
Games that use Unity do not work and give an error:
"IndexOutOfRangeException: Array index is out of range.
at UnityEngine.Display.RecreateDisplayList (System.IntPtr[] nativeDisplay) [0x00000] in <filename unknown>:0"
What is wrong? And how do I fix this?

Long story:
A few days ago Windows 10 updated to version 1709. All seemed well until I wanted to play a game of Twilight Struggle. When I started it, there was an icon on the task bar and the title screen music, but no title screen. I "quickly" discovered that this happens with all games in my library that use Unity.

I thought the graphics driver might perhaps be at fault, so I upgraded to the newest version (Nvidia geforce 388.13 for a GTX 650). This changed nothing. I tried several driver versions (376.19, 382.05), but all had the same result.
If I disable the driver, games start normally (albeit really slow). If I look at the outout_log.txt from a Unity based game, I see that the driver it reports is Microsoft Basic Render Driver.
If I enable the driver, I see that it mentions NVIDIA Geforce GTX 650 in the output_log.txt. It also has the following exception in output_log.txt:
"IndexOutOfRangeException: Array index is out of range.
at UnityEngine.Display.RecreateDisplayList (System.IntPtr[] nativeDisplay) [0x00000] in <filename unknown>:0"

I've tried all types of launch settings (dx 9, dx 11, etc.), I've tried with game bar and without, I've tried with overlays (steam's and geforce's) and without and none of it had any impact.
Some games like Teslagrad give the same error in the output_log.txt, but also give a popup that says "Couldn't switch monitor resolution".

Does anyone know what might cause the IndexOutOfRangeException? And how to avoid it? Or what else I can try to troubleshoot this problem further?
Sist redigert av EvilBro; 11. nov. 2017 kl. 12.26
< >
Viser 3145 av 67 kommentarer
Pietruszek 12. jan. 2018 kl. 8.37 
Opprinnelig skrevet av $1NN3R:
yes it is but how do i fix it

I don’t know what are you talking about... There’s a fix using Nvidia Control Panel described in the second comment...
NeoLeprecaun 14. jan. 2018 kl. 6.33 
thanks for the help! i was able to fix it by going into windows settings > display > display adapter properties > Intel HD Graphics Control Panel > Graphics Properties > maintain aspect ratio > apply. now if i can get my speakers to work again... i hate windows updates :(
Hat 20. jan. 2018 kl. 10.21 
So I did this, and the game opened, however it became very laggy and was seemingly "graphically freaking out" as it was very laggy and generally looked like the GPU was damaged, which it obviously wasn't, because it doesn't do this all the time, strangely enough this isn't the case for only Unity games, as if I try to play Source engine games (the Source engine, before portal 2, because portal 2 doesn't have this problem) it graphically glitches around, unless its in windowed mode, anyone know of a way to stop this graphical glitching?
Pietruszek 20. jan. 2018 kl. 10.45 
Try setting the option to the previous state. I didn't need to leave it on the new one: I switched, clicked "Apply", switched back and clicked "Apply" once more. From what I know this method works only because of it's side effects.
Night star 23. jan. 2018 kl. 7.03 
Dear sir, I sincerely thank you for this discussion! I finally found solution to the problem which I thought to be invincivle. Thank you a lot!
kalopsia47 26. jan. 2018 kl. 17.21 
Thank you so much for posting this!
FlindoJimbori 1. feb. 2018 kl. 19.47 
Thank you so much friend!
it is pointless 2. feb. 2018 kl. 7.12 
Thank you so much! Now I can play Cities: Skylines again!
mrrobbrecht 2. feb. 2018 kl. 9.13 
Opprinnelig skrevet av EvilBro:
This post is just to document how I fixed this (Maybe it is of some use to someone):

After some more experimenting, I discovered that Dark Souls 3 didn't work properly either. It opened in a 800x450 windowless box in the top left corner of the desktop. Given that this had nothing to do with Unity, I was a bit perplexed. When I went to the options to change the resolution (within Dark Souls), I couldn't go windowed and the only resolution was 800x450.
I went into GeForce Experience and from there I was able to launch DS3 windowed. In windowed mode, it had all kinds of resolutions it could switch to. As soon as you switched to full screen, only the 800x450 would be available.
I went into Nvidia Control Panel. This is where I changed "Aspect ratio" to "No scaling" on the Adjust desktop size and position page (with "perform scaling on Display"). Suddenly everything was okay again. In DS3 I had options for resolutions. If I started up a Unity game with shift, the Select Monitor was no longer empty, but said "Display 1".
I tried switching back to "Aspect ratio" to see if this would break things again. It did for some games (e.g. Hearthstone), but others kept working. I also tried "Override the scaling mode set by games and programs" and that seem to work as well.

Now I have no idea why this works, but it did (for me).

I can't find the setting to change aspect ratio in the Nvidia Control Panel, could you help me out? I'm really desperate
FlindoJimbori 2. feb. 2018 kl. 9.22 
on the left of nvidia control panel (not geforce experience), you will see 3d settings, display, and video black categories with blue links underneath. under the display category, the second link from the bottom says "Adjust desktop size and position". On this page, you will see at the top:

1. Select the display you would like to change

2. Apply the following settings:

in the apply tthe following settings there are 2 tabs, scaling and size.
In the scaling tab (the left one) you see "Select a scaling mode:" and 3 radio buttons.
The bottom radio button is "No scaling"
Select this and click "apply" at the bottom of the window.

link to picture showing where to find the setting:
https://i.imgur.com/Prp7Smo.png
Sist redigert av FlindoJimbori; 2. feb. 2018 kl. 9.26
mrrobbrecht 2. feb. 2018 kl. 9.26 
Opprinnelig skrevet av FlindoJimbori:
on the left of nvidia control panel (not geforce experience), you will see 3d settings, display, and video black categories with blue links underneath. under the display category, the second link from the bottom says "Adjust desktop size and position". On this page, you will see at the top:

1. Select the display you would like to change

2. Apply the following settings:

in the apply tthe following settings there are 2 tabs, scaling and size.
In the scaling tab (the left one) you see "Select a scaling mode:" and 3 radio buttons.
The bottom radio button is "No scaling"
Select this and click "apply" at the bottom of the window.
It only shows 3D settings for me though.
FlindoJimbori 2. feb. 2018 kl. 9.30 
You do not have the option in the Nvidia control panel since the intel driver / graphics processor is the default processor to handle video scaling. Hence no option in the Nvidia control panel.

In the nvidia control panel you should only have 3D and video options. The "display" options for which the scaling is located in the nvidia control panel is not needed since the intel driver handles that part.

Found this online, ill keep searching to find out how to get your integrated graphics to handle scaling. Do you have a graphics card?
Sist redigert av FlindoJimbori; 2. feb. 2018 kl. 9.32
FlindoJimbori 2. feb. 2018 kl. 9.32 
Is your monitor plugged into your graphics card or motherboard directly?
mrrobbrecht 2. feb. 2018 kl. 9.33 
Opprinnelig skrevet av FlindoJimbori:
Is your monitor plugged into your graphics card or motherboard directly?
I'm using a laptop so I guess that's the situation
FlindoJimbori 2. feb. 2018 kl. 9.35 
Try this:

Opprinnelig skrevet av NeoLeprecaun:
thanks for the help! i was able to fix it by going into windows settings > display > display adapter properties > Intel HD Graphics Control Panel > Graphics Properties > maintain aspect ratio > apply. now if i can get my speakers to work again... i hate windows updates :(
< >
Viser 3145 av 67 kommentarer
Per side: 1530 50

Dato lagt ut: 5. nov. 2017 kl. 11.02
Innlegg: 67