Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upApp randomly crashing in Dict: Cannot read property 'ctor' of undefined #478
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
seanhess
Jan 11, 2016
I found the offending code. It was executed rarely because of a network race condition.
let res = case model.form of
Nothing -> res
Just form -> Session.applyDefaults form model.session.userInfo responses
res is defined recursively, which is an accident. I meant for it to be this:
Nothing -> model.responses
Should the compiler have caught this for me? Is there some flag I can enable to catch these? Or is it a bug, and if so where should I log it?
Thanks!
seanhess
commented
Jan 11, 2016
|
I found the offending code. It was executed rarely because of a network race condition.
res is defined recursively, which is an accident. I meant for it to be this:
Should the compiler have caught this for me? Is there some flag I can enable to catch these? Or is it a bug, and if so where should I log it? Thanks! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Jan 11, 2016
Contributor
See elm/compiler#873 and a subset of the ton of related issues linked to from there.
|
See elm/compiler#873 and a subset of the ton of related issues linked to from there. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
seanhess
commented
Jan 11, 2016
|
Thank you! |
seanhess commentedJan 11, 2016
My app has historically worked without issues. I'm having some strange issues where it doesn't work as expected when I deliver it to my client. Right now, it crashes with the following message:
On this part of the generated .js
The strange thing is every 5 or so hard reloads it works. Like it's a race condition or something? All of this code works perfectly locally, so it's frustrating to debug.