Search Unity

Bug Assertion failed on expression: 'GPUWidth == m_DataWidth'

Discussion in 'Universal Render Pipeline' started by Zaddo, Dec 6, 2022.

  1. Zaddo

    Zaddo

    Joined:
    May 19, 2012
    Posts:
    78
    I am getting a batch of errors regularly. It doesn't seem to break anything, but I would love to get rid of them.

    Is there any way to track what is generating these. I am guessing it is a shader from one of the unity store assets I am using. I tried removing them, one by one, with no success tracking down what is causing this.

    This error started after I upgraded to 2021.3.15f1, from 2020.3. I even spent a full day creating a new project and adding all my content back in, but the error returned.

    Edit: I managed to track down the problem. It is with EasyRoads3D. I have contacted the developer for support.

    Code (CSharp):
    1. Assertion failed on expression: 'GPUWidth == m_DataWidth'
    2. 0x00007ff65c9ac77d (Unity) StackWalker::GetCurrentCallstack
    3. 0x00007ff65c9b3339 (Unity) StackWalker::ShowCallstack
    4. 0x00007ff65d920003 (Unity) GetStacktrace
    5. 0x00007ff65dfbfe1d (Unity) DebugStringToFile
    6. 0x00007ff65dfbfb42 (Unity) AssertImplementation
    7. 0x00007ff65c468f65 (Unity) Texture2D::CreatePixelDataWhenReading
    8. 0x00007ff65c4641a1 (Unity) Texture2D::Transfer<YAMLRead>
    9. 0x00007ff65c4757ba (Unity) Texture2D::VirtualRedirectTransfer
    10. 0x00007ff65c9795bc (Unity) SerializedFile::ReadObject
    11. 0x00007ff65c95e2d2 (Unity) PersistentManager::ReadAndActivateObjectThreaded
    12. 0x00007ff65c95b012 (Unity) PersistentManager::LoadFileCompletelyThreaded
    13. 0x00007ff65c5cf332 (Unity) LoadSceneOperation::Perform
    14. 0x00007ff65c5d044b (Unity) PreloadManager::ProcessSingleOperation
    15. 0x00007ff65c5d0ab6 (Unity) PreloadManager::Run
    16. 0x00007ff65c7378e7 (Unity) Thread::RunThreadWrapper
    17. 0x00007ffd6c2b244d (KERNEL32) BaseThreadInitThunk
    18. 0x00007ffd6d62dfb8 (ntdll) RtlUserThreadStar
    19.  
    20.  
    21.  
    22. Assertion failed on expression: 'isTexDataAllowed'
    23. 0x00007ff65c9ac77d (Unity) StackWalker::GetCurrentCallstack
    24. 0x00007ff65c9b3339 (Unity) StackWalker::ShowCallstack
    25. 0x00007ff65d920003 (Unity) GetStacktrace
    26. 0x00007ff65dfbfe1d (Unity) DebugStringToFile
    27. 0x00007ff65dfbfb42 (Unity) AssertImplementation
    28. 0x00007ff65c474314 (Unity) Texture2D::UploadTexture
    29. 0x00007ff65c4666fc (Unity) Texture2D::AwakeFromLoad
    30. 0x00007ff65c987819 (Unity) AwakeFromLoadQueue::PersistentManagerAwakeSingleObject
    31. 0x00007ff65c959df7 (Unity) PersistentManager::IntegrateObjectAndUnlockIntegrationMutexInternal
    32. 0x00007ff65c5ce370 (Unity) TimeSliceAwakeFromLoadQueue::IntegrateTimeSliced
    33. 0x00007ff65c5ce095 (Unity) LoadSceneOperation::IntegrateTimeSliced
    34. 0x00007ff65c5d1976 (Unity) PreloadManager::UpdatePreloadingSingleStep
    35. 0x00007ff65c5d1fff (Unity) PreloadManager::WaitForAllAsyncOperationsToComplete
    36. 0x00007ff65d7b671c (Unity) EditorSceneManager::RestoreSceneBackups
    37. 0x00007ff65d7b6d29 (Unity) EditorSceneManager::RestoreSceneManagerSetup
    38. 0x00007ff65d7b118b (Unity) EditorSceneManager::LoadLastSceneManagerSetup
    39. 0x00007ff65d4ce39e (Unity) RestoreLastOpenedScenes
    40. 0x00007ff65d4c01e1 (Unity) Application::FinishLoadingProject
    41. 0x00007ff65d92a78c (Unity) WinMain
    42. 0x00007ff65ecccade (Unity) __scrt_common_main_seh
    43. 0x00007ffd6c2b244d (KERNEL32) BaseThreadInitThunk
    44. 0x00007ffd6d62dfb8 (ntdll) RtlUserThreadStart
    45.  
    46.  
    47. d3d11: failed to create 2D texture id=309 width=750 height=200 mips=1 dxgifmt=72 [D3D error was 80070057]
    48.  
    49. 0x00007ff65c9ac77d (Unity) StackWalker::GetCurrentCallstack
    50. 0x00007ff65c9b3339 (Unity) StackWalker::ShowCallstack
    51. 0x00007ff65d920003 (Unity) GetStacktrace
    52. 0x00007ff65dfbfe1d (Unity) DebugStringToFile
    53. 0x00007ff65ca2f8e8 (Unity) TexturesD3D11Base::CreateDefaultTexture
    54. 0x00007ff65ca369c8 (Unity) TexturesD3D11Base::UploadTexture2D
    55. 0x00007ff65ca2c77d (Unity) GfxDeviceD3D11Base::UploadTexture2D
    56. 0x00007ff65e0480f5 (Unity) GfxDeviceWorker::RunCommand
    57. 0x00007ff65e05005d (Unity) GfxDeviceWorker::RunExt
    58. 0x00007ff65e050178 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
    59. 0x00007ff65c7378e7 (Unity) Thread::RunThreadWrapper
    60. 0x00007ffd6c2b244d (KERNEL32) BaseThreadInitThunk
    61. 0x00007ffd6d62dfb8 (ntdll) RtlUserThreadStart
    62.  
    63.  
    64. d3d11: failed to create 2D texture shader resource view id=309 [D3D error was 80070057]
    65.  
    66. 0x00007ff65c9ac77d (Unity) StackWalker::GetCurrentCallstack
    67. 0x00007ff65c9b3339 (Unity) StackWalker::ShowCallstack
    68. 0x00007ff65d920003 (Unity) GetStacktrace
    69. 0x00007ff65dfbfe1d (Unity) DebugStringToFile
    70. 0x00007ff65ca2f53b (Unity) TexturesD3D11Base::CreateDefaultSRV
    71. 0x00007ff65ca36a0e (Unity) TexturesD3D11Base::UploadTexture2D
    72. 0x00007ff65ca2c77d (Unity) GfxDeviceD3D11Base::UploadTexture2D
    73. 0x00007ff65e0480f5 (Unity) GfxDeviceWorker::RunCommand
    74. 0x00007ff65e05005d (Unity) GfxDeviceWorker::RunExt
    75. 0x00007ff65e050178 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
    76. 0x00007ff65c7378e7 (Unity) Thread::RunThreadWrapper
    77. 0x00007ffd6c2b244d (KERNEL32) BaseThreadInitThunk
    78. 0x00007ffd6d62dfb8 (ntdll) RtlUserThreadStart
    79.  
    80.  
    81. d3d11: Failed to create 2D texture in GfxDeviceD3D11
    82. 0x00007ff65c9ac77d (Unity) StackWalker::GetCurrentCallstack
    83. 0x00007ff65c9b3339 (Unity) StackWalker::ShowCallstack
    84. 0x00007ff65d920003 (Unity) GetStacktrace
    85. 0x00007ff65dfbfe1d (Unity) DebugStringToFile
    86. 0x00007ff65dfbfb42 (Unity) AssertImplementation
    87. 0x00007ff65ca36abc (Unity) TexturesD3D11Base::UploadTexture2D
    88. 0x00007ff65ca2c77d (Unity) GfxDeviceD3D11Base::UploadTexture2D
    89. 0x00007ff65e0480f5 (Unity) GfxDeviceWorker::RunCommand
    90. 0x00007ff65e05005d (Unity) GfxDeviceWorker::RunExt
    91. 0x00007ff65e050178 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
    92. 0x00007ff65c7378e7 (Unity) Thread::RunThreadWrapper
    93. 0x00007ffd6c2b244d (KERNEL32) BaseThreadInitThunk
    94. 0x00007ffd6d62dfb8 (ntdll) RtlUserThreadStart
    95.  
    96.  
    97.  
    98.  
    99.  
     
    Last edited: Dec 6, 2022