The Three.js error message "Unit 0 does not have any texture bound" is encountered

After updating Chrome to Version 50.0.2661.86 (64-bit) on OSX today, a warning started appearing in my three.js based application:

[.CommandBufferContext]RENDER WARNING: there is no texture bound to the unit 0

Due to this warning, my application is now stuck in the loading screen and not progressing further.

This issue becomes even more peculiar when considering that we are creating instances of meshes with textures and normal maps. Strangely enough: - the application crashes if we load all instances - but successfully loads when fewer instances are loaded

It's worth mentioning that we load all the textures in the material creation callback, so commonly suggested solutions from Stackoverflow are not effective in this case.

Does anyone have any suggestions on how to fix this problem? Or should we consider reaching out to the Chromium team to report this as an issue?

Prior to this update, everything was functioning perfectly fine.

Answer №1

For a solution to the TextureLoader issue in the latest version of Chrome, try adding the following line after line 18419 in three.js (r76):

this.image = image; // Keeping a reference to the object to prevent memory leak

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The latest version of Chrome 121.0.6167.185 is causing issues with the Web Driver Manager by Boni Garcia

After the recent Chrome update to version 121, I've been experiencing issues running my Selenium tests. Despite updating both Selenium and BoniGarcia WebDriver Manager to the latest versions, the problem persists. The error message I'm getting is ...

Tracking time using JavaScript or PHP

I am trying to create a time countdown feature using either JavaScript or PHP. Despite searching on Google and attempting it myself, I have not been able to achieve the desired outcome. My goal is for users to input a time in a text box, after which they ...

What is the best way to showcase my Angular modules' views as the main page in my MEAN.JS project?

After some investigation, I discovered that the index page is actually named index.server.view.html. However, the file only consists of the following code: {% extends 'layout.server.view.html' %} {% block content %} <section data-ui-view ...

Error message: "Attempting to assign a value to the 'size' property of an undefined object, despite the fact that

I recently started delving into NodeJS development and have configured Visual Studio Code for JavaScript development in node applications. During a Pluralsight lecture on Objects, the instructor demonstrated creating two scripts, dice.js and program.js, a ...

Error encountered while utilizing Selenium on macOS: FileNotFoundError - The specified file '/Users/fuadhafiz/Documents\chromedriver.exec' does not exist

I'm currently in the process of learning how to use selenium and Python, following along with this tutorial video: https://www.youtube.com/watch?v=Xjv1sY630Uc&ab_channel=TechWithTim Here is the code I've written: from selenium import webdriv ...

Is it possible to customize the styling of certain fundamental MUI components using makeStyles?

:D This is my first time embarking on a project from the ground up using react and MUI. I've been curious if I have set it up correctly. My goal right now is to incorporate some styling using makeStyles for certain components provided by Material UI ...

Display a JavaScript dialogue box containing a PHP variable

Is there a way to display the correct JavaScript box when using a While loop in PHP? Here is the code snippet: while($result= mysql_fetch_array($data)){ <tr class="<?php echo $style;?>"> <td><?php echo $result['commis ...

The function is unable to accurately retrieve the state value

In my app, I have a component where I'm attempting to incorporate infinite scroll functionality based on a tutorial found here. export const MainJobs = () => { const [items, setItems] = useState([]); const [ind, setInd] = useState(1); const ...

Creating documentation for JavaScript automatically is a breeze with these simple steps

Does JavaScript have a feature similar to Javadoc? I'm used to generating JavaDoc in Java which creates a website with my documented code. Is there an equivalent tool or method for JavaScript? ...

What is the best way to pause the previous timer and display only the upcoming timer in a React application?

When comparing the scheduled times with the current date-time, I noticed that the values for upcoming schedule times are displayed correctly. However, when the time has already passed, it shows negative values. Instead of this, I would like to display &apo ...

Get the index of the currently active element in jQuery, taking into account its position among its original sibling elements

I am implementing a function in jQuery to toggle an 'active' class on elements within a grid. Here is the code snippet: $(".cinema-seats .seat").on("click", function () { $(this).toggleClass("active"); } Essentially, when clicking on random ...

Navigating Vue 3's slot attributes: A step-by-step guide

Currently, I am facing an issue with a Vue component named MediaVisual. This component contains a slot. The problem arises when attempting to retrieve the src attribute of the slot element that is passed in. Surprisingly, this.$slots.default shows up as u ...

Utilizing AngularJS to iterate through an array of dictionaries

Within a specific section of my HTML code, I am initializing a scope variable like this: $scope.my_data = [ { c1: "r1c1", c2: "r1c2", c3: "r1c3", ...

Discovering a way to capture the space bar event in a number input field with JavaScript

Is there a way to capture space bar input with an onchange event in JavaScript? <html> <head> <script type = "text/javascript"> function lala(aa){ console.log(aa + " dasda"); } </script> </head> <body> <input ty ...

What is the reason for the directive being available in $rootScope?

Currently, there doesn't seem to be a major issue but it has sparked my curiosity. I have a straightforward directive that, for some unknown reason, is accessible within $rootScope. JAVASCRIPT: (function(){ var app = angular.module('myAp ...

Blocking access to specific pages using Axios interceptors is a powerful feature to enhance security and

I am implementing a feature to prevent unauthorized users from accessing personal account pages. Currently, Axios interceptors monitor error responses with a status of 401, indicating that a user is not authorized to view certain pages. If this status is d ...

Swiper: What methods can be used to classify the nature of an event?

Currently, I am utilizing Swiper for React in my project. I find myself in need of implementing a different effect when the user swipes versus using buttons to switch between active slides. Upon examining the swipe object for pertinent details regarding ...

Prevent strange appearances when using slideDown animation

In my application, I am experiencing an undesirable side effect when using slideDown(). Upon clicking the element, a piece of content is appended to an ancestor. This causes the clicked button to shift to the right and the ones on the left to move slightly ...

Having trouble generating CDATA section in XML with the "xmlbuilder" module in node.js

I am currently utilizing the "xmlbuilder" module in node.js to generate an xml file. My goal is to include a CDATA section within the file like this: <notestext><![CDATA[{Notes Text}]]></notestext> Although I checked out the documentati ...

Preventing multiple tabs in a form with PHP

I have successfully used JavaScript to prevent a link from being opened in multiple browser tabs every time a user clicks on it. For example, if the destination of my link is Google, it will create a new tab if one does not already exist but refresh the ex ...