-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IL2CPP Windows - Try block ends without any catch, finally, nor fault handler - Unity 2019.4.35 - 2019.4.37 #550
IL2CPP Windows - Try block ends without any catch, finally, nor fault handler - Unity 2019.4.35 - 2019.4.37 #550
Comments
Please fix this as soon as possible, we can't publish our game in build < 2019.4.35f1 as we need to split binaries (supported only from build 2019.4.29f1) but theres an important bug fixed in 2019.4.35f1, so that's the only version we can actually use! |
It's not really a bug in Sentry's SDK. We've reported it to Unity already. |
OK, but perhaps you can still try and add that catch clause in GlobalSessionManager::TryRecoverPersistedSession() right? Your library is the only one that seems to trigger this issue... |
Hey @bruno-garcia , do you know if there's a workaround for this issue? Does Unity optimize out an empty catch/finally or whatever block(judging by the weird error)? If yes, could that be worked around until Unity comes up with a fix. We also have this issue that we're using split binaries, which have been pretty buggy(random crashes for some devices), until a fix finally implemented in 35f1. Ironically, 35f1 now causes Sentry to break. So we can't use split binary with Sentry both :( |
It's likely because we're the only ones using Exception filters. |
If we don't hear back from Unity in the next 4 days (I'm writing this on a Saturday) we can patch our SDK to get rid of Exception filters. It's just really annoying that we need to change properly working code into a less efficient version because Unity introduced a regression on their tooling. |
Thank you Bruno, appreciate your response! What if Unity comes back with : We (might/will) include a solution for this in the next LTS 2019.4.36f build, but without ETA? Would you be able to patch this up until they do? |
@bruno-garcia sounds good! I understand :( hopefully Unity can get their act together soon, but appreciate you're willingness to provide a workaround until they fix it. |
We'll ship a release with a fix today |
Should be resolved on: https://github.com/getsentry/sentry-unity/releases/tag/0.10.0 |
Hi Bruno, thank you but unfortunately it still doesn't compile properly :( Just got this error when building with your latest version |
I was just running it through CI: https://github.com/getsentry/sentry-unity/runs/5197577209?check_suite_focus=true with the same issue:
|
Well, another issue to be open with unity and this time, nothing we can do. |
This is really disappointing, we were quite relying on Sentry for bug tracking, but also your great Send Feedback functionality! Is this because you can't add the catch clause to the JSON Converter class, it being a system library? Would you be able to use 3rd party json serializer instead perhaps? |
I understand that, it's really frustraiting to us too. But another work around would require rewriting all serialization code from This is because IL2CPP on Windows from Unity 2019.4.35f can't handle a C# exception filter. Hopefully this will be addressed quickly on their end so we don't need to take any drastic measures on our end (as in refactoring all protocol/serialization). |
Is the unity forum the best place to report errors? Maybe we should be doing that in the unity editor or hub instead? There's a "Report a bug" menu in both... |
I reported the bug on Feb. 2nd via the |
@bruno-garcia there was a LTS build released yesterday, Looking at what's new, it doesn't look like they've fixed this issue? |
I read their changelog and couldn't spot anything that indicates this issue was addressed. The CI here/Windows steps are still on 34f which is before the bug was introduced: sentry-unity/.github/workflows/ci.yml Line 56 in 97949af
We can try bumping the Windows to 36 to see if it's resolved |
it's still the same issue on 2019.4.36f1 (I've tried locally) |
There was a response that they couldn't reproduce. Anyway, the issue now seems to be related to a windows build, not android (as says in the report), so maybe a new bug report is due? |
We're in contact with Unity, the bug report has been updated for 35 & 36, with a smaller repro and for Windows IL2CPP builds (Android & Standalone). |
Unity has reached out:
|
Unity: "Fixed in: 2019.4.38f1" Let's hope it's true |
Android builds fail on Windows with IL2CPP with:
Try block ends without any catch, finally, nor fault handler
.Sample in CI: https://github.com/getsentry/sentry-unity/runs/5049914009?check_suite_focus=true
Works on macOS with the same version.
Works on 2019.4.34f1
Has been reported.
The text was updated successfully, but these errors were encountered: