Fork me on GitHub
#re-frame
<
2022-02-02
>
Ryan19:02:35

Can anyone help trying to troubleshoot a hanging re-frame app? I run a large ajax request and add a lot of data to app-db, but I can't tell what part is causing a hang. If its any clue, it DOES NOT happen when 10x and debug mode is off, only when its on. Any clues would be appreciated just in general

Ryan19:02:18

In chrome, most events involved fire, then it gets the frowny face and the do you want to wait or exit the tab message from Chrome

p-himik19:02:13

When the page stops responding for seconds, open the Scripts tab in the dev tools and press pause. If you have any (potentially implicit) busy loop, it will land you there.

Ryan19:02:01

Thanks it seems to be stuck in a js->clj call .. interesting! Thanks for the lead.

p-himik19:02:06

It's very easy to have a recursive data in a JS data structure. But I have no clue why that wouldn't hang your app when 10x+debug are there.

Ryan19:02:39

Well if I figure it out I'll let you know, haha. There have been a few other odd things ablut our 10x in this project.. e.g. event tracing doesn't work despite having the compiler options, flags and using fn-traced so.. hmm, am trying to get it sorted. Hopefully its an easy fix

p-himik19:02:17

Weird indeed. Good luck!

Ryan19:02:15

So bumping dependencies to latest stable version for the day-8 stuff seemed to have solved it.. maybe I just had a bad combo of the tracing library, 10x and re-frame itself? Hopefully its actually gone and not just avoiding my gaze until my back is turned!

p-himik19:02:24

Hopefully! My crystal ball is not strong enough to guarantee. :) I'm still suspicious of that js->clj you mentioned.

Ryan16:02:56

@U2FRKM4TW me too! Keeping my eye on it