day8 / re-frame-10x

A debugging dashboard for re-frame. X-ray vision as tooling.
MIT License
631 stars 68 forks source link

1.1.0: Uncaught Error: Assert failed: (number? n) #306

Closed hoxu closed 3 years ago

hoxu commented 3 years ago

ClojureScript. Upgrading from 1.0.2 to 1.1.0 causes the following exception when closing the re-frame-10x window:

Uncaught Error: Assert failed: (number? n)
    cljs$core$IFn$_invoke$arity$2 http://localhost:3000/assets/js/cljs-runtime/cljs.core.js:17997
    cljs$core$take_last http://localhost:3000/assets/js/cljs-runtime/cljs.core.js:18060
    <anonymous> http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.navigation.epochs.events.js:62
    new_context http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.std_interceptors.js:145
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$std_interceptors$fx_handler__GT_interceptor_$_fx_handler_before http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.std_interceptors.js:146
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$interceptor$invoke_interceptor_fn http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.interceptor.js:216

This exception also seems to be triggered repeatedly.

superstructor commented 3 years ago

Strangely I couldn't reproduce locally but I think I found the issue. Please try 1.1.3 and let me know @hoxu

hoxu commented 3 years ago

@superstructor unfortunately this seems to reproduce on 1.1.3 as well:

Uncaught Error: Assert failed: (number? n)
    cljs$core$IFn$_invoke$arity$2 http://localhost:3000/assets/js/cljs-runtime/cljs.core.js:17997
    cljs$core$take_last http://localhost:3000/assets/js/cljs-runtime/cljs.core.js:18060
    <anonymous> http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.navigation.epochs.events.js:62
    new_context http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.std_interceptors.js:145
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$std_interceptors$fx_handler__GT_interceptor_$_fx_handler_before http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.std_interceptors.js:146
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$interceptor$invoke_interceptor_fn http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.interceptor.js:216
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$interceptor$invoke_interceptors http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.interceptor.js:255
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$interceptor$execute http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.interceptor.js:365
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$events$handle http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.events.js:112
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$router$IEventQueue$_process_1st_event_in_queue$arity$1 http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.router.js:580
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$router$IEventQueue$_run_queue$arity$1 http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.router.js:325
    vec__91687 http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.router.js:507
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$router$IEventQueue$_fsm_trigger$arity$3 http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.router.js:549
    G__91678 http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.router.js:370
    NextJS 3
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$router$IEventQueue$_run_next_tick$arity$1 http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.router.js:372
    vec__91687 http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.router.js:478
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$router$IEventQueue$_fsm_trigger$arity$3 http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.router.js:549
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$router$IEventQueue$push$arity$2 http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.router.js:363
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$router$dispatch http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.router.js:687
    <anonymous> http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.fx.js:379
    <anonymous> http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.fx.js:351
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$fx$do_fx_after http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.fx.js:189
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$interceptor$invoke_interceptor_fn http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.interceptor.js:216
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$interceptor$invoke_interceptors http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.interceptor.js:255
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$interceptor$execute http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.interceptor.js:365
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$events$handle http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.events.js:112
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$router$dispatch_sync http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.router.js:693
    day8$re_frame_10x$inlined_deps$re_frame$v1v1v2$re_frame$core$dispatch_sync http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.inlined_deps.re_frame.v1v1v2.re_frame.core.js:48
    day8$re_frame_10x$init_BANG_ http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.js:130
    <anonymous> http://localhost:3000/assets/js/cljs-runtime/day8.re_frame_10x.preload.js:2
    globalEval http://localhost:3000/assets/js/app.js:486
    evalLoad http://localhost:3000/assets/js/app.js:1549
    <anonymous> http://localhost:3000/assets/js/app.js:2045
app.js line 486 > eval:17997:8
hipitihop commented 3 years ago

I'm still seeing this in 1.1.3