Search Issue Tracker
Fixed in 2018.3.X
Votes
1
Found in
2018.2
2018.2.0f2
Issue ID
1064955
Regression
Yes
Crash on ImageConversionBindings::LoadImage when calling LoadImage on unassigned Texture2D
How to reproduce:
1. Open the attached "1064955_repro.zip" project
2. Open the "Main" scene
3. Enter Play mode
-- Editor crash
Reproducible with - 2018.2.0a3, 2018.2.2f1, 2018.3.0a7
Not reproducible with - 2017.1.5f1, 2017.2.3p2, 2017.4.8f1, 2018.1.9f1, 2018.2.0a2
Notes:
- On versions before the regression, the reproduction steps result in a Console error, that warns about the NullReferenceException.
- The issue occurs on the Build as well.
Stack trace:
(Unity) ImageConversionBindings::LoadImage
(Unity) ImageConversion_CUSTOM_LoadImage
(Mono JIT Code) (wrapper managed-to-native) UnityEngine.ImageConversion:LoadImage (UnityEngine.Texture2D,byte[],bool)
(Mono JIT Code) [C:\buildslave\unity\build\Modules\ImageConversion\ScriptBindings\ImageConversion.bindings.cs:34] UnityEngine.ImageConversion:LoadImage (UnityEngine.Texture2D,byte[])
(Mono JIT Code) [C:\Users\QA Students\Desktop\1064955\Assets\ImageLoader.cs:9] ImageLoader:Start ()
(Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
(mono) [c:\buildslave\mono\build\mono\mini\mini.c:4937] mono_jit_runtime_invoke
(mono) [c:\buildslave\mono\build\mono\metadata\object.c:2623] mono_runtime_invoke
(Unity) scripting_method_invoke
(Unity) ScriptingInvocation::Invoke
(Unity) MonoBehaviour::InvokeMethodOrCoroutineChecked
(Unity) MonoBehaviour::InvokeMethodOrCoroutineChecked
(Unity) MonoBehaviour::Start
<...>
Fixed in 2018.3.0a12
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
Add comment