Opened 6 years ago

Closed 6 years ago

#1186 closed defect (fixed)

Scheduled task net.i2p.router.tasks.CoalesceStatsEvent@d2ce52 exited unexpectedly, please report

Reported by: dg Owned by: zzz
Priority: minor Milestone: 0.9.12
Component: apps/console Version: 0.9.10
Keywords: Cc:
Parent Tickets: Sensitive: no

Description

Reported by 'ka' on IRC.
System is a Raspberry Pi.

I2P version: 0.9.10-0
Java version: Oracle Corporation 1.8.0-ea (Java(TM) SE Runtime Environment 1.8.0-ea-b36e)
Wrapper version: 3.5.15
Server version: 7.6.14.v20131031
Servlet version: Jasper JSP 2.1 Engine
Platform: Linux arm 3.10.25+
Processor: uninitialized (arm)
Jbigi: Locally optimized native BigInteger library loaded from file
Encoding: ANSI_X3.4-1968
Charset: US-ASCII
1/26/14 11:32:31 AM CRIT [cheduler 1/4] net.i2p.util.SimpleScheduler : SimpleScheduler: Scheduled task net.i2p.router.tasks.CoalesceStatsEvent@d2ce52 exited unexpectedly, please report
     java.lang.IllegalArgumentException
     at java.nio.Buffer.position(Buffer.java:236)
     at org.jrobin.core.RrdNioBackend.write(Unknown Source)
     at org.jrobin.core.RrdBackend.writeDouble(Unknown Source)
     at org.jrobin.core.RrdPrimitive.writeDouble(Unknown Source)
     at org.jrobin.core.RrdDoubleArray.set(Unknown Source)
     at org.jrobin.core.RrdDoubleArray.set(Unknown Source)
     at org.jrobin.core.Robin.store(Unknown Source)
     at org.jrobin.core.Archive.finalizeStep(Unknown Source)
     at org.jrobin.core.Archive.archive(Unknown Source)
     at org.jrobin.core.RrdDb.archive(Unknown Source)
     at org.jrobin.core.Datasource.process(Unknown Source)
     at org.jrobin.core.RrdDb.store(Unknown Source)
     at org.jrobin.core.Sample.update(Unknown Source)
     at net.i2p.router.web.SummaryListener.add(SummaryListener.java:77)
     at net.i2p.stat.Rate.coalesce(Rate.java:252)
     at net.i2p.stat.RateStat.coalesceStats(RateStat.java:66)
     at net.i2p.stat.StatManager.coalesceStats(StatManager.java:171)
     at net.i2p.router.tasks.CoalesceStatsEvent.timeReached(CoalesceStatsEvent.java:74)
     at net.i2p.util.SimpleScheduler$RunnableEvent.run(SimpleScheduler.java:168)
     at net.i2p.util.SimpleScheduler$PeriodicRunnableEvent.run(SimpleScheduler.java:201)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:295)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
     at java.lang.Thread.run(Thread.java:722)

Subtickets

Change History (7)

comment:1 Changed 6 years ago by killyourtv

I'm not saying this is the problem but it may be a good idea to update the JRE. The current version is b124

comment:2 Changed 6 years ago by zzz

This looks like one of those random mystery RPi crashes. Yes try the latest EA JVM, and let us know if the problem persists.

comment:3 Changed 6 years ago by ka

I update my JVM now i'm using :
Java version: Oracle Corporation 1.8.0-ea (Java™ SE Runtime Environment 1.8.0-ea-b124)

the problem persists…on every new start of i2p i see this message in the logs (no change, message exactly the same)

but everythings seems to work…strange

comment:4 Changed 6 years ago by zzz

Component: unspecifiedapps/console

OK, so it's not a random occurrence. Thanks for trying that.

It looks like it's a problem in writing the .jrb files. Those contain the persistent data for the graphs on /graphs in the console.

Stop the router. Then look in ~/.i2p/rrd/ - I have 4 files rrd-*.jrb, all 2097056 bytes, you should have too, unless you've changed what stats you are graphing. If you have added stats, some may be a different size. If one is the wrong size, that's the corrupt one, delete it. Otherwise, delete all of them.

Then restart the router and see if that fixes it.

If this works, we have a bug to fix, to not let one corrupt file kill the stats updater thread.

comment:5 Changed 6 years ago by ka

ok i have deleted all files at ~/.i2p/rrd/ …. the error message is gone…thx

comment:6 Changed 6 years ago by zzz

Milestone: 0.9.110.9.12
Owner: set to zzz
Status: newaccepted

Great, thank you very much for the followup, I will design a fix to catch the error and delete the corrupt file.

comment:7 Changed 6 years ago by zzz

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.