Search Unity

Question Crash while Building Asset Bundles.

Discussion in 'Editor & General Support' started by dubyaaaaaa, Jan 16, 2023.

  1. dubyaaaaaa

    dubyaaaaaa

    Joined:
    Jan 16, 2023
    Posts:
    1
    Unity Editor doesn't provide any insight. When I try to build asset bundles, it crashes part way through. I have checked if my prefabs are missing objects and looked around for a fix to no avail.

    The crash reports stacktrace is below. I would be happy to provide more info to get to the bottom of this.
    The final SIGSEGV message leads me to believe there is an issue with the original game files (working on a mod)

    Code (CSharp):
    1. at <unknown> <0xffffffff>
    2.   at (wrapper managed-to-native) UnityEditor.BuildPipeline.BuildAssetBundlesInternal (string,UnityEditor.BuildAssetBundleOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget) [0x0000a] in <68089899e4c84456bfc1de3436accf4a>:0
    3.   at UnityEditor.BuildPipeline.BuildAssetBundles (string,UnityEditor.BuildAssetBundleOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget) [0x0003c] in <68089899e4c84456bfc1de3436accf4a>:0
    4.   at UnityEditor.BuildPipeline.BuildAssetBundles (string,UnityEditor.BuildAssetBundleOptions,UnityEditor.BuildTarget) [0x0000c] in <68089899e4c84456bfc1de3436accf4a>:0
    5.   at BuildAssetBundle.BuildABs () [0x0002b] in C:\Users\Owner\Desktop\VTOLVR 1.5.7 REAL\Assets\Editor\BuildAssetBundle.cs:20
    6.   at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001f] in <695d1cc93cca45069c528c15c9fdd749>:0
    7.  
    8. Got a SIGSEGV while executing native code. This usually indicates
    9. a fatal error in the mono runtime or one of the native libraries
    10. used by your application.
    11.  
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    Try perhaps reimport-all, then try building.

    If that doesn't fix it, time to start bisecting: remove HALF of the assets involved in the bundle, retry

    As you intuit, it's probably just one corrupt file, unless it's something like grossly running out of memory, or a bug in the asset bundle maker code.
     
  3. jafferraza007

    jafferraza007

    Joined:
    May 7, 2022
    Posts:
    2
    I have one asset which is a scriptable object which is causing the unity to crash while loading assetbunlde. the asset doesn't have a missing reference and the script also looks fine. Doesn anybody have a suggestion of what the issue could be?
     

    Attached Files: