Steps to reproduce:
- Create a new 3D URP project with AI Assistant package
- Import the attached .jpg image
- Go to AI > Generate New > 3D Object
- Click install next to glTFast
- Select the imported image as the Image Reference for generation
- Click Generate
- Once generated, right-click and select "Promote to a new asset"
- Select the asset and drag it into the Hierarchy
- Observe the Editor
Actual results: The Editor crashes on most attempts. The crash occurs at varying points once generation has started - most often immediately after step 6, also observed at step 9
Expected results: The Editor does not crash
Reproducible with versions: 2.15.0-pre.1 , 2.17.0-pre.1 (6000.5.6f1, 6000.6.0b7, 6000.7.0a4)
Not reproducible with versions: 2.17.0-pre.1 (6000.3.21f1)
Tested on (OS): macOS 26.5, Windows 11
Notes:
- Did not search for regression as the issue is inconsistent and is time consuming. Could be not a regression but on 6000.5, 6000.6 and 6000.7 the issue reproduced almost instantly, while on 6000.3 i didn't encounter it in ~20 minutes of reproduction attempt
- The crash is intermittent. It does not occur on every attempt, and the point at which it occurs varies
- The crashing job varies between occurrences. Observed in PrefixSumDrawsAndInstances and in AllocateBinsPerBatch
- On Windows instead of crashing, the Editor would hang on "Hold on..." after model generation
- Tripo P1 model was used for generation
First few lines of the stack trace:
#0 Unity.Jobs.IJobExtensions.JobStruct`1<UnityEngine.Rendering.PrefixSumDrawsAndInstances>.Execute(ref PrefixSumDrawsAndInstances data, IntPtr additionalPtr, IntPtr bufferRangePatchData, ref JobRanges ranges, int jobIndex)
#1 209746fb9df6b9e66808d1c71bbb249b
#2 ExecuteJob(ManagedJobData*, void ()(void, void*, void*, void*, int), int, unsigned char*)
#3 ForwardJobToManaged(ManagedJobData*)
#4 ujob_execute_job(ujob_control_t*, ujob_lane_t*, ujob_job_t*, ujob_handle_t, unsigned int)