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.

[BUG] Crash in proxyfyEffects

See original GitHub issue

Hey Christian, hope you’re doing good 😃 Ran into this head-scratcher today:

Unhandled Rejection (TypeError): Cannot read property 'Symbol(ORIGIN_TARGET)' of undefined
apply
src/proxyfyEffects.ts:25
  22 | const name = path.split('.')
  23 | const method = name.pop()
  24 | return cb({
> 25 |   func: target.bind(thisArg[ORIGIN_TARGET]),
     | ^  26 |   effectId,
  27 |   name: name.join('.'),
  28 |   method,
View compiled
addUser
src/overmind/actions.ts:9
   6 | }) => {
   7 |   const userName = prompt('Brukernavn')
   8 |   if (userName) {
>  9 |     const id = await saveUser({ userName })
  10 |     users[id] = { id, userName }
  11 |   }
  12 | }
View compiled
addUser
src/index.ts:592
▶ 22 stack frames were collapsed.
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.  Click the 'X' or hit ESC to dismiss this message.

Thought at first it had something to with using IndexedDB, but the crash persists after I removed it. Also tested the latest Overmind version in my Gaver app, and that one crashes too.

Minimum reproducible repo: https://github.com/geirsagberg/auth-man.git

just yarn and try to add a user, it crashes 😦

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
geirsagbergcommented, Jun 22, 2020

No worries 😃 Things look good now, thanks!

1reaction
christianalfonicommented, Jun 7, 2020

Hi @geirsagberg and sorry for my late reply! Just had a huge backlog after Corona stuff and not having time to prioritize open source 😄

There is a new release tomorrow and will prioritize this for next release, as you can see with my PRESSING label 😉

I have a feeling proxyEffects simply tries to bind to a function that is bound to undefined … which we should check. But I have to dive into the example you gave (great 👍 ) to be sure 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reporting a Crash Bug - The Chromium Projects
Go to chrome://crashes and see if your crash is listed. If so, copy and paste the crash ID into your bug report. Otherwise,...
Read more >
Crash Factors in Intersection-Related Crashes: An On-Scene ...
intersection-related crashes were too fast for conditions/aggressive driving (22.8%), followed by driver performance error (overcompensation, poor ...
Read more >
Firebase Crashlytics | A powerful Android and iOS crash ...
Resolve bugs quickly. Firebase Crashlytics, a real time crash reporting tool, helps you prioritize and fix your most pervasive crashes based on the...
Read more >
Improper Driving and Road Rage - Injury Facts
The interaction of these factors sets up the series of events that results in a crash. It is rare (if ever) that driver...
Read more >
Finding Crash-Consistency Bugs with Bounded Black-Box ...
Finding Crash-Consistency Bugs with Bounded Black-Box Crash Testing. Authors: Jayashree Mohan, Ashlie Martinez, Soujanya Ponnapalli, and Pandian Raju, ...
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