Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6801793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:08:38+00:00 2026-05-26T19:08:38+00:00

Utilising this tutorial I’m trying to see if I can save bandwidth with a

  • 0

Utilising this tutorial I’m trying to see if I can save bandwidth with a large mesh by caching it with indexedDB.

So inside the loader callback function I’m doing…

object = new THREE.Mesh( geometry, material );

webkitIndexedDB.open("MyNewDB").onsuccess = function(event) {
  window.db = event.srcElement.result;

  window.db.setVersion("1.0").onsuccess = function(event) {
    var objectStore = window.db.createObjectStore("meshes", { keyPath: "item_id" });

    objectStore.add({item_id: 0, mesh: object});  //  <= this is the crucial line

  };
};

however the last line where an object containing object is added to the database causes the following error.

Uncaught Error: DATA_CLONE_ERR: DOM Exception 25

I’m not sure what this really means but there must be a way around it no?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:08:38+00:00Added an answer on May 26, 2026 at 7:08 pm

    It means your THREE.Mesh object is malformed, but not in a way that’s violating indexes, uniqueness, or anything like that. I see this error when I try to store objects that have un-executed functions as members.

    The technical definition from the spec is:

    The data being stored could not be cloned by the internal structured
    cloning algorithm.

    If you’re trying to store object state of a namespace you’re hosed. If you’re storing plain data I would try doing a deep copy of the THREE.Mesh() object checking typeof for ‘function.’

    EDIT: I looked into this further. IndexedDB copies objects into the object store using the HTML5 structured clone algorithm. According to the spec, Error and Function objects cannot be cloned and throw a DATA_CLONE_ERR. That’s what you’re seeing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use FSO = Server.CreateObject(Scripting.FileSystemObject) to copy/save files utilising a ASP utility
I wasn't entirely sure how to name this, so apologies in advance. You see,
Just getting confused when trying to display certain things when utilising itemssource, datacontexts and
I am searching a file system and utilising grep. I see that everything is
I am utilizing the javax.scripting with Rhino in this project. I have a Java
I believe this is a beginner's CSS question. I am utilizing the method described
What are some methods of utilising Eclipse for Dependency Management?
Is there any way (utilizing Reflection I hope) that I can make an instantiated
I am utilising Liquibase (www.liquibase.org) into our MVC3 SQL Server 2008 project to manage
I am utilising a 3rd party .net dll, which I am making calls to.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.