-
-
Notifications
You must be signed in to change notification settings - Fork 55
The webgl platform cannot display stack information #2091
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
Comments
It does support webgl. but wechat specifically I'm not sure. could you try and let us know? |
But when I try to build a webgl package and display it on a web page, the stack cannot be displayed. Is there any step that is not executed? |
Can you provide a sample for us to look at? When running the SDK's sample game, I do see the stack trace getting reported. |
Demo: https://github.com/dryyy27/SentryDemo.git. |
Thanks for the repro. The stack trace doesn't work even on webgl outside wechat? |
It doesn't work even on webgl outside wechat. But when I build android or linux, it work normally. |
We didn't get around trying the report yet but to confirm:
|
Hi guys. We have almost the same issue in our projects. So I can provide my investigation results and share some more details.
We have SentrySDK integrated via Package Manager and instead of using base config we're disabling it with As a result:
Also some extra info we found when we used config initialization instead of C#.
Here is the code we use to initialize the SentrySDK:
|
@EduardSayGames thanks for sharing the details. One thing I noticed is that. you're using |
@bruno-garcia Please let me know if I can help with debugging or anything else. |
Could you try e.g: void Test1() { throw new Exception("test"); }
void Test2() {
try { Test1(): } catch (Exception e) {SentrySdk.CaptureException(e);)}
} This should work. |
Thank you for confirming. There's definitely something broken here. We'll look into this asap. |
Hey @dryyy27, @EduardSayGames, sorry this took some time to dig into. Thanks for providing the minimal repro, it helped a lot! Sorry to not have any better news but here it goes. In the provided setup the SDK fails to create the stacktrace with
leading to missing stack traces in the issues on Sentry. Currently, it looks like there's not much the SDK can do at this point and seems to be a limitation of WebGL and its exception handling. The only option forward I have found at this point is to change the exception settings in the ![]() With But when trying to make use of Unity's stringified stack traces available in Unity 6 and newer we're getting this:
So this might be something we could capture and attempt to parse in a future update of the SDK. |
We could parse that in the SDK and create a stack trace but there wouldn't be any line numbers unless we add symbolication support. Looking at those file name and hex appended to the line it seems to be memory addresses we could use. For now I'd add to the docs that we don't support stack traces for Wasm starting on version X of Unity (assuming it broke eventually, since iirc we did have the parsing working originally and had stack traces without line numbers already) |
Thank you @bitsandfoxes @bruno-garcia for sharing this information. But this won't solve my issue because I don't get any error registered in the dashboard, even without stacktraces. So my issue is still open. FYI: I've updated the SDK to the latest 3.2.1 and it has the same issue. |
I'll have to try and check the conditions under which we can reliably grab and parse the stacktrace and then put together a PR. |
So after digging through it there are two issues tied to the `exceptionSupport:
|
Does it support the WebGL platform for WeChat mini-game development?
The text was updated successfully, but these errors were encountered: