Search Issue Tracker
Fixed in 2017.2.0f3
Fixed in 5.4.X, 5.5.X, 5.6.X, 2017.1.X
Votes
200
Found in
5.4.0f3
Issue ID
835745
Regression
No
[iOS] Changing the screen orientation via a script sometimes results in corrupted view on iOS 10
When the orientation of the screen is changed via a script (with Screen.orientation) on iOS 10 devices, sometimes the screen remains in portrait orientation, but the game view gets flipped and goes over the edge of the screen and leaves black area in the bottom part of the screen.
Steps to reproduce:
1) Open the attached project.
2) Build 'MainScene' for iOS.
3) Run on an iOS 10 device.
4) Press the 'Switch to landscape' UI button.
If the button is clicked 2-3 seconds after launch - the rotation should fail - black area appears at the bottom of the screen, half of the game view is not visible. If it does not, quit the app completely, re-launch it and repeat step 5). This occurs with both Metal and OpenGLES on iOS 10.
Reproduced on:
5.5.0b5, 5.4.1p3, 5.3.6p6
Devices:
iPhone 7 iOS 10 - reproduced
iPhone 7 iOS 10.1 - reproduced
iPhone 7 Plus iOS 10.0.2 - reproduced
iPhone 5 iOS 10 - not reproduced
iPad Mini 2 iOS 10 - not reproduced
iPhone 5S iOS 9.2.1 - not reproduced
It should also be reproducible on iPhone 6.
iPhone 6S iOS 10.2 - reproducible
------------------------
Fixed in 2017.1.0b10, 5.6.2p1, 5.5.4p1, 5.4.5p4
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Unsupported texture format R16 for a swizzle" error and texture is not correctly rendered when using texture Swizzle and reimporting texture asset
- Tab order is incorrect after re-ordering
- [Ubuntu] Red squares instead of ticks in dropdown options
- Multiple simultaneous input with the touch screen sometimes leaves button in not default state
- Crash on ShowDelayedContextMenu(bool) when changing the Size options of a Visual Element in the UIToolkit Inspector
sirono466
Jan 26, 2017 11:07
This problem is still here on Unity 5.5!!
Devices:
iPhone6S plus 60fps mode
with Xcode 8
iBoo-Mobile
Jan 25, 2017 10:52
Please change the Category "iOS" if you can because it happens in Android too with Unity 5.5 versions too.
Its not in all devices but for example in Lg9 or Samsung Galaxy Mini it happens exactly the same, and I'm sure that are more devices with the same problem.
I tested with 5.4 with an empty project and there it works well, but if I move the same project to 5.5 (or 5.6 beta) the problem persists.
I tried DARKMAGICCK's workaround and many others but none of them works. If I change the app and back to it, the problem solves, but that's not an available option.
And my problem dosen't end here, I've been working with the 5.5 for a long time with that project, and if I try to move it into 5.4 version, it crashes everywhere because of "new serialization version for GameObjects" of 5.5 is Not compatible with previous versions. (More info here: https://forum.unity3d.com/threads/downgrading-unity-5-5-to-5-4-causes-failures-in-scenes-and-prefabs.436684/)
So, now I have a game that you can not play and obviously I can not upload to Google Play nor Apple Store, and I can not do anything about it.
So please Unity, fix it as soon as you can.
Akeru
Jan 25, 2017 08:58
In Android happens the same in a lot of devices. This is a major bug, why take so long to be fixed?
nitroy2k
Jan 21, 2017 14:41
Same problem here guys..
Unity 5.5.0p4 Iphone 6s
I had Application.targetFrameRate = 60 and it crashed few times,
Now I removed script for target frame and it works ...
So this error is still active on Unity 5.5..0p4
WHen I get back I get half of screen black.. half is resized game but it stops working...
matbou
Jan 20, 2017 18:47
I don't understand how come this bug is not fixed yet!
Please do something about it Unity.
kongsong
Jan 18, 2017 05:48
I used ETHAN_VISUALVOCAL's way to deal with this issue and I want to thank him but it still is a temporal fix.
Unity team, please fix this issue, I'm waiting for this several months now.
ilmario
Jan 17, 2017 12:55
Come on Unity, please fix this asap, or at least reply here if there is going to be an even bigger delay.
dreamade
Jan 14, 2017 21:12
5.5.0f3 not fixed yet :(
JackmanGomel
Jan 13, 2017 01:44
In the latest patch of January 11, the problem remained. If you decide other ways to write. Thank you
andyvene
Jan 11, 2017 18:06
This kind of crash may happens if you have set a Application.targetFrameRate = 60 for iOS.
Try to remove it and then it won't crash when coming back to app after lock button.
Doesn't affect the home button.