Unity Crash when Building Asset Bundle

Hi everyone.
I have a project with a lot of ScriptableObjects . I want to pack them in an asset bundle . Everything is right when I build them .
Now , I add a simple prefab to this bundle that have just a Unity UI “Image component”.On this condition , when I try to build the bundle , Unity will crashed.
To solve the problem I have tried many time to rebuild the bundle on different condition :

  • Remove the prefab from bundle : Result success
  • Remove the Image component from the prefab but include the prefab : Result success
  • Add the prefab with UI Image component : Result fail.
    I do above many time and I am pretty sure that the Image component cause the crash,

I even try this solution : Game runs in Editor, crashes on startup after build. "Access Violation (0xc0000005)" - Questions & Answers - Unity Discussions , But the crash still happens.
It worth nothing that this only happens in my project . It means when I create a new project and add a prefab with Ui Image component to this prefab , the building bundle works without any problem .

If anyone from unity technology or unity community have encountered this problem and have a solution for this , I will appreciate if he/she share the solution.

Thanks.

Ok guys. I’ve solved the problem . The crash caused by some prefab that was referenced by some ScriptableObject.
That prefab have some missing scripts.Fixing missing scripts solved the problem.But I still don’t understand why adding UI Image component to that simple prefab as I explain in last post made the crash,Because those missing script prefabs was included in my asset bundle and build process was working .