Search Issue Tracker

Not Reproducible

Votes

2

Found in

5.6.0a2

Issue ID

853938

Regression

No

[Win][TextureConverter][API] ::Rgba32FloatToRgba32FloatConverter crash after converting RGBA32 Render Texture to RGBA float

Graphics - General

-

Steps to repro:

1. Open attached project and 'test' scene;
2. In the upper context menu bar select EXR -> Save RenderTexture;
3. Drag 'New Render texture' file from the Assets folder to an Input field of the opened window;
4. Click 'Apply' button several time (more that 6).

Actual result:
After several clicks Editor will crash. See attached gif video.

Last calls from the stacktrace:

0x00000001409E7FE0 (Unity) details::IdentityFunc::CopyImage<details::Rgba32FloatToRgba32FloatConverter>
0x00000001409EC8CB (Unity) details::CopyImageImpl<details::IdentityFunc>
0x00000001409F06CB (Unity) GfxDeviceD3D11Base::ReadbackImage
0x0000000140A5BC95 (Unity) GfxDeviceWorker::RunCommand
0x0000000140A602DF (Unity) GfxDeviceWorker::Run
0x0000000140A43E7D (Unity) GfxDeviceWorker::RunGfxDeviceWorker
0x0000000141013D7C (Unity) Thread::RunThreadWrapper
0x00007FFAC7D78364 (KERNEL32) BaseThreadInitThunk
0x00007FFAC7F35E91 (ntdll) RtlUserThreadStart

Expected result:
Editor should not crash when converting textures.

Notes:
- Possible reason of this bug is that there is no proper code path for converting from RGBA32 RenderTexture to float32 texture when using ReadPixels API;
- Reproducible on Windows 10;
- Not reproducible in OSX 10.12.1;
- Reproducible in 5.6.0a3, 5.6.0a2;
- Wasn't able to test in 5.5, since converting to EXR feature was only introduced in 5.6, however it might also happen in earlier versions when converting to .jpg or to .png with using ReadPixels API;
- Crash may happen randomly on other graphic APIs and the invalid memory access pattern differs between platforms.

Comments (2)

  1. Seneral

    Mar 01, 2018 21:16

    I get it too - not done extensive tests but it also happens when some of my RenderTextures are 8Bit (RGBA32). Not as big of a problem for me though.

  2. mgto

    Jul 05, 2017 07:53

    I have a similar problem where the Editor (can) crashes when rendering to a by code generated and updated RGBAFloat cubemap which is used as custom environment reflection source

    (5.6.2f1)

    0x0000000140B180F0 (Unity) details::IdentityFunc::CopyImage<details::Rgba32FloatToRgba32FloatConverter>
    0x0000000140B1C6EB (Unity) details::CopyImageImpl<details::IdentityFunc>
    0x0000000140B20514 (Unity) GfxDeviceD3D11Base::ReadbackImage
    0x0000000140B8EB4E (Unity) GfxDeviceWorker::RunCommand
    0x0000000140B938FF (Unity) GfxDeviceWorker::Run
    0x0000000140B748C0 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
    0x00000001411D341C (Unity) Thread::RunThreadWrapper
    0x00007FFD801E8102 (KERNEL32) BaseThreadInitThunk
    0x00007FFD803BC5B4 (ntdll) RtlUserThreadStart

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.