Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hoxu opened this issue Jun 4, 2021 · 3 comments
Closed

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

hoxu opened this issue Jun 4, 2021 · 3 comments
Assignees

Comments

@hoxu
Copy link

hoxu commented Jun 4, 2021

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
Copy link
Contributor

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

@hoxu
Copy link
Author

hoxu commented Jun 9, 2021

@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
Copy link
Contributor

I'm still seeing this in 1.1.3

superstructor added a commit that referenced this issue Jun 22, 2021
Fixes [#306](#306).

Manifested as 'Uncaught Error: Assert failed: (number? n)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants