question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

this.payloadHandler.handlePayload is not a function

See original GitHub issue
Description of the problem

When loading a .obj file with OBJLoader2Parallel, an uncaught TypeError is thrown.

Uncaught TypeError: this.payloadHandler.handlePayload is not a function
    processMessage WorkerRunner.js:156
    scopedRunner WorkerRunner.js:137
    WorkerRunner WorkerRunner.js:141
    buildWorkerCode OBJLoader2Parallel.js:115
    parse OBJLoader2Parallel.js:176
    fileLoaderOnLoad OBJLoader2.js:303
    load three.module.js:36370
    load three.module.js:36348
    load OBJLoader2.js:310
    load OBJLoader2Parallel.js:154

The environment is created by create-react-app’s dev command (no minificaton) but I suspect it would appear in the prod build as well. I believe this is directly related to https://github.com/mrdoob/three.js/pull/18356. Perhaps the issue wasn’t fully fixed despite my telling @kaisalmen that it was.

Three.js version
  • r117.1 (I’m locked to this currently)
  • presumably latest as well since changelogs don’t reflect anything that would impact this but I will verify if I get time.
  • webpack@4.42.0
  • react-scripts@3.4.1
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Mugen87commented, Sep 15, 2020

shall we close this and re-open if it is re-observed

👍

1reaction
kaisalmencommented, Sep 11, 2020

As far as I can tell the model is in fact loaded fine even with the error present. If some upcoming changes are in fact deprecating this code then I can simply swallow the error until then and hopefully get off of r117

The model was loaded every time. Honestly, I don’t really understand why the error shows up in some cases. If you observe it beyond R117 and Chromium based browser 85+, please let me know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'selectedHandler' is not a function, Node JS - Stack Overflow
I am a newbie with Node JS and i recently made all the APIs which are working exactly as i want. However, now...
Read more >
TypeError: payload.forEach is not a function · Issue #64 - GitHub
I'm getting an error TypeError: payload.forEach is not a function parsing the response from a JSON API endpoint.
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
Troubleshooting payloads - AWS Lambda
An incorrect type or missing attribute causes a runtime error. Create tests to ensure that your function handles larger payload sizes. The maximum...
Read more >
Handling user interaction in your Slack apps
The app receives and processes the interaction payload. ... You'll need to add a URL that you can set up to handle these...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found