by Matthew Adams
Matthew is a freelancer who has produced a variety of articles on various topics related to technology. His main focus is the Windows OS and all the things… read more
Updated on January 31, 2023
Fact checked by
Alex Serban
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server… read more
- The An error occurred running the Unity content on this page error arises when playing browser games.
- This article includes some of the potential fixes for the Unity content error.
- We have solutions for all the major browsers, including Chrome, Firefox, Edge, and Safari.
- Easy migration: use the Opera assistant to transfer exiting data, such as bookmarks, passwords, etc.
- Optimize resource usage: your RAM memory is used more efficiently than Chrome does
- Enhanced privacy: free and unlimited VPN integrated
- No ads: built-in Ad Blocker speeds up loading of pages and protects against data-mining
- Download Opera
Some users have posted on Google’s forum about a Unity content error that arises in all major browsers.
When they try to play browser games, an error message pops up that states, An error occurred running the Unity content on this page.
Users can’t play browser games when that Unity error arises and the situation can be frustrating.
What is the Unity content?
The Unity content represents the files loaded by the Unity Player plugin. The HTML code of a web page communicates with a script called UnityObject2.
The role of this script is to embed the Unity content safely and to protect it from any browser issues.
What does a JavaScript error occurred in the main process mean?
This error means basically that the content was not loaded correctly in the Unity Player. Unfortunately, there are a lot of instances of this error.
Let’s see more Unity content errors with their complete message:
- An error occurred running the Unity content on this page. See your browser javascript console for more info. The error was: runtimeerror: index out of bounds
- An error occurred running the Unity content on this page. See your browser javascript console for more info. The error was: script error
- An error occurred running the Unity content on this page. See your browser javascript console for more info. The error was: securityerror: the operation is insecure
- An error occurred running the Unity content on this page. See your browser javascript console for more info. The error was: referenceerror: ethereum is not defined
- An error occurred running the Unity content on this page. See your browser javascript console for more info. The error was: typeerror: src is undefined
- An error occurred running the Unity content on this page. See your browser’s javascript hatası
Of course, if you encountered any of these errors, follow the steps below to fix them on your browser.
Quick Tip:
You can always switch to a more responsive and flexible browser. Opera is a professional alternative with unique features created to bypass error times.
It’s possible to access any website or app because the browser has integration features with multiple services.
Opera
Avoid Unity Player content issues with this highly compatible browser.
How do I fix An error occurred running the Unity content on this page?
An error occurred running the Unity content on this page – Edge
1. Clear the browser Cache
- Click the Menu button and select Settings.
- Select the Privacy, search and services from the left menu, then hit the Choose what to clear button from the Clear browsing data section.
- Click on the Time range drop-down menu and select All time.
- Now, check the first four boxes if they are not already checked and hit the Clear now button.
- Try to load the website that is using the Unity Player and see if it loads now.
2. Load the website into a private window
- Click the Menu button in Edge and select New InPrivate window.
- Now, enter the URL of the website using the Unity Player and see if it loads correctly.
Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.
It would also be great to check if the browser is updated with the latest version. Just enter the browser’s Settings and click on the About Microsoft Edge section.
If there are any new updates, the browser will start updating immediately and after restarting it, all should work perfectly.
An error occurred running the Unity content on this page – Chrome
1. Clear Chrome’s browser data
- Click the Menu button on the upper-right corner of the browser and select Settings.
- Select Privacy and security from the left, then click on Clear browsing data from the right.
- Click the Time range drop-down menu and select All time.
- Select the first four checkboxes to clear Chrome’s browsing history, cache, and cookies, and click the Clear data button.
- Restart the browser and see if the Unity Player works now.
2. Reset Google Chrome
- Type the following line in Chrome’s URL bar and press the Enter key:
chrome://settings/
- Click Advanced to expand Settings, then click on Reset and clean up.
- Then, choose the Restore settings to their original default option.
- Click the Reset settings button.
This procedure will clear the cache and restore Chrome-s settings to their original default but it won’t affect your passwords.
3. Reinstall Google Chrome
NOTE
You’ll lose your Chrome profile information for bookmarks and settings by deleting the leftover folders as outlined above.
- Press the Windows and R keys at the same time to start the Run console.
- Next, type appwiz.cpl and click OK to open the uninstaller window.
- Select Google Chrome within the Programs and Features applet.
- Click the Uninstall button.
- Open File Explorer’s window.
- Then delete the Chrome subfolders at these paths:
C:Users<YourUserName>AppDataLocalGoogle
C:Program Files(x86)Google - To erase the Chrome folders, select them and press the Delete button on File Explorer’s Home tab.
- Restart Windows after removing Google Chrome.
- Open Google Chrome’s webpage in Edge.
- Click Download Chrome to save the installer for that browser’s latest version and install it.
An error occurred running the Unity content on this page – Firefox
1. Clear the browser’s cache
- Click the Menu button and select Settings.
- Choose Privacy & Security from the left pane, then scroll down on the right and click the Clear Data button under the Cookies and Site Data section.
- Check the boxes and then hit the Clear button.
2. Open the website in a new private window
- Click the Menu button in Firefox and select New private window.
- Now, enter the URL of the website using the Unity Player and see if it loads correctly.
In addition to these solutions, you should also verify if you have the latest Firefox version.
On the latest versions, Firefox verifies automatically its status and recommends an update if it is available.
- Error occurred running the Unity content on Chrome page
- Best cross-platform game engines for game developers
- Browser Could Not Allocate Enough Memory for WebGL
An error occurred running the Unity content on this page – Safari
Clear the browser’s cache
- Click the Safari button and select Preferences.
- Select the Advanced tab and check the Show Develop menu in menu bar.
- Now, click the Develop drop-down menu and choose Empty caches.
Disable or uninstall third-party antivirus software
First, try temporarily disabling any third-party antivirus software installed on your PC by right-clicking its system tray icon and selecting its disable (turn off) option.
Select to disable the antivirus utility for an hour or two if you can, and then try playing the browser game the Unity issue arises for.
If the Unity error doesn’t occur when you’ve disabled your antivirus utility, uninstall the software. You won’t need to disable the antivirus utility all the time if you uninstall it.
You can uninstall antivirus software via Programs and Features as outlined for resolution three.
Alternatively, check out the antivirus removal tool index on the ESET website to see if there’s an official removal tool for your antivirus software.
These are some of the resolutions users have fixed the Unity content error with. Some of the fixes above might also resolve the same issue for other browsers.
Since Unity is a player used mostly for gaming, you should also check our selection of the best browsers for cloud gaming that are fast and reliable.
If you have any other suggestions or questions, don’t hesitate to use the comments section below to share them.
Still having issues? Fix them with this tool:
SPONSORED
If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.
Newsletter
Unity WebGL ошибка.
Приложение работает на других платформах, также запускал пустой проект и он тоже работает в браузере.
При запуске сцены, происходит несуразная ошибка.
An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was:
uncaught exception: abort(-1) at jsStackTrace@blob:null/39b12077-7f8a-4199-9558-0716b09f6bea:1:22814
и тому подобный бред.
Еще не работает в хроме. Я на шарпе пишу, и как отладить это не знаю, тем более что в хроме не запускается в принципе, а мозила такое Г*вно, что виснет. На англоязычных форумах есть подобные вопросы, но нет дельных ответов.
Спасибо!
- _Valera_
- UNIт
- Сообщения: 50
- Зарегистрирован: 22 мар 2016, 17:36
Re: Unity WebGL ошибка.
DbIMok 08 апр 2016, 23:37
смотря что вы считает дельными ответами. начните с того, что сообщите, на какой версии юнити вы билдите? далее следуйте
http://docs.unity3d.com/ru/current/Manu … gging.html
включите девелопмент, эксепшены, отключите страйпинг кода (если такая опция есть в вашей версии), почистите кэш браузера. ну и когда со всем этим освоитесь, выкладывайте полный лог из консоли браузера куда-нибудь на
http://pastebin.com
и сюда ссылку. посмотрим.
-
DbIMok - Адепт
- Сообщения: 6321
- Зарегистрирован: 31 июл 2009, 14:05
Re: Unity WebGL ошибка.
_Valera_ 09 апр 2016, 00:15
1. Unity 5.3.4f1 (64-bit)
2.
DbIMok писал(а):включите девелопмент, эксепшены, отключите страйпинг кода (если такая опция есть в вашей версии
делал.
3.
DbIMok писал(а):почистите кэш браузера.
А если у пользователя он не чищен? Мозилу специально скачал, для того что бы запустить, так что чисто.
4.
DbIMok писал(а):, выкладывайте полный лог из консоли браузера
Successfully compiled asm.js code (loaded from cache in 279ms) e224e300-d433-4888-8fcf-b432a1c911a8
uncaught exception: abort(-1) at jsStackTrace@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:22814
stackTrace@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:22997
abort@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:35:49992
_pthread_create@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:202461
TC@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:21:260968
rB@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:21:238805
lkn@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:28:523248
invoke_iiii@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:361894
Pz@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:21:208297
xSj@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:17:729309
aTj@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:17:736152
cTj@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:17:736304
zom@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:7:894269
lkn@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:28:523248
invoke_iiii@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:361894
ZI@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:21:391095
TSj@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:17:732836
zom@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:7:894269
lkn@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:28:523248
invoke_iiii@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:361894
ZI@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:21:391095
aI@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:21:361740
WH@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:21:360463
Xjn@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:28:521191
invoke_ii@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:358736
nik@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:5:88048
FZg@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:22:1050907
RZg@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:22:1053210
zom@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:7:894269
lkn@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:28:523248
invoke_iiii@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:361894
LI@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:21:384688
Ou@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:21:87001
iub@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:18:341559
NSb@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:16:4795
nQb@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:18:1043613
pQb@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:18:1047352
WPb@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:18:1036257
A8a@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:13:688009
yNb@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:18:944331
y$e@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:20:1095207
Pjn@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:28:520518
Runtime.dynCall@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:6885
Browser_mainLoop_runner/<@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:207401
Browser.mainLoop.runIter@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:238850
Browser_mainLoop_runner@blob:null/e224e300-d433-4888-8fcf-b432a1c911a8:1:207297If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
- _Valera_
- UNIт
- Сообщения: 50
- Зарегистрирован: 22 мар 2016, 17:36
Re: Unity WebGL ошибка.
DbIMok 09 апр 2016, 00:53
-
DbIMok - Адепт
- Сообщения: 6321
- Зарегистрирован: 31 июл 2009, 14:05
Вернуться в Общие вопросы
Кто сейчас на конференции
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 10
Solve the Uncaught unknown compression method Unity WebGL error
This Sunday I had to finish a silly game called Traffic Light Simulator for the Ludum Dare competition.
One of the many problems I encountered happened when I tried to upload the first version of the game to my server. As you may know, Unity has abandoned the WebPlayer option in favor of the WebGL option, which is under development so there will be bugs! It was always super-easy to make the WebPlayer option work online, but with each Unity update you have to learn a new way to make the WebGL option work.
First of all, the offline version worked fine in Firefox, but when uploaded the project to the server I got the following error:
An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was: Uncaught unknown compression method.
When you open the Developer Tools console, you will see the following:
- Failed to load resource: the server responded with a status of 404 (Not Found): Invoking error handler due to Uncaught unknown compression method
- Uncaught unknown compression method
- Failed to load resource: net::ERR_CONNECTION_RESET: Could not download Release/Test.datagz
- Failed to load resource: net::ERR_CONNECTION_RESET: Could not download Release/Test.jsgz
So what do you do when you encounter an error you have’t seen before? You google it! And if you google these errors you will find a lot of people with the same problem. The solution seems to be to modify the .htaccess file. But in the latest version of Unity, there’s no .htaccess file in the WebGL folder! The second link on Google was Unity’s own documentation, which is not updated to the latest version which is 5.4, so there was no solution there either. Another solution was to contact the server provider.
After digging around on the web, I found the solution, and it was this super easy solution: What you need to do is to modify the index.html, which is the only file in the WebGL folder. So open it in Notepad or whatever program you are using. At the bottom of the file, you will see the following lines:
- dataUrl: «Release/Test.data»,
- codeUrl: «Release/Test.js»,
- memUrl: «Release/Test.mem»,
To solve the problem you have, you just have to add gz to the end of those lines:
- dataUrl: «Release/Test.datagz»,
- codeUrl: «Release/Test.jsgz»,
- memUrl: «Release/Test.memgz»,
If you upload the new version you should see that everything is working fine!