phovea/phovea_core

Categorical Histogram can't be created when operating on a table with ranges

Closed this issue · 2 comments

This is a problem in Lineage, but I think it's related to phovea core.

This line fails:
Caleydo/lineage@ee15bb3#diff-98337d50647f83d43632199c96d1cd09R257

With this error:

Uncaught (in promise) RangeError: end of iterator
    at Iterator.next (http://localhost:8080/app.js:29250:19)
    at http://localhost:8080/app.js:6602:34
    at Array.forEach (native)
    at CatHistogram.AHistogram.pushAll (http://localhost:8080/app.js:6601:17)
    at categoricalHist (http://localhost:8080/app.js:6517:7)
    at TableVector.<anonymous> (http://localhost:8080/app.js:19677:140)
    at step (http://localhost:8080/app.js:137:23)
    at Object.next (http://localhost:8080/app.js:118:53)
    at fulfilled (http://localhost:8080/app.js:108:58)

Steps to reproduce

  1. Checkout the above referenced state, fails on console.

Note that this operation seems to work fine on a table that is in no way a view.

While this is consistently reproducible in the referenced application, I can't reproduce it in the phovea_demo repository no matter how much I slice.

It's also not related to missing values.

next time please also link to the data that you are using.

the issue was that the data definition is size: [ <number of rows>, <number of columns> ], in your case you have 193 data items but the system think there are just 13 according to the definition

see Caleydo/lineage_server@64f0a9a