Post Thu Jul 05, 2018 9:50 pm

BUG: No thumbnail in "New added files" notification

Hi!

I recently rebuilt my media library with serviio 1.9.2 and FFMPEG 4. (made a docker image: https://hub.docker.com/r/cina/serviio/).

During heavy MediaFileIndexer reports I found several java errors in log files if the webUI notification for newly added media is turned on and the notification toast displayed no thumbnail icon.

I don't know if it is intentional but the log is cluttered with the message. And I experienced restarted playbacks in Mediaplayer and on my Samsung TV-s it Web UI is opened and "Show notifications for playback status" is enabled with missing thumbnail data. I don't know it it is connected I had no time to test this.

Is Serviio supposed to work with FFMPEG > v4 or should I stick around v3.4?

  Code:
2018-07-05 21:38:58,092 WARN  [ServiioStatusService] FileNotFoundException occurred. Returning error code 404 to the REST layer. Message: null
java.io.FileNotFoundException
        at org.serviio.ui.resources.server.RetrieveThumbnailServerResource.deliver(RetrieveThumbnailServerResource.java:59)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.restlet.resource.ServerResource.doHandle(ServerResource.java:524)
        at org.restlet.resource.ServerResource.get(ServerResource.java:743)
        at org.restlet.resource.ServerResource.doHandle(ServerResource.java:618)
        at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:679)
        at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:357)
        at org.serviio.restlet.AbstractServerResource.doConditionalHandle(AbstractServerResource.java:49)
        at org.restlet.resource.ServerResource.handle(ServerResource.java:1014)
        at org.restlet.resource.Finder.handle(Finder.java:246)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Router.doHandle(Router.java:431)
        at org.restlet.routing.Router.handle(Router.java:648)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
        at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:84)
        at org.restlet.Application.handle(Application.java:384)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Router.doHandle(Router.java:431)
        at org.restlet.routing.Router.handle(Router.java:648)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Router.doHandle(Router.java:431)
        at org.restlet.routing.Router.handle(Router.java:648)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
        at org.restlet.Component.handle(Component.java:406)
        at org.restlet.Server.handle(Server.java:516)
        at org.restlet.engine.connector.ServerHelper.handle(ServerHelper.java:72)
        at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:152)
        at org.restlet.ext.simple.internal.SimpleContainer.handle(SimpleContainer.java:80)
        at org.simpleframework.http.core.Dispatcher.dispatch(Dispatcher.java:121)
        at org.simpleframework.http.core.Dispatcher.run(Dispatcher.java:103)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)


Similar situation with different WARN message:
  Code:
2018-07-05 18:29:41,138 WARN  [ServiioStatusService] FileNotFoundException occurred. Returning error code 404 to the REST layer. Message: File /org/serviio/webconsole/{{toaster.data.thumbnailUrl}} doesn't exist on the classpath
java.io.FileNotFoundException: File /org/serviio/webconsole/{{toaster.data.thumbnailUrl}} doesn't exist on the classpath
        at org.serviio.webconsole.rest.resources.server.WebConsoleServerResource.getStreamFromClasspath(WebConsoleServerResource.java:98)
        at org.serviio.webconsole.rest.resources.server.WebConsoleServerResource.deliver(WebConsoleServerResource.java:60)
        at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)...