-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
WebGL crash on initialization (unity 2022) #1859
Comments
Hey @redgetan, sorry to see you run into issues. Did you recently update? Can you reproduce this locally? |
@bitsandfoxes you ask if there's a recent update because of the Unity caching issue where the new SDK doesn't take effect? But if a clean build is run, things work? |
I only installed sentry-unity recently, so I didn't update from and older version. Here's the node.js server I'm using to run the webgl build locally const express = require('express');
const compression = require('compression');
const path = require('path');
const app = express();
const port = 3000;
// Enable gzip compression for all responses
app.use(compression());
// Serve static files from the current directory
app.use(express.static(__dirname, {
setHeaders: (res, path) => {
if (path.endsWith('.br')) {
res.set('Content-Encoding', 'br');
res.set('Content-Type', 'application/wasm');
} else if (path.endsWith('.gz')) {
res.set('Content-Encoding', 'gzip');
res.set('Content-Type', 'application/wasm');
}
}
}));
// Start the server
app.listen(port, () => {
console.log(`Server running at http://localhost:${port}`);
}); |
@redgetan thanks for confirming that. So even on a clean build, the same error comes up? I ask because the stack trace has:
So this is happening when we're trying to persist a file so we can indicate the 'crash free' rate. But we added an option to disable that 2 versions ago: Perhaps that's not being set on WebGL, could you try setting: |
@bruno-garcia Yes. even on clean build, same error comes up. However, I was able to remove the error completely if I change exceptionSupport to something else other than WebGLExceptionSupport.None Sentry Crashes PlayerSettings.WebGL.exceptionSupport = WebGLExceptionSupport.None; No Crash. Sentry working. PlayerSettings.WebGL.exceptionSupport = WebGLExceptionSupport.FullWithoutStacktrace; |
Oh that's great insight. @bitsandfoxes is it possible to check if
|
Environment
How do you use Sentry?
Sentry SaaS (sentry.io)
Which version of the SDK?
2.2.1
How did you install the package? (Git-URL, Assetstore)
git-url
Which version of Unity?
2022.3.37f1
Is this happening in Unity (editor) or on a player like Android, iOS, Windows?
No errors in the unity (editor), but only on the webgl build
Steps to Reproduce
Without sentry, the webgl build runs perfectly fine on the browser. After adding sentry, it freezes/crashes during initialization.
Expected Result
No crash
Actual Result
Crashing (see logs + screenshot). Maybe file open related?
Any logs or screenshots
The text was updated successfully, but these errors were encountered: