MinimServer Forum
Minim Server crashes without interaction overnight - SOLVED - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Minim Server crashes without interaction overnight - SOLVED (/showthread.php?tid=132)

Pages: 1 2


Minim Server crashes without interaction overnight - SOLVED - akolbe - 14-08-2012 22:02

Hello Simon,

this happened twice in the last days: In the morning, Minim Server has crashed without any interaction/playback since startup, i.e. I did not play any song since last startup.

This happened also tonight, after approx. 14 hours of idle running during the day.

I have Mac OSX 10.7.4 and run Minim Server 0.52a. Please let me know whether you need any other information.

Best regards,
Andreas.


RE: Minim Server crashes without interaction overnight - simoncn - 14-08-2012 22:46

(14-08-2012 22:02)akolbe Wrote:  Hello Simon,

this happened twice in the last days: In the morning, Minim Server has crashed without any interaction/playback since startup, i.e. I did not play any song since last startup.

This happened also tonight, after approx. 14 hours of idle running during the day.

I have Mac OSX 10.7.4 and run Minim Server 0.52a. Please let me know whether you need any other information.

Best regards,
Andreas.

When MinimServer crashes, it should create a crash log file named minimserver-crash-yyyymmdd-hhmmss.log. On Mac OS X, this file will be in the /Users/<your-user-name>/Library/MinimServer folder. Please check this folder for a crash log file that corresponds to one of these crashes, and post the crash log file as an attachment here. Thanks!


RE: Minim Server crashes without interaction overnight - akolbe - 15-08-2012 19:02

(14-08-2012 22:46)simoncn Wrote:  
(14-08-2012 22:02)akolbe Wrote:  Hello Simon,

this happened twice in the last days: In the morning, Minim Server has crashed without any interaction/playback since startup, i.e. I did not play any song since last startup.

This happened also tonight, after approx. 14 hours of idle running during the day.

I have Mac OSX 10.7.4 and run Minim Server 0.52a. Please let me know whether you need any other information.

Best regards,
Andreas.

When MinimServer crashes, it should create a crash log file named minimserver-crash-yyyymmdd-hhmmss.log. On Mac OS X, this file will be in the /Users/<your-user-name>/Library/MinimServer folder. Please check this folder for a crash log file that corresponds to one of these crashes, and post the crash log file as an attachment here. Thanks!

Hi Simon,

this is interesting! In this folder, there are crah logs from a week ago. I have posted the last log available. But there is no log from the last days, where there were 3 crashes of Minim Server... I will let it run today and take precise note of the crash message, once it comes back.

However, maybe the log attached may also be of any help for you.

Best regards,
Andreas.

MinimServer crash dump, produced at 20120809-112809.196

java.lang.IndexOutOfBoundsException: Index: 21, Size: 20
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at com.minimserver.Server$ValueContainer.get(Server.java:9265)
at com.minimserver.Server$ValueContainer.childContainer(Server.java:9303)
at com.minimserver.Server.getContainer(Server.java:3335)
at com.minimserver.Server.populateContainer(Server.java:3369)
at com.minimserver.Server.getContainer(Server.java:3334)
at com.minimserver.Server.populateContainer(Server.java:3369)
at com.minimserver.Server.access$17800(Server.java:77)
at com.minimserver.Server$ContentDirectoryProvider.doBrowse(Server.java:10721)
at com.minimserver.Server$ContentDirectoryProvider.browse(Server.java:10681)
at org.openhome.net.device.providers.DvProviderUpnpOrgContentDirectory1$DoBrowse.ac​tionInvoked(DvProviderUpnpOrgContentDirectory1.java:978)

Thread[Thread-830,5,main]
java.net.PlainSocketImpl.socketAccept(Native Method)
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408)
java.net.ServerSocket.implAccept(ServerSocket.java:462)
java.net.ServerSocket.accept(ServerSocket.java:430)
org.jminim.lib.HTTPService.runServerThread(HTTPService.java:198)
org.jminim.lib.HTTPService.access$100(HTTPService.java:29)
org.jminim.lib.HTTPService$1.run(HTTPService.java:153)

Thread[Thread-5,5,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)
org.jminim.lib.OhNetService$ActionThread.run(OhNetService.java:317)

Thread[AWT-AppKit,5,main]

Thread[main,5,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)
org.jminim.core.RuntimeImpl.waitForRequest(RuntimeImpl.java:408)
org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:361)
org.jminim.core.LauncherImpl.run(LauncherImpl.java:658)
org.jminim.core.LauncherImpl.launch(LauncherImpl.java:81)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.jminim.launch.Launcher.launch(Launcher.java:60)
com.minimserver.launch.LaunchServer.main(LaunchServer.java:26)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:25)
java.lang.reflect.Method.invoke(Method.java:597)
apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)

Thread[TimerQueue,5,system]
java.lang.Object.wait(Native Method)
javax.swing.TimerQueue.run(TimerQueue.java:232)
java.lang.Thread.run(Thread.java:680)

Thread[Thread-831,5,main]
java.lang.Thread.dumpThreads(Native Method)
java.lang.Thread.getAllStackTraces(Thread.java:1554)
org.jminim.core.LogImpl.writeCrashDump(LogImpl.java:640)
org.jminim.core.LogImpl.printStackTraceSync(LogImpl.java:580)
org.jminim.core.LogImpl.error(LogImpl.java:293)
com.minimserver.Server$ContentDirectoryProvider.browse(Server.java:10691)
org.openhome.net.device.providers.DvProviderUpnpOrgContentDirectory1$DoBrowse.ac​tionInvoked(DvProviderUpnpOrgContentDirectory1.java:978)

Thread[AWT-Shutdown,5,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)
sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:265)
java.lang.Thread.run(Thread.java:680)

Thread[Reference Handler,10,system]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)

Thread[Signal Dispatcher,9,system]

Thread[Java2D Disposer,10,system]
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
sun.java2d.Disposer.run(Disposer.java:127)
java.lang.Thread.run(Thread.java:680)

Thread[Thread-1,5,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)
org.jminim.core.RuntimeImpl$ActionThread.run(RuntimeImpl.java:768)

Thread[Poller SunPKCS11-Darwin,1,main]
java.lang.Thread.sleep(Native Method)
sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:692)
java.lang.Thread.run(Thread.java:680)

Thread[Finalizer,8,system]
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Thread[Thread-6,5,main]
java.lang.Object.wait(Native Method)
org.jminim.lib.OhNetService$TimerThread.run(OhNetService.java:359)

Thread[AWT-EventQueue-0,6,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)
java.awt.EventQueue.getNextEvent(EventQueue.java:525)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:263​)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201​)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

- - - - - - - - - - - - - - - -


RE: Minim Server crashes without interaction overnight - simoncn - 15-08-2012 20:52

(15-08-2012 19:02)akolbe Wrote:  Hi Simon,

this is interesting! In this folder, there are crah logs from a week ago. I have posted the last log available. But there is no log from the last days, where there were 3 crashes of Minim Server... I will let it run today and take precise note of the crash message, once it comes back.

However, maybe the log attached may also be of any help for you.

Best regards,
Andreas.

Thanks for posting this crash log. As you suspected, it's not related to the issue of crashing overnight without interaction. This log is for a fairly common occurrence where a cached container in the control point gets out of sync with the current container contents on the server. It isn't really a crash, as MinimServer sends an error code to the control point and continues to run.

I may need to change MinimServer to stop writing these control point errors to crash log files, so they don't cause confusion with genuine crashes.

When MinimServer crashes overnight, can you retrieve the minimserver.log file (in the same folder) before you restart MinimServer and this file gets overwritten?


RE: Minim Server crashes without interaction overnight - akolbe - 18-08-2012 11:46

Hello Simon,

finally, the crash has just re-appeared. I have attached the minimserver.log File, which does not contain any usefull information. I have searched the directory (user/Library/minimserver) and did not find any crash report from today. However, there is an option in the crash message from Mac OS X to view crash details. Due to problems with uploading attachments to this forum, I have uploaded them to your FTP server (Akolbe-overnight crash.zip).

Maybe this helps you to isentify the area where the issue is.

Best regards,
Andreas.


RE: Minim Server crashes without interaction overnight - simoncn - 18-08-2012 14:11

(18-08-2012 11:46)akolbe Wrote:  Hello Simon,

finally, the crash has just re-appeared. I have attached the minimserver.log File, which does not contain any usefull information. I have searched the directory (user/Library/minimserver) and did not find any crash report from today. However, there is an option in the crash message from Mac OS X to view crash details. Due to problems with uploading attachments to this forum, I have uploaded them to your FTP server (Akolbe-overnight crash.zip).

Maybe this helps you to isentify the area where the issue is.

Best regards,
Andreas.

Thanks very much for sending the Mac OS X crash file. This is very useful, and it shows that the crash was in ohNet (a native library used by MinimServer). I'll let the ohNet developers know about this.

I'm not sure what you mean by a problem uploading attachments to this forum. It isn't possible to include an attachment in a private message, but there shouldn't be any problem with adding an attachment to a forum post. When you create a post, there's an Attachments section just below the place where you type your post. You need to put the filename for the attachment in the "New Attachment" entry field, and press the "Add Attachment" button on the right of the page. If you forget to press this button, the attachment won't be included in your post. Sad

If this doesn't work for you, please can you explain what problem you are seeing. Thanks!


RE: Minim Server crashes without interaction overnight - simoncn - 18-08-2012 14:45

A few filetypes aren't allowed for attachments. If this is the problem, you can put the file(s) into a .zip file, which is allowed.


RE: Minim Server crashes without interaction overnight - akolbe - 18-08-2012 22:13

Ah! This explains the situation. Even better, you could identify the problem. Any idea for worksround or cause of the crash?


RE: Minim Server crashes without interaction overnight - simoncn - 18-08-2012 22:20

(18-08-2012 22:13)akolbe Wrote:  Ah! This explains the situation. Even better, you could identify the problem. Any idea for worksround or cause of the crash?

I'm waiting to hear from the ohNet developers. Because the bug is hard to reproduce, it might be difficult for them to identify the cause. I'll let you know when I get any news.


RE: Minim Server crashes without interaction overnight - simoncn - 20-08-2012 17:35

(18-08-2012 22:20)simoncn Wrote:  
(18-08-2012 22:13)akolbe Wrote:  Ah! This explains the situation. Even better, you could identify the problem. Any idea for worksround or cause of the crash?

I'm waiting to hear from the ohNet developers. Because the bug is hard to reproduce, it might be difficult for them to identify the cause. I'll let you know when I get any news.

The ohNet developers have produced a fix for testing. I'll make a test build for Mac OS X with this change, and I'll post a download link later this evening.