sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

Unity Editor- Sentry Exception for Android Clean Build

Open aicukltd opened this issue 1 year ago • 6 comments

Environment

How do you use Sentry? Sentry SaaS (sentry.io)

Which version of the SDK? 1.2.0

How did you install the package? (Git-URL, Assetstore) Git-URL

Which version of Unity? 2022.2.19F

Is this happening in Unity (editor) or on a player like Android, iOS, Windows? Unity Editor on Clean Build of Android Project

Steps to Reproduce

  1. Install Sentry 1.2.0
  2. Clean Build Android to Folder

Expected Result

Build succeed like every other attempt.

Actual Result

BuildError

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Note: C:\Work\IcyBear\Cubs.Unity\src\IBC\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Work\IcyBear\Cubs.Unity\src\IBC\Library\Bee\Android\Prj\IL2CPP\Gradle\build.gradle' line: 20

* What went wrong:
Execution failed for task ':launcher:bundleRelease'.
> Process 'command 'C:/Work/IcyBear/Cubs.Unity/src/IBC/Library/PackageCache/io.sentry.unity@b0133c9999/Editor/sentry-cli/sentry-cli-Windows-x86_64.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
![BuildError](https://github.com/getsentry/sentry-unity/assets/10234035/129bd499-7ccf-4031-8a08-07b579eed2d2)

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 8s

0x00007ff7791979cd (Unity) StackWalker::GetCurrentCallstack
0x00007ff77919c979 (Unity) StackWalker::ShowCallstack
0x00007ff77a17ed31 (Unity) GetStacktrace
0x00007ff77a8406d2 (Unity) DebugStringToFile
0x00007ff778096aa6 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x0000016e4644bf9a (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x0000016e4644be0b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x0000016e4644b28e (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x0000016e3562058a (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x0000016e3561fcc3 (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException ()
0x0000016e34a48eeb (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
0x0000016e355c6a33 (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput)
0x0000016e354cb863 (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
0x0000016e354ca945 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x0000016e354cafdf (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
0x00007ff915e9e434 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff915ddeb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ff915ddecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff7790bf054 (Unity) scripting_method_invoke
0x00007ff77909f864 (Unity) ScriptingInvocation::Invoke
0x00007ff77abb4091 (Unity) CallMono
0x00007ff77abbcee7 (Unity) PostprocessPlayer
0x00007ff77abb7338 (Unity) DoBuildPlayer_PostBuild
0x00007ff77abb542e (Unity) DoBuildPlayer
0x00007ff77aba8d55 (Unity) BuildPlayer
0x00007ff778938e9f (Unity) BuildPipeline::BuildPlayerInternalNoCheck
0x00007ff7787cd95c (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
0x0000016e3469ce78 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)
0x0000016e3469b943 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x0000016e3467f92b (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x0000016e3467ef4b (Mono JIT Code) UnityEditor.BuildPlayerWindow/<>c__DisplayClass46_0:<GUIBuildButtons>b__0 ()
0x0000016e3467ee3a (Mono JIT Code) UnityEditor.GenericMenu:CatchMenu (object,string[],int)
0x0000016e3467e9c7 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object_object_int (object,intptr,intptr,intptr)
0x00007ff915e9e434 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff915ddeb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ff915ddecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff7790bf054 (Unity) scripting_method_invoke
0x00007ff77909f864 (Unity) ScriptingInvocation::Invoke
0x00007ff779b9138b (Unity) CustomPopupMenuInterface::Execute
0x00007ff779b140c2 (Unity) MenuController::ExecuteMenuItem
0x00007ff77a19f142 (Unity) ShowDelayedContextMenu
0x00007ff77a1b0df2 (Unity) GUIView::OnInputEvent
0x00007ff779bd0ea3 (Unity) GUIView::ProcessInputEventFromAPI
0x00007ff779bd0d78 (Unity) GUIView::ProcessInputEvent
0x00007ff77a1a9e2c (Unity) GUIView::DoPaint
0x00007ff77a1b2ddc (Unity) GUIView::RepaintViews
0x00007ff779ced2ae (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff779cf9d5d (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff779cf8061 (Unity) Application::TickTimer
0x00007ff77a18562a (Unity) MainMessageLoop
0x00007ff77a18a3d0 (Unity) WinMain
0x00007ff77b56e95e (Unity) __scrt_common_main_seh
0x00007ffa674426ad (KERNEL32) BaseThreadInitThunk
0x00007ffa679ea9f8 (ntdll) RtlUserThreadStart

aicukltd avatar May 23 '23 14:05 aicukltd