This topic has been locked
EvilBro Nov 5, 2017 @ 11:02am
<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?
Last edited by EvilBro; Nov 11, 2017 @ 12:26pm
< >
Showing 61-67 of 67 comments
Red Eagle LXIX Apr 24, 2018 @ 9:20am 
I'm just going to say thanks for this post. I've given this link to quite a few it has helped.
cowvet46 May 7, 2018 @ 9:45am 
Evening All.

I've been struggling with the same issue as everyone else on here. I run a Radeon R7 200 series. Going into to the Catalyst drivers and altering the scaling mode in the display settings has made some Steam Unity games work but not all.

I have found this to help with those that don't work. Right-click on the game in question and go into properties. Then select launch options and add the following line without quotations

"-window-mode exclusive"

This has allowed some of my games to boot up far enough that you can get to the menu. It may look quite ugly but change the options in game and you're good to go! This hasn't worked with every game, notably the ones that open with a thin line down the middle of the screen e.g. Carrier Deck. However it has worked for those that were still opening with just a black screen and the menu music e.g. Cities: Skylines and Subnautica.

Hope this helps someone and if anyone else has any others fixes that work I'd be very grateful to know them!!
Ice spice May 26, 2018 @ 2:47am 
Originally posted by cowvet46:
Evening All.

I've been struggling with the same issue as everyone else on here. I run a Radeon R7 200 series. Going into to the Catalyst drivers and altering the scaling mode in the display settings has made some Steam Unity games work but not all.

I have found this to help with those that don't work. Right-click on the game in question and go into properties. Then select launch options and add the following line without quotations

"-window-mode exclusive"

This has allowed some of my games to boot up far enough that you can get to the menu. It may look quite ugly but change the options in game and you're good to go! This hasn't worked with every game, notably the ones that open with a thin line down the middle of the screen e.g. Carrier Deck. However it has worked for those that were still opening with just a black screen and the menu music e.g. Cities: Skylines and Subnautica.

Hope this helps someone and if anyone else has any others fixes that work I'd be very grateful to know them!!

Omg thank you this did it for me, I am going to attach this to Paradox Forums. You're the best!
Wolfgang Jun 16, 2018 @ 8:29am 
Originally posted by zeotherm:
For the record, I had the same issue and came upon this thread. My laptop has a Nvidia GTX 860M and an Intel Integrated Graphics adapter. What I found that fixed this issue was to go into the Intel Control panel and switch the 'Scaling' option from "Maintain Display Scaling" to "Maintain Aspect Ratio"

Now all my Unity based games seem to be running fine, where as before I got that exception in them after the Windows Fall Update. So, seems to NOT be an NVidia thing, but a Intel thing. Hope this can help someone out.
Thanks very very much. It works!:steamhappy:
G•H•O•S•T Jun 30, 2018 @ 11:47am 
Originally posted by 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).

Thank you! This fixed it for me. After Upgrading my PC from WIN7 to WIN10 i had the same problem. :steamhappy:
q_helix Jul 21, 2018 @ 7:23pm 
Just wanted to say thanks to @EvilBro and @cowvet46, a combination of both suggestions eventually helped me get the game up and running once again. I've been struggling to get the game working since the April patch of Windows and only just came across this thread today while trying to get the game working again for the new ETG update that just dropped.

This thread should be pinned considering how many people this has helped...
Last edited by q_helix; Jul 21, 2018 @ 7:24pm
phrontisteries Jul 22, 2018 @ 12:01pm 
Originally posted by zeotherm:
For the record, I had the same issue and came upon this thread. My laptop has a Nvidia GTX 860M and an Intel Integrated Graphics adapter. What I found that fixed this issue was to go into the Intel Control panel and switch the 'Scaling' option from "Maintain Display Scaling" to "Maintain Aspect Ratio"

Now all my Unity based games seem to be running fine, where as before I got that exception in them after the Windows Fall Update. So, seems to NOT be an NVidia thing, but a Intel thing. Hope this can help someone out.

Ctrl + Alt + F11
Brings up the Scaling Panel:
Maintain Aspect Ratio

THANK YOU!
< >
Showing 61-67 of 67 comments
Per page: 1530 50

Date Posted: Nov 5, 2017 @ 11:02am
Posts: 67