Page 1 of 1

[] Audio/MP4 Covert Art / Album Art support

Posted: Wed May 04, 2016 9:13 am
by Sami32
Hello,

somebody have any idea why i get this kind of error in my LOG with UMS (5.5.0 to 6.2.0) and JAVA (1.7u80 and 1.8u92) when i try to play MP3 or WAV files only ? with the default or private renderer conf i get the same result, the others files are playing fine through. WAV files are not playing at all.
And after testing the MP3 and WAV files not playing saw that they all have an covert art in their ID3 Tag ( the covert art is JPEG format, not progressive for some of them )

If i understood an old post from 2013, Subjunk was telling that it's coming from Thumbnailnator ?
I tried with a clean install with the default configuration but i get the same errors.

I will appreciate any help !!! Thank you in advance.
The attachment debug.zip is no longer available
java.lang.Error: Invalid memory access
at com.sun.jna.Native.invokeInt(Native Method)
at com.sun.jna.Function.invoke(Function.java:383)
at com.sun.jna.Function.invoke(Function.java:315)
at com.sun.jna.Library$Handler.invoke(Library.java:212)
at net.pms.dlna.$Proxy1.Open(Unknown Source)
at net.pms.dlna.MediaInfo.Open(MediaInfo.java:242)
at net.pms.dlna.LibMediaInfoParser.parse(LibMediaInfoParser.java:67)
at net.pms.configuration.FormatConfiguration.parse(FormatConfiguration.java:374)
at net.pms.formats.Format.parse(Format.java:270)
at net.pms.dlna.RealFile.resolve(RealFile.java:193)
at net.pms.dlna.DLNAResource.syncResolve(DLNAResource.java:1471)
at net.pms.dlna.DLNAResource.run(DLNAResource.java:1270)
at net.pms.dlna.RealFile.isValid(RealFile.java:66)
at net.pms.dlna.DLNAResource.addChild(DLNAResource.java:562)
at net.pms.dlna.DLNAResource.addChild(DLNAResource.java:522)
at net.pms.dlna.MapFile.manageFile(MapFile.java:114)
at net.pms.dlna.MapFile.analyzeChildren(MapFile.java:171)
at net.pms.dlna.DLNAResource.discoverWithRenderer(DLNAResource.java:1230)
at net.pms.dlna.DLNAResource.getDLNAResources(DLNAResource.java:1143)
at net.pms.network.RequestV2.answer(RequestV2.java:682)
at net.pms.network.RequestHandlerV2.writeResponse(RequestHandlerV2.java:300)
at net.pms.network.RequestHandlerV2.messageReceived(RequestHandlerV2.java:256)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:142)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:145)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:485)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

This is the last ZIP part of the MP3 file sample :
debug.zip
(94.24 KiB) Downloaded 443 times

Re: Error adding child: "..." java.lang.Error: Invalid memory access

Posted: Thu May 05, 2016 7:28 am
by Sami32
I tried MediaInfo = false in the renderer configuration file and it did the trick.
I read something about trying that in a old post from Subjunk i think.

It is a MP3 file sample send in a multi part ZIP file, with the last part in the first post :
09. Medley.001.zip
09. Medley.002.zip
09. Medley.003.zip

Re: [SOLVED] Error adding child: "..." java.lang.Error: Invalid memory access

Posted: Tue Jun 21, 2016 11:29 am
by Sami32
Not really solved, just a workaround for now, concerning handlind Cover Art/ Album Art in audio and MP4 files.
I downgraded to MediaInfo 0.7.81 ( UMS 5.5.0 use it as well) until finding the real lines of code giving this error.
Maybe a Base64 issue ? need more enquiries.