The engine is not working as expected? Documentation is wrong or out of date? Let us know here!
GrayRiver
Posts: 2 Joined: 17 Feb 2023 08:58
Post
by GrayRiver » 17 Feb 2023 09:39
If produce name has a trailing whitespace, initialization process will not complete in the built app. (e.g. "NovelGame ")
(Project Settings -> Player -> Product Name)
Removing the trailing whitespace resolves this issue, but this problem occurs without an error, so it may be difficult to determine the cause, so please resolve this issue if possible.
Sorry if my English is wrong.
Elringus
admin
Posts: 538 Joined: 11 May 2020 18:03
Post
by Elringus » 17 Feb 2023 12:29
Please share Naninovel version, Unity version, target platform and full log with stacktrace from the build after the issue occurs (make sure to enable development build with full logging). I'd also recommend joining our Discord and registering the license to receive proper support: https://naninovel.com/support/#naninovel-support
GrayRiver
Posts: 2 Joined: 17 Feb 2023 08:58
Post
by GrayRiver » 18 Feb 2023 11:07
Sorry for my forgetting important information !
Unity version: 2020.3.32f1 and 2021.3.18f1
Naninovel version: 1.17 and 1.18 that was updated (imported when 1.17)
Target Platform: Windows x86_64
Compression Method: Default/LZ4/LZ4HC
Log:
Code: Select all
Naninovel.Error: Slot 'Settings' not found when loading 'Naninovel.SettingsStateMap' data.
at Naninovel.IOSaveSlotManager`1+<LoadAsync>d__12[TData].MoveNext () [0x0003c] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\SaveSlotManager\IOSaveSlotManager.cs:113
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a1e9f114a6e64f4eacb529fc802ec93d>:0
at Naninovel.UniTaskCompletionSource`1[T].Naninovel.Async.IAwaiter<T>.GetResult () [0x00026] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTaskCompletionSource.cs:239
at Naninovel.UniTask`1[T].get_Result () [0x00018] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:276
at Naninovel.UniTask`1+Awaiter[T].GetResult () [0x00000] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:400
at Naninovel.IOSaveSlotManager`1+<LoadOrDefaultAsync>d__13[TData].MoveNext () [0x000c3] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\SaveSlotManager\IOSaveSlotManager.cs:126
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a1e9f114a6e64f4eacb529fc802ec93d>:0
at Naninovel.UniTaskCompletionSource`1[T].Naninovel.Async.IAwaiter<T>.GetResult () [0x00026] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTaskCompletionSource.cs:239
at Naninovel.UniTask`1[T].get_Result () [0x00018] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:276
at Naninovel.UniTask`1+Awaiter[T].GetResult () [0x00000] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:400
at Naninovel.StateManager+<<PerformPostEngineInitializationTasks>g__LoadSettingsAsync|92_0>d.MoveNext () [0x00043] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\State\StateManager.cs:328
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a1e9f114a6e64f4eacb529fc802ec93d>:0
at Naninovel.UniTaskCompletionSource.Naninovel.Async.IAwaiter.GetResult () [0x0001f] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTaskCompletionSource.cs:91
at Naninovel.UniTask.GetResult () [0x00001] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:46
at Naninovel.UniTask+Awaiter.GetResult () [0x00000] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:201
at Naninovel.StateManager+<PerformPostEngineInitializationTasks>d__92.MoveNext () [0x0002e] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\State\StateManager.cs:318
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a1e9f114a6e64f4eacb529fc802ec93d>:0
at Naninovel.UniTaskCompletionSource.Naninovel.Async.IAwaiter.GetResult () [0x0001f] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTaskCompletionSource.cs:91
at Naninovel.UniTask.GetResult () [0x00001] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:46
at Naninovel.UniTask+Awaiter.GetResult () [0x00000] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:201
at Naninovel.Engine+<InitializeAsync>d__43.MoveNext () [0x00399] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Engine\Engine.cs:147
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a1e9f114a6e64f4eacb529fc802ec93d>:0
at Naninovel.UniTaskCompletionSource.Naninovel.Async.IAwaiter.GetResult () [0x0001f] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTaskCompletionSource.cs:91
at Naninovel.UniTask.GetResult () [0x00001] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:46
at Naninovel.UniTask+Awaiter.GetResult () [0x00000] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:201
at Naninovel.RuntimeInitializer+<InitializeAsync>d__3.MoveNext () [0x005bd] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Engine\RuntimeInitializer.cs:90
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a1e9f114a6e64f4eacb529fc802ec93d>:0
at Naninovel.UniTaskCompletionSource.Naninovel.Async.IAwaiter.GetResult () [0x0001f] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTaskCompletionSource.cs:91
at Naninovel.UniTask.GetResult () [0x00001] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:46
at Naninovel.UniTask+Awaiter.GetResult () [0x00000] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTask.cs:201
at Naninovel.UniTaskExtensions+<ForgetCore>d__19.MoveNext () [0x0001b] in C:\Users\{username}\NaninovelDefault\Assets\Naninovel\Runtime\Common\Async\UniTask\Public\UniTaskExtensions.cs:189
0x00007ffd00eee44c (UnityPlayer)
0x00007ffd00ef3f79 (UnityPlayer)
0x00007ffd00ed2c18 (UnityPlayer)
0x00007ffd023a98c0 (UnityPlayer) UnityMain
0x00007ffd019f4bb3 (UnityPlayer) UnityMain
0x0000017e1834548e (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x0000017e1834514b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x0000017e18344e90 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x0000017e18344d55 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x0000017e1833db63 (Mono JIT Code) [UniTaskScheduler.cs:66] Naninovel.Async.UniTaskScheduler:PublishUnobservedTaskException (System.Exception)
0x0000017e1833d933 (Mono JIT Code) [AsyncUniTaskVoidMethodBuilder.cs:30] Naninovel.Async.CompilerServices.AsyncUniTaskVoidMethodBuilder:SetException (System.Exception)
0x0000017e18209ac3 (Mono JIT Code) [UniTaskExtensions.cs:189] Naninovel.UniTaskExtensions/<ForgetCore>d__19:MoveNext ()
0x0000017e1828f99f (Mono JIT Code) [MoveNextRunner.cs:17] Naninovel.Async.CompilerServices.MoveNextRunner`1<TStateMachine_REF>:Run ()
0x0000017e18290d04 (Mono JIT Code) [UniTaskCompletionSource.cs:149] Naninovel.UniTaskCompletionSource:TryInvokeContinuation ()
0x0000017e1833d8bb (Mono JIT Code) [UniTaskCompletionSource.cs:179] Naninovel.UniTaskCompletionSource:TrySetException (System.Exception)
0x0000017e1833d76b (Mono JIT Code) [AsyncUniTaskMethodBuilder.cs:59] Naninovel.Async.CompilerServices.AsyncUniTaskMethodBuilder:SetException (System.Exception)
0x0000017e18193b6b (Mono JIT Code) [RuntimeInitializer.cs:125] Naninovel.RuntimeInitializer/<InitializeAsync>d__3:MoveNext ()
0x0000017e1828f99f (Mono JIT Code) [MoveNextRunner.cs:17] Naninovel.Async.CompilerServices.MoveNextRunner`1<TStateMachine_REF>:Run ()
0x0000017e18290d04 (Mono JIT Code) [UniTaskCompletionSource.cs:149] Naninovel.UniTaskCompletionSource:TryInvokeContinuation ()
0x0000017e1833d8bb (Mono JIT Code) [UniTaskCompletionSource.cs:179] Naninovel.UniTaskCompletionSource:TrySetException (System.Exception)
0x0000017e1833d76b (Mono JIT Code) [AsyncUniTaskMethodBuilder.cs:59] Naninovel.Async.CompilerServices.AsyncUniTaskMethodBuilder:SetException (System.Exception)
0x0000017e182773d3 (Mono JIT Code) [Engine.cs:152] Naninovel.Engine/<InitializeAsync>d__43:MoveNext ()
0x0000017e1828f99f (Mono JIT Code) [MoveNextRunner.cs:17] Naninovel.Async.CompilerServices.MoveNextRunner`1<TStateMachine_REF>:Run ()
0x0000017e18290d04 (Mono JIT Code) [UniTaskCompletionSource.cs:149] Naninovel.UniTaskCompletionSource:TryInvokeContinuation ()
0x0000017e18290be3 (Mono JIT Code) [UniTaskCompletionSource.cs:168] Naninovel.UniTaskCompletionSource:TrySetResult ()
0x0000017e18290b73 (Mono JIT Code) [AsyncUniTaskMethodBuilder.cs:74] Naninovel.Async.CompilerServices.AsyncUniTaskMethodBuilder:SetResult ()
0x0000017e1828114b (Mono JIT Code) [InputManager.cs:74] Naninovel.InputManager/<InitializeServiceAsync>d__14:MoveNext ()
0x0000017e1828f99f (Mono JIT Code) [MoveNextRunner.cs:17] Naninovel.Async.CompilerServices.MoveNextRunner`1<TStateMachine_REF>:Run ()
0x0000017e1828405b (Mono JIT Code) [ContinuationQueue.cs:193] Naninovel.Async.Internal.ContinuationQueue:RunCore ()
0x0000017e1828f94b (Mono JIT Code) [ContinuationQueue.cs:163] Naninovel.Async.Internal.ContinuationQueue:PostLateUpdate ()
0x0000017e182839cb (Mono JIT Code) [ContinuationQueue.cs:131] Naninovel.Async.Internal.ContinuationQueue:Run ()
0x0000017deac82950 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffd04b4f1e0 (mono-2.0-bdwgc) mono_get_runtime_build_info
0x00007ffd04ad2ac2 (mono-2.0-bdwgc) mono_perfcounters_init
0x00007ffd04adbb1f (mono-2.0-bdwgc) mono_runtime_invoke
0x00007ffd0194542d (UnityPlayer) UnityMain
0x00007ffd01941bac (UnityPlayer) UnityMain
0x00007ffd0150593d (UnityPlayer) UnityMain
0x00007ffd0150595f (UnityPlayer) UnityMain
0x00007ffd0150ba82 (UnityPlayer) UnityMain
0x00007ffd00f22dfa (UnityPlayer)
0x00007ffd00f20a6b (UnityPlayer)
0x00007ffd00f26786 (UnityPlayer)
0x00007ffd00f2774b (UnityPlayer) UnityMain
0x00007ff74f1611f2 (NovelGame)
0x00007ffddbad7614 (KERNEL32) BaseThreadInitThunk
0x00007ffddd3626a1 (ntdll) RtlUserThreadStart
idaot
support
Posts: 275 Joined: 01 Aug 2020 08:25
Post
by idaot » 18 Feb 2023 11:43
I don't recommend intentionally leaving whitespaces at the end of names, especially as there's no reason it is ever needed (that I can think of). Just like with variable names, I'd exercise caution with whitespaces in names as programming in general is very sensitive to them.
Also I don't personally recommend using 2020.3.34 with 1.18 as it's potentially outdated (released in May 2022 versus Naninovel 1.18 released in late October 2022). 2021.3.18 should be OK.