Post Reply 
Minimserver crashes with error: RandomFileInputStream read error
21-12-2016, 22:19
Post: #1
Minimserver crashes with error: RandomFileInputStream read error
Hi
I have a Qnap TS251+. Firmware version 4.2.2.
I've been using Minimserver for a few months on this server and several years on my Synology server. I just added a number of records to my library and tried a rescan. Then after a while the serverer crashes with the errormessage: RandomFileInputStream read error.
Anyone knows how to deal with this??
Regards,
Ole Petter

The crash-log looks like this:

MinimServer crash dump, produced at 20161221-204128.923

RandomFileInputStream read error; pos=12160781 bufPos=3853 len=12160781 offset=0

org.jminim.LogErrorException: RandomFileInputStream read error
at com.minimserver.RandomFileInputStream.getData(RandomFileInputStream.java:92)
at com.minimserver.RandomFileInputStream.read(RandomFileInputStream.java:41)
at java.io.DataInputStream.readInt(DataInputStream.java:387)
at com.minimserver.Server$Playlist.resolveFiles(Server.java:11235)
at com.minimserver.Server.doStart(Server.java:2439)
at com.minimserver.Server.start(Server.java:503)
at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:153)
at org.jminim.core.ContextImpl.start(ContextImpl.java:78)
at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:1403)
at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1124)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.jminim.launch.Launcher.doLaunch(Launcher.java:677)
at org.jminim.launch.Launcher.launch(Launcher.java:210)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:34)

"Thread-52" id=61 RUNNABLE (in native)
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:170)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.jminim.lib.HTTPConnection$ReaderThread.readRequest(HTTPConnection.java:192)
at org.jminim.lib.HTTPConnection$ReaderThread.runReaderThread(HTTPConnection.java:1​55)
at org.jminim.lib.HTTPConnection$ReaderThread.run(HTTPConnection.java:126)

"Thread-51" id=60 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.HTTPConnection@1265bee
at java.lang.Object.wait(Object.java:502)
at org.jminim.lib.HTTPConnection.getRequest(HTTPConnection.java:108)
at org.jminim.lib.HTTPConnection.access$1600(HTTPConnection.java:18)
at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​33)
at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:418)

"Thread-32" id=41 RUNNABLE (in native)

"Thread-23" id=32 RUNNABLE (in native)

"Thread-16" id=25 RUNNABLE (in native)

"Thread-14" id=23 RUNNABLE (in native)

"Thread-13" id=22 RUNNABLE (in native)

"Thread-12" id=21 RUNNABLE (in native)

"Thread-11" id=20 RUNNABLE (in native)

"Thread-10" id=19 RUNNABLE (in native)

"Thread-9" id=18 RUNNABLE (in native)
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
at java.net.ServerSocket.implAccept(ServerSocket.java:545)
at java.net.ServerSocket.accept(ServerSocket.java:513)
at org.jminim.lib.HTTPService.runServerThread(HTTPService.java:332)
at org.jminim.lib.HTTPService.access$200(HTTPService.java:30)
at org.jminim.lib.HTTPService$1.run(HTTPService.java:317)

"Thread-8" id=17 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.HTTPService$SocketThread@857e8f
at java.lang.Object.wait(Object.java:502)
at org.jminim.lib.HTTPService$SocketThread.run(HTTPService.java:387)

"Thread-7" id=16 RUNNABLE (in native)

"Thread-6" id=15 TIMED_WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.OhNetService$TimerThread@28589
at org.jminim.lib.OhNetService$TimerThread.run(OhNetService.java:946)

"Thread-5" id=14 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.OhNetService$ActionThread@f6ecab
at java.lang.Object.wait(Object.java:502)
at org.jminim.lib.OhNetService$ActionThread.run(OhNetService.java:901)

"Thread-2" id=10 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.core.RuntimeImpl$TimerThread@647985
at org.jminim.core.RuntimeImpl$TimerThread.run(RuntimeImpl.java:2911)

"Thread-1" id=9 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.core.RuntimeImpl$ActionThread@1c91cd
at java.lang.Object.wait(Object.java:502)
at org.jminim.core.RuntimeImpl$ActionThread.run(RuntimeImpl.java:2865)

"Signal Dispatcher" id=4 RUNNABLE

"Finalizer" id=3 WAITING
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.ReferenceQueue$Lock@1e8b711
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

"Reference Handler" id=2 WAITING
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.Reference$Lock@4a3867
at java.lang.Object.wait(Object.java:502)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)

"main" id=1 RUNNABLE
at sun.management.ThreadImpl.dumpThreads0(Native Method)
at sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:440)
at org.jminim.core.LogImpl.writeCrashDump(LogImpl.java:1178)
at org.jminim.core.LogImpl.printStackTraceSync(LogImpl.java:1103)
- locked org.jminim.core.LogImpl@199df7a
at org.jminim.core.LogImpl.reportErrorEx(LogImpl.java:237)
at com.minimserver.RandomFileInputStream.getData(RandomFileInputStream.java:93)
at com.minimserver.RandomFileInputStream.read(RandomFileInputStream.java:41)
at java.io.DataInputStream.readInt(DataInputStream.java:387)
at com.minimserver.Server$Playlist.resolveFiles(Server.java:11235)
- locked java.lang.Object@1aacb6
at com.minimserver.Server.doStart(Server.java:2439)
at com.minimserver.Server.start(Server.java:503)
at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:153)
at org.jminim.core.ContextImpl.start(ContextImpl.java:78)
- locked java.lang.Object@19dc62f
at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:1403)
at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1124)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.jminim.launch.Launcher.doLaunch(Launcher.java:677)
at org.jminim.launch.Launcher.launch(Launcher.java:210)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:34)

- - - - - - - - - - - - - - - -
Find all posts by this user
Quote this message in a reply
22-12-2016, 09:00
Post: #2
RE: Minimserver crashes with error: RandomFileInputStream read error
Thanks for letting me know about this. This problem is now fixed in update 95.
Find all posts by this user
Quote this message in a reply
22-12-2016, 20:17
Post: #3
RE: Minimserver crashes with error: RandomFileInputStream read error
(22-12-2016 09:00)simoncn Wrote:  Thanks for letting me know about this. This problem is now fixed in update 95.

Thanks Simon.
I may have messed this up a bit more than necessary now. As I couldn't find an update option, I uninstalled Minimserver and installed manually afterwards. The new version starts in the sense that the icon gets green. But there's a crasch-log and MiniWatch fails on startup.

Regards,
Ole Petter
The crash-log looks like this:
MinimServer crash dump, produced at 20161030-050810.669

ohNet fatal error: Unhandled exception AssertionFailed at OpenHome/Timer.cpp:254 in thread TimerManager

"Thread-214" id=223 RUNNABLE (in native)

"Thread-213" id=222 RUNNABLE (in native)

"Thread-206" id=215 RUNNABLE (in native)

"Thread-205" id=214 RUNNABLE (in native)

"Thread-92" id=101 RUNNABLE (in native)

"Thread-87" id=96 RUNNABLE (in native)

"Thread-83" id=92 RUNNABLE (in native)

"Thread-82" id=91 RUNNABLE (in native)

"Thread-81" id=90 RUNNABLE (in native)

"Thread-80" id=89 RUNNABLE (in native)

"Thread-79" id=88 RUNNABLE (in native)

"Thread-71" id=80 RUNNABLE (in native)

"Thread-70" id=79 RUNNABLE (in native)

"Thread-49" id=58 RUNNABLE
at sun.management.ThreadImpl.dumpThreads0(Native Method)
at sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:440)
at org.jminim.core.LogImpl.writeCrashDump(LogImpl.java:1221)
at org.jminim.core.LogImpl.fatalError(LogImpl.java:251)
- locked org.jminim.core.LogImpl@c76cc
at org.jminim.lib.OhNetService$FatalErrorHandler.message(OhNetService.java:719)
- locked org.jminim.lib.OhNetService$FatalErrorHandler@182078b

"Thread-32" id=41 RUNNABLE (in native)

"Thread-16" id=25 RUNNABLE (in native)

"Thread-13" id=22 RUNNABLE (in native)

"Thread-12" id=21 RUNNABLE (in native)
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
at java.net.ServerSocket.implAccept(ServerSocket.java:545)
at java.net.ServerSocket.accept(ServerSocket.java:513)
at org.jminim.lib.HTTPService.runServerThread(HTTPService.java:332)
at org.jminim.lib.HTTPService.access$200(HTTPService.java:30)
at org.jminim.lib.HTTPService$1.run(HTTPService.java:317)

"Thread-11" id=20 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.HTTPService$SocketThread@2694e1
at java.lang.Object.wait(Object.java:502)
at org.jminim.lib.HTTPService$SocketThread.run(HTTPService.java:387)

"Thread-10" id=19 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.OhNetService$TimerThread@a75733
at org.jminim.lib.OhNetService$TimerThread.run(OhNetService.java:860)

"Thread-9" id=18 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.OhNetService$ActionThread@1fef87d
at java.lang.Object.wait(Object.java:502)
at org.jminim.lib.OhNetService$ActionThread.run(OhNetService.java:815)

"Thread-6" id=15 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.core.RuntimeImpl$TimerThread@250656
at org.jminim.core.RuntimeImpl$TimerThread.run(RuntimeImpl.java:2765)

"Thread-5" id=14 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.core.RuntimeImpl$ActionThread@c086f
at java.lang.Object.wait(Object.java:502)
at org.jminim.core.RuntimeImpl$ActionThread.run(RuntimeImpl.java:2719)

"Signal Dispatcher" id=4 RUNNABLE

"Finalizer" id=3 WAITING
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.ReferenceQueue$Lock@34dfd2
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

"Reference Handler" id=2 WAITING
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.Reference$Lock@1f039
at java.lang.Object.wait(Object.java:502)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)

"main" id=1 WAITING
at java.lang.Object.wait(Native Method)
- waiting on java.lang.Object@a45259
at java.lang.Object.wait(Object.java:502)
at org.jminim.core.RuntimeImpl.waitForRequest(RuntimeImpl.java:2636)
at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:1398)
at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1100)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.jminim.launch.Launcher.doLaunch(Launcher.java:677)
at org.jminim.launch.Launcher.launch(Launcher.java:210)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:34)

- - - - - - - - - - - - - - - -
Find all posts by this user
Quote this message in a reply
22-12-2016, 23:18
Post: #4
RE: Minimserver crashes with error: RandomFileInputStream read error
You need to to install update 95. To do this, select About from the minim icon. If this doesn't show that update 95 is already installed, click Show updates. You should see that update 95 is available. Follow the prompts to install this update and relaunch MinimServer.
Find all posts by this user
Quote this message in a reply
23-12-2016, 22:39
Post: #5
RE: Minimserver crashes with error: RandomFileInputStream read error
(22-12-2016 23:18)simoncn Wrote:  You need to to install update 95. To do this, select About from the minim icon. If this doesn't show that update 95 is already installed, click Show updates. You should see that update 95 is available. Follow the prompts to install this update and relaunch MinimServer.

Hi again,
I couldn't find the menu options you are referring to, so I tried a manual download from Minimserver site again and installed the downloaded file. Again it installed the previous version of Minimserver. In the Qnap app store it's only the previous version of Minimserver that's available for firmware version 4.2.2, which is the official one. I had to upgrade to the beta version 4.2.3 to get update 95 available.
Now I'm fine again. No errors now during startup.
Thanks for your help
Ole Petter
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)