Search Unity

Crash every time domain reloading happens, probably related to Package Manager. Crash report inside

Discussion in 'Editor & General Support' started by Oniros88, Apr 28, 2022.

  1. Oniros88

    Oniros88

    Joined:
    Nov 15, 2014
    Posts:
    150
    Looks like a package manager issue.


    It doesn't happen with a fresh created project.

    Can't play unlesss I disable domain reload. It also crashes each time I update any packagemanager asset. It updates the asset correctly but crashes afterwards because it triggers a domain reload. The crash is when "completing domain" stage appears. It happens too when finishing compiling scripts after saving changes. Again, scripts compile succesfully but editor crashes afterwards.

    I have also to add that if I manage to build the project (both as dedicated server and as client) the project itself runs perfectly without any crash. Its an editor-only issue.

    I also tried deleting all package manager cache. It crashes anyway.

    I'm in Unity Alpha. Didn't happen in beta.


    The report:

    =================================================================
    Native Crash Reporting
    =================================================================
    Got a UNKNOWN while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries
    used by your application.
    =================================================================

    =================================================================
    Managed Stacktrace:
    =================================================================
    at <unknown> <0xffffffff>
    at UnityEditor.PackageManager.UI.Internal.UpmBaseOperation`1:.ctor <0x00162>
    at UnityEditor.PackageManager.UI.Internal.UpmSearchOperation:.ctor <0x0001a>
    at System.Object:runtime_invoke_void__this__ <0x00087>
    =================================================================
    Received signal SIGSEGV
    Obtained 41 stack frames
    0x00007ff85c4f7399 (mono-2.0-bdwgc) [class.c:975] mono_class_inflate_generic_type_with_mempool
    0x00007ff85c7ba34c (mono-2.0-bdwgc) [mini-generic-sharing.c:726] inflate_info
    0x00007ff85c7c06b3 (mono-2.0-bdwgc) [mini-generic-sharing.c:2127] instantiate_info
    0x00007ff85c7c2451 (mono-2.0-bdwgc) [mini-generic-sharing.c:3023] fill_runtime_generic_context
    0x00007ff85c7c25e9 (mono-2.0-bdwgc) [mini-generic-sharing.c:3089] mono_class_fill_runtime_generic_context
    0x00007ff85c7b2b27 (mono-2.0-bdwgc) [mini-trampolines.c:1020] mono_rgctx_lazy_fetch_trampoline
    0x000002b3e38908c6 ((<unknown>))
    0x000002b408ab6ba3 (Mono JIT Code) UnityEditor.PackageManager.UI.Internal.UpmBaseOperation`1<T_REF>:.ctor ()
    0x000002b408ab6a1b (Mono JIT Code) UnityEditor.PackageManager.UI.Internal.UpmSearchOperation:.ctor ()
    0x000002b41518c458 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    0x00007ff85c6c0174 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ff85c5feb34 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ff85c5feccc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    0x00007ff6fc7a5af6 (Unity) mono_runtime_object_init_exception
    0x00007ff6fc7a5b3c (Unity) mono_runtime_object_init_log_exception
    0x00007ff6fc858246 (Unity) GetOrCreateObjectStoredInField
    0x00007ff6fc8049ef (Unity) GeneralMonoObjectToTransferFor<ConfigSettingsRead>
    0x00007ff6fc84d00f (Unity) Transfer_ManagedObject<SafeBinaryRead,0>
    0x00007ff6fc7a5fb6 (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
    0x00007ff6fc84d0f2 (Unity) Transfer_ManagedObject<SafeBinaryRead,0>
    0x00007ff6fc7a60d6 (Unity) ExecuteSerializationCommands<JSONRead>
    0x00007ff6fc7c0318 (Unity) <lambda_e0598d962c4e8f701fca190edc632a99>::eek:perator()
    0x00007ff6fc7ba3cc (Unity) TransferScriptingObject<SafeBinaryRead>
    0x00007ff6fc7bb9ec (Unity) SerializableManagedRefTransfer::TransferScriptingObjectWithSerializedRefSupport<SafeBinaryRead>
    0x00007ff6fc7a7d69 (Unity) SerializableManagedRefTransfer::RestoreBackupImpl<SerializableManagedRefBackupGenerator>
    0x00007ff6fc7a7a75 (Unity) SerializableManagedRefTransfer::RestoreBackup<SerializableManagedRefBackupGenerator>
    0x00007ff6fc86d396 (Unity) SerializableManagedRefsUtilities::RestoreBackups
    0x00007ff6fc7c5748 (Unity) MonoManager::FinalizeReload
    0x00007ff6fdb4f505 (Unity) ScriptingInitializer::FinalizeReload
    0x00007ff6fdbc27dc (Unity) ImportOutOfDateAssets
    0x00007ff6fdbcdcf1 (Unity) RefreshInternalV2
    0x00007ff6fdbd59af (Unity) StopAssetImportingV2Internal
    0x00007ff6fdbcf0cc (Unity) RefreshV2
    0x00007ff6fdb46290 (Unity) AssetDatabase::Refresh
    0x00007ff6fd3ea10f (Unity) Application::AutoRefresh
    0x00007ff6fd3fec87 (Unity) Application::TickTimer
    0x00007ff6fd85db0a (Unity) MainMessageLoop
    0x00007ff6fd86289e (Unity) WinMain
    0x00007ff6feba530e (Unity) __scrt_common_main_seh
    0x00007ff8d8957034 (KERNEL32) BaseThreadInitThunk
    0x00007ff8d9d62651 (ntdll) RtlUserThreadStart
     
  2. Cartographer

    Cartographer

    Joined:
    Mar 19, 2013
    Posts:
    78
    Same issue here, did you open a bug report for it?
     
  3. Ziplock9000

    Ziplock9000

    Joined:
    Jan 26, 2016
    Posts:
    360
    I have the same issue constantly. Happens every time it needs to compile domain. I've tried everything.
    - Uninstalled Unity
    - Upgraded Unity version
    - Deleted Library and Temp folders
    - Changed from Mono to Il2CPP, which fixed it for a while and it's back again.

    I've even put the project on another machine and it crashes there.

    Can't even send a crash report because it says 'Bad Gateway'

    Unity is unusable again.

    U2023. betas to the current 2023.1.5f1