【发布时间】:2021-10-21 17:02:22
【问题描述】:
我面临一个问题,导致编辑器在打开项目后冻结在 Application.UpdateScene 上并在窗口上移动一段时间。我必须结束任务编辑器并再次打开它。由于项目运行良好,因此没有任何合理理由就开始发生这种情况。我第二天醒来打开它然后开始这个问题。我尝试了许多编辑器 LTS 版本仍然是同样的问题。还尝试删除并重新导入所有项目文件仍然相同。 (注意它甚至没有点击播放就发生了)。我在不同的项目中遇到了同样的问题,但我设法通过恢复场景文件抛出源控制来修复它,但我无法在这个项目上修复它。
我会因为它而发疯,我现在正试图解决这个问题 2 周。请帮帮我!!!
编辑器版本:2020.3..20 (LTS)
版本控制:塑料单片机
包管理器日志:
[2021-10-21T16:00:11.124Z][INFO] Command-line: E:\\Unity\\UnityEditor\\2020.3.20f1\\Editor\\Data\\Resources\\PackageManager\\Server\\UnityPackageManager.exe -s 7356 -p 53013 -l 2
[2021-10-21T16:00:11.132Z][INFO] Creating server instance
[2021-10-21T16:00:11.177Z][INFO] Starting Server
[2021-10-21T16:00:11.183Z][INFO] Server started on port [53013]
[2021-10-21T16:00:11.534Z][INFO] GET '/health' <-- Request received
[2021-10-21T16:00:11.536Z][INFO] GET '/health' --> 200 (2 ms)
[2021-10-21T16:00:14.500Z][INFO] GET '/project/registries' <-- Request received
[2021-10-21T16:00:14.515Z][INFO] GET '/project/registries' --> 200 (14 ms)
[2021-10-21T16:00:16.936Z][INFO] GET '/project/registries' <-- Request received
[2021-10-21T16:00:16.941Z][INFO] GET '/project/registries' --> 200 (4 ms)
编辑日志:
[Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-MohamedOsama" (connect: 0.00s, validation: 0.01s, handshake: 1.21s)
Entitlement-based licensing initiated
[LicensingClient] Licenses updated successfully
LICENSE SYSTEM [20211021 18:0:10] Next license update check is after 2021-10-22T16:00:10
LICENSE SYSTEM [20211021 18:0:10] Current license is already valid and activated. Skipping license activation process (Provided username/password will be ignored).
Built from '2020.3/staging' branch; Version is '2020.3.20f1 (41c4e627c95f) revision 4310246'; Using compiler version '192528614'; Build Type 'Release'
OS: 'Windows 10 Pro; OS build 19043.1288; Version 2009; 64bit' Language: 'en' Physical Memory: 24534 MB
[Licensing::Module] Serial number assigned to: "F4-QBVF-S26X-V36R-D3WY-XXXX"
BatchMode: 0, IsHumanControllingUs: 1, StartBugReporterOnCrash: 1, Is64bit: 1, IsPro: 0
[Package Manager] Server::Start -- Port 53013 was selected
COMMAND LINE ARGUMENTS:
E:\Unity\UnityEditor\2020.3.20f1\Editor\Unity.exe
-projectpath
E:\Unity\Projects\FootBallRunner
-useHub
-hubIPC
-cloudEnvironment
production
-licensingIpc
LicenseClient-MohamedOsama
-hubSessionId
c340e180-327e-11ec-8d53-3d11191052fd
-accessToken
sR9bp3EVon4kSQTo4be7M_EiA8CmECmtnH99sQuLb6g00af
Successfully changed project path to: E:\Unity\Projects\FootBallRunner
E:/Unity/Projects/FootBallRunner
Using Asset Import Pipeline V2.
[Package Manager] Restoring resolved packages state from cache
[Package Manager] Done checking package constraints in 0.00s seconds
[Package Manager]
Registered 50 packages:
Packages from [https://packages.unity.com]:
com.unity.cinemachine@2.6.10 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.cinemachine@2.6.10)
com.unity.collab-proxy@1.11.2 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.collab-proxy@1.11.2)
com.unity.ide.rider@2.0.7 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.ide.rider@2.0.7)
com.unity.ide.vscode@1.2.4 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.ide.vscode@1.2.4)
com.unity.mobile.android-logcat@1.2.3 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.mobile.android-logcat@1.2.3)
com.unity.mobile.notifications@1.4.2 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.mobile.notifications@1.4.2)
com.unity.recorder@2.5.5 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.recorder@2.5.5)
com.unity.render-pipelines.universal@10.6.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.render-pipelines.universal@10.6.0)
com.unity.test-framework@1.1.29 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.test-framework@1.1.29)
com.unity.textmeshpro@3.0.6 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.textmeshpro@3.0.6)
com.unity.timeline@1.4.8 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.timeline@1.4.8)
com.unity.ext.nunit@1.0.6 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.ext.nunit@1.0.6)
com.unity.mathematics@1.1.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.mathematics@1.1.0)
com.unity.render-pipelines.core@10.6.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.render-pipelines.core@10.6.0)
com.unity.shadergraph@10.6.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.shadergraph@10.6.0)
com.unity.searcher@4.3.2 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.searcher@4.3.2)
Built-in packages:
com.unity.ugui@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.ugui@1.0.0)
com.unity.modules.ai@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.ai@1.0.0)
com.unity.modules.androidjni@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.androidjni@1.0.0)
com.unity.modules.animation@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.animation@1.0.0)
com.unity.modules.assetbundle@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.assetbundle@1.0.0)
com.unity.modules.audio@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.audio@1.0.0)
com.unity.modules.cloth@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.cloth@1.0.0)
com.unity.modules.director@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.director@1.0.0)
com.unity.modules.imageconversion@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.imageconversion@1.0.0)
com.unity.modules.imgui@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.imgui@1.0.0)
com.unity.modules.jsonserialize@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.jsonserialize@1.0.0)
com.unity.modules.particlesystem@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.particlesystem@1.0.0)
com.unity.modules.physics@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.physics@1.0.0)
com.unity.modules.physics2d@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.physics2d@1.0.0)
com.unity.modules.screencapture@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.screencapture@1.0.0)
com.unity.modules.terrain@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.terrain@1.0.0)
com.unity.modules.terrainphysics@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.terrainphysics@1.0.0)
com.unity.modules.tilemap@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.tilemap@1.0.0)
com.unity.modules.ui@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.ui@1.0.0)
com.unity.modules.uielements@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.uielements@1.0.0)
com.unity.modules.umbra@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.umbra@1.0.0)
com.unity.modules.unityanalytics@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.unityanalytics@1.0.0)
com.unity.modules.unitywebrequest@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.unitywebrequest@1.0.0)
com.unity.modules.unitywebrequestassetbundle@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.unitywebrequestassetbundle@1.0.0)
com.unity.modules.unitywebrequestaudio@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.unitywebrequestaudio@1.0.0)
com.unity.modules.unitywebrequesttexture@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.unitywebrequesttexture@1.0.0)
com.unity.modules.unitywebrequestwww@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.unitywebrequestwww@1.0.0)
com.unity.modules.vehicles@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.vehicles@1.0.0)
com.unity.modules.video@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.video@1.0.0)
com.unity.modules.vr@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.vr@1.0.0)
com.unity.modules.wind@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.wind@1.0.0)
com.unity.modules.xr@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.xr@1.0.0)
com.unity.modules.subsystems@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.subsystems@1.0.0)
com.unity.modules.uielementsnative@1.0.0 (location: E:\Unity\Projects\FootBallRunner\Library\PackageCache\com.unity.modules.uielementsnative@1.0.0)
[Subsystems] No new subsystems found in resolved package list.
Package Manager log level set to [2]
[Package Manager] Done registering packages in 0.07s seconds
Refreshing native plugins compatible for Editor in 81.33 ms, found 5 plugins.
Preloading 0 native plugins for Editor in 0.00 ms.
Initialize engine version: 2020.3.20f1 (41c4e627c95f)
[Subsystems] Discovering subsystems at path E:/Unity/UnityEditor/2020.3.20f1/Editor/Data/Resources/UnitySubsystems
[Subsystems] Discovering subsystems at path E:/Unity/Projects/FootBallRunner/Assets
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: NVIDIA GeForce GTX 1050 Ti (ID=0x1c82)
Vendor:
VRAM: 4018 MB
Driver: 30.0.14.9613
Shader 'MoreMountains/MMRipple': fallback shader 'Particle/AlphaBlended' not found
Initialize mono
Mono path[0] = 'E:/Unity/UnityEditor/2020.3.20f1/Editor/Data/Managed'
Mono path[1] = 'E:/Unity/UnityEditor/2020.3.20f1/Editor/Data/MonoBleedingEdge/lib/mono/unityjit'
Mono config path = 'E:/Unity/UnityEditor/2020.3.20f1/Editor/Data/MonoBleedingEdge/etc'
Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=127.0.0.1:56356
AcceleratorClientConnectionCallback - disconnected - :0
Begin MonoManager ReloadAssembly
Registering precompiled unity dll's ...
Register platform support module: E:/Unity/UnityEditor/2020.3.20f1/Editor/Data/PlaybackEngines/AndroidPlayer/UnityEditor.Android.Extensions.dll
Register platform support module: E:/Unity/UnityEditor/2020.3.20f1/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll
Registered in 0.001384 seconds.
Native extension for WindowsStandalone target not found
Native extension for Android target not found
Refreshing native plugins compatible for Editor in 65.02 ms, found 5 plugins.
Preloading 0 native plugins for Editor in 0.00 ms.
Mono: successfully reloaded assembly
Completed reload, in 1.447 seconds
Domain Reload Profiling:
ReloadAssembly (1470ms)
BeginReloadAssembly (48ms)
ExecutionOrderSort (0ms)
DisableScriptedObjects (0ms)
BackupInstance (0ms)
ReleaseScriptingObjects (0ms)
CreateAndSetChildDomain (1ms)
EndReloadAssembly (414ms)
LoadAssemblies (48ms)
RebuildTransferFunctionScriptingTraits (0ms)
SetupTypeCache (134ms)
ReleaseScriptCaches (0ms)
RebuildScriptCaches (27ms)
SetupLoadedEditorAssemblies (175ms)
LogAssemblyErrors (0ms)
InitializePlatformSupportModulesInManaged (5ms)
SetLoadedEditorAssemblies (0ms)
RefreshPlugins (65ms)
BeforeProcessingInitializeOnLoad (8ms)
ProcessInitializeOnLoadAttributes (71ms)
ProcessInitializeOnLoadMethodAttributes (26ms)
AfterProcessingInitializeOnLoad (0ms)
EditorAssembliesLoaded (0ms)
ExecutionOrderSort2 (0ms)
AwakeInstancesAfterBackupRestoration (0ms)
Platform modules already initialized, skipping
Validating Project structure ... 0.019488 seconds.
Shader import version has changed; will reimport all shaders...
Upgrading shader files ...0.028021 seconds.
Application.AssetDatabase Initial Script Refresh Start
Registering precompiled user dll's ...
Registered in 0.004477 seconds.
AssetDatabase: script compilation time: 0.036388s
Begin MonoManager ReloadAssembly
Native extension for WindowsStandalone target not found
Native extension for Android target not found
Refreshing native plugins compatible for Editor in 65.18 ms, found 5 plugins.
Preloading 0 native plugins for Editor in 0.00 ms.
Mono: successfully reloaded assembly
Completed reload, in 1.140 seconds
Domain Reload Profiling:
ReloadAssembly (1186ms)
BeginReloadAssembly (130ms)
ExecutionOrderSort (0ms)
DisableScriptedObjects (4ms)
BackupInstance (0ms)
ReleaseScriptingObjects (0ms)
CreateAndSetChildDomain (18ms)
EndReloadAssembly (1004ms)
LoadAssemblies (92ms)
RebuildTransferFunctionScriptingTraits (0ms)
SetupTypeCache (316ms)
ReleaseScriptCaches (1ms)
RebuildScriptCaches (67ms)
SetupLoadedEditorAssemblies (347ms)
LogAssemblyErrors (0ms)
InitializePlatformSupportModulesInManaged (5ms)
SetLoadedEditorAssemblies (0ms)
RefreshPlugins (65ms)
BeforeProcessingInitializeOnLoad (75ms)
ProcessInitializeOnLoadAttributes (192ms)
ProcessInitializeOnLoadMethodAttributes (8ms)
AfterProcessingInitializeOnLoad (2ms)
EditorAssembliesLoaded (0ms)
ExecutionOrderSort2 (0ms)
AwakeInstancesAfterBackupRestoration (6ms)
Platform modules already initialized, skipping
RefreshInfo: InitialScriptRefreshV2(NoUpdateAssetOptions) scanfilter: ... 1 filters
RefreshProfiler: Total: 2438.993ms
InvokeBeforeRefreshCallbacks: 0.299ms
ApplyChangesToAssetFolders: 0.052ms
Scan: 129.225ms
OnSourceAssetsModified: 0.000ms
InitializeImportedAssetsSnapshot: 0.233ms
GetAllGuidsForCategorization: 0.603ms
CategorizeAssets: 61.750ms
ImportAndPostprocessOutOfDateAssets: 2201.336ms (2163.394ms without children)
CompileScripts: 37.001ms
PostProcessAllAssets: 0.000ms
EnsureUptoDateAssetsAreRegisteredWithGuidPM: 0.454ms
InitializingProgressBar: 0.016ms
PostProcessAllAssetNotificationsAddChangedAssets: 0.383ms
RestoreLoadedAssetsState: 0.089ms
ReloadSourceAssets: 0.438ms
UnloadImportedAssets: 0.012ms
Hotreload: 1.914ms
FixTempGuids: 0.005ms
GatherAllCurrentPrimaryArtifactRevisions: 0.000ms
UnloadStreamsBegin: 0.750ms
LoadedImportedAssetsSnapshotReleaseGCHandles: 0.026ms
GetLoadedSourceAssetsSnapshot: 0.142ms
PersistCurrentRevisions: 0.879ms
UnloadStreamsEnd: 19.027ms
GenerateScriptTypeHashes: 0.267ms
Untracked: 22.301ms
Application.AssetDatabase Initial Script Refresh End
Application.AssetDatabase.Refresh Start
Refresh completed in 0.083317 seconds.
RefreshInfo: RefreshV2(ForceSynchronousImport) scanfilter:
RefreshProfiler: Total: 83.302ms
Application.AssetDatabase.Refresh End
RefreshInfo: StopAssetImportingV2(ForceSynchronousImport) scanfilter:
RefreshProfiler: Total: 2.991ms
Refresh completed in 0.076554 seconds.
RefreshInfo: RefreshV2(NoUpdateAssetOptions) scanfilter:
RefreshProfiler: Total: 76.526ms
Shader 'MoreMountains/MMRipple': fallback shader 'Particle/AlphaBlended' not found
Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
Initializing Unity extensions:
Unloading 538 Unused Serialized files (Serialized files now loaded: 0)
System memory in use before: 205.7 MB.
System memory in use after: 205.1 MB.
Unloading 589 unused Assets to reduce memory usage. Loaded Objects now: 4325.
Total: 4.666400 ms (FindLiveObjects: 0.389900 ms CreateObjectMapping: 0.206200 ms MarkObjects: 3.410300 ms DeleteObjects: 0.659100 ms)
ProgressiveSceneManager::Cancel()
[MODES] ModeService[none].Initialize
[MODES] ModeService[none].LoadModes
[MODES] Loading mode Default (0) for mode-current-id-FootBallRun
[LAYOUT] About to load Library/CurrentLayout-default.dwlt, keepMainWindow=False
<RI> Initialized touch support.
<RI> Initialized touch support.
<RI> Initialized touch support.
<RI> Initialized touch support.
<RI> Initialized touch support.
<RI> Initialized touch support.
[MODES] ModeService[default].InitializeCurrentMode
[MODES] ModeService[default].UpdateModeMenus
IsTimeToCheckForNewEditor: Update time 1634832345 current 1634832018
<RI> Initializing input.
<RI> Input initialized.
[Project] Loading completed in 10.583 seconds
Project init time: 0.850 seconds
Template init time: 0.000 seconds
Package Manager init time: 0.000 seconds
Asset Database init time: 0.000 seconds
Global illumination init time: 0.000 seconds
Assemblies load time: 0.000 seconds
Unity extensions init time: 0.001 seconds
Asset Database refresh time: 0.000 seconds
Scene opening time: 0.771 seconds
Created GICache directory at C:/Users/MohamedOsama/AppData/LocalLow/Unity/Caches/GiCache. Took: 0.021s, timestamps: [11.085 - 11.106]
gi::BakeBackendSwitch: switching bake backend from 3 to 1.
[00:00:01] Enlighten: Builtin Sky manager started.
TrimDiskCacheJob: Current cache size 0mb
[00:00:01] Enlighten: Finished 1 Bake Ambient Probe job (0.00s execute, 0.00s integrate, 0.05s wallclock)
[collab-accelerator] discovery started due to a new cloud project binding
UPID Received '34ce9347-a810-4a4b-ae49-30b0b0e9df41'.
<RI> Initialized touch support.
[collab-accelerator] Set collab endpoint to https://collab.cloud.unity3d.com (collab-service)
Opening scene 'Assets/_Scenes/GameScene.unity'
Unloading 72 Unused Serialized files (Serialized files now loaded: 0)
Loaded scene 'Assets/_Scenes/GameScene.unity'
Deserialize: 534.806 ms
Integration: 458.953 ms
Integration of assets: 54.984 ms
Thread Wait Time: 0.006 ms
Total Operation Time: 1048.749 ms
System memory in use before: 376.7 MB.
System memory in use after: 359.7 MB.
Unloading 77 unused Assets to reduce memory usage. Loaded Objects now: 34353.
Total: 55.422400 ms (FindLiveObjects: 2.865800 ms CreateObjectMapping: 2.335600 ms MarkObjects: 39.535300 ms DeleteObjects: 10.684500 ms)
Setting up 2 worker threads for Enlighten.
Thread -> id: 1364 -> priority: 1
Thread -> id: 20e8 -> priority: 1
[00:00:01] Enlighten: Finished 1 Bake Ambient Probe job (0.00s execute, 0.00s integrate, 0.38s wallclock)
【问题讨论】:
-
很难从日志文件中看出,但你为什么要调用更新场景?我猜你在更新中有一些 while 或循环
-
这个问题甚至没有点击播放按钮,那么更新调用如何生效?