Fork me on GitHub
#nextjournal
<
2021-12-15
>
hugod00:12:46

I’m using 0.4.305, and clark/vl . The form evaluates ok but the viewer shows this:

Unhandled java.lang.IllegalStateException
Multi threaded access requested by thread Thread[ForkJoinPool.commonPool-worker-5,5,main] but is not allowed for language(s) js.
nil
Unhandled com.oracle.truffle.api.TruffleStackTrace$LazyStackTrace

hugod00:12:07

(clerk/vl
 {:title "Follower count",
  :data
  {:values
   [{:index 0, :followers 2.419955748489758}
    {:index 1, :followers 1.146128035678238}
    {:index 2, :followers 1.2304489213782739}
    {:index 3, :followers 2.574031267727719}
    {:index 4, :followers 2.1702617153949575}
    {:index 5, :followers 0.0}
    ]},
  :encoding
  {:y {:aggregate "count", :axis {:title "Number of users"}},
   :x
   {:field "followers",
    :type  "quantitative",
    :bin   {:maxbins 30},
    :axis  {:title "log10 follower count"}}},
  :mark  "bar"})

mkvlr06:12:36

what JVM are you using?

hugod12:12:25

java -version
java version "11.0.12" 2021-07-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.12+8-LTS-237)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.12+8-LTS-237, mixed mode)

mkvlr15:12:11

and this is just Clerk? Using the file watcher?

mkvlr15:12:48

having trouble to reproduce it here

hugod17:12:17

It looks like this was caused by some interaction with portal. The charts work fine without portal loaded. Thank you!