fact-project / fact-tools

The fact-tools are an extension to the streams framework to analyse the data of the First G-APD Cherenkov Telescope.
http://sfb876.tu-dortmund.de/FACT/
GNU General Public License v3.0
6 stars 1 forks source link

ArrayStoreException in Utils.arrayMultiplication for 20131104_196 #372

Closed maxnoe closed 5 years ago

maxnoe commented 5 years ago

Processing of 20131104_196 throws an error in TimeSpread after a couple of hundred events:

java.lang.ArrayStoreException: Array of length zero.
    at fact.Utils.arrayMultiplication(Utils.java:418)
    at fact.features.TimeSpread.process(TimeSpread.java:50)
    at stream.runtime.AbstractProcess.process(AbstractProcess.java:127)
    at stream.runtime.AbstractProcess.execute(AbstractProcess.java:185)
    at stream.runtime.ProcessThread.run(ProcessThread.java:129)
Exception in thread "Thread-2" java.lang.RuntimeException: Process stopped after exception: Array of length zero.
    at stream.runtime.ProcessThread.run(ProcessThread.java:171)
java.lang.ArrayStoreException: Array of length zero.
    at fact.Utils.arrayMultiplication(Utils.java:418)
    at fact.features.TimeSpread.process(TimeSpread.java:50)
    at stream.runtime.AbstractProcess.process(AbstractProcess.java:127)
    at stream.runtime.AbstractProcess.execute(AbstractProcess.java:185)
    at stream.runtime.ProcessThread.run(ProcessThread.java:129)
streams exited on error: java.lang.ArrayStoreException: Array of length zero.
java.lang.RuntimeException: java.lang.ArrayStoreException: Array of length zero.
    at stream.runtime.ProcessContainer.run(ProcessContainer.java:580)
    at stream.run.main(run.java:168)
    at stream.run.main(run.java:147)
    at fact.run.main(run.java:26)
Caused by: java.lang.ArrayStoreException: Array of length zero.
    at fact.Utils.arrayMultiplication(Utils.java:418)
    at fact.features.TimeSpread.process(TimeSpread.java:50)
    at stream.runtime.AbstractProcess.process(AbstractProcess.java:127)
    at stream.runtime.AbstractProcess.execute(AbstractProcess.java:185)
    at stream.runtime.ProcessThread.run(ProcessThread.java:129)
maxnoe commented 5 years ago

Turns out this is an event, where all 1440 pixels are in shower, so there are now pedestal pixels and this is why timespread fails to be calculted on the pedestals