getsentry / sentry-unreal

Unreal Engine
https://docs.sentry.io/platforms/unreal/
MIT License
81 stars 30 forks source link

debug symbols upload - The syntax of the command is incorrect. #578

Open ollyb2001 opened 2 weeks ago

ollyb2001 commented 2 weeks ago

Environment

How do you use Sentry? Sentry SaaS (sentry.io) or self-hosted/on-premise (which version?)

self-hosted

Which version of the SDK?

sentry-unreal-0.17.1-engine5.4-github

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

Git-URL

Which version of Unreal?

5.4

Is this happening in Unreal (editor) or on a player like Android, iOS, Windows?

Editor

Steps to Reproduce

1: Open Unreal Engine, Compile Successfully

2: Package for Windows on Development

Expected Result

What you thought would happen.

The project should build and package successfully without any errors.

Actual Result

What actually happened. Maybe a screenshot/recording? Maybe some logs?

UATHelper: Packaging (Windows): Sentry: Start debug symbols upload UATHelper: Packaging (Windows): The syntax of the command is incorrect. UATHelper: Packaging (Windows): Error executing C:\Windows\system32\cmd.exe (tool returned code: 255) UATHelper: Packaging (Windows): [75/75] Executing post build script (PostBuild-1.bat) (0:01.18 at +1:24)

Any logs or screenshots

tustanivsky commented 2 weeks ago

@ollyb2001 Thank you for raising this - we'll check it out on our end and get back to you.

tustanivsky commented 1 week ago

@ollyb2001 I wasn't able to reproduce this issue on my side and the symbol upload seems to work as expected in UE 5.4 on Windows. Can you check whether the sentry.properties file is present in project's folder root and it contains the credentials required for symbol upload to work (see docs for more details)? Also, is there any chance that any target platforms/build configurations were disabled in plugin's settings General -> Misc section?

ollyb2001 commented 1 week ago

Hi @tustanivsky thanks for getting back to me, I can confirm that sentry.properties is present in the projects folder and that the target platform is selected in the General -> Misc section. Please do note I managed to get it working on my Windows 11 computer but I'm stuck with the same issue on my Windows 10 computer.

tustanivsky commented 1 week ago

Thank you for those additional details - I'll check it on a Windows 10 PC to see if things could be somehow related to the OS version.

tustanivsky commented 1 week ago

@ollyb2001 I've tested this on Windows 10 yet symbol upload also works fine there.

Which Visual Studio version do you have on your Win10 PC? I believe this could be some environment-specific issue however it's hard to tell for sure at this point