Closed GoogleCodeExporter closed 8 years ago
I forgot one other test I've made:
64bit JDK6 - ums 1.6.0 -> Crash
The attached log is from this last test
Original comment by plasma...@gmail.com
on 11 Oct 2012 at 10:42
I can add another (I hope) useful information:
Extracting cover jpegs from mp3 files, I can see that mp3 that make JVM crash
have a much bigger jpeg embedded, about 300-500 kb. Mp3s that can be parsed
without crash have a smaller one, about 10-20 kb!
Original comment by plasma...@gmail.com
on 11 Oct 2012 at 11:03
Can you please upload a MP3 file that causes the crash so I can test?
Original comment by subjunk
on 5 Nov 2012 at 5:58
Yes! :-)
If I good remember you are on Windows, I hope this is not an issue that happen
on linux only!
Original comment by plasma...@gmail.com
on 5 Nov 2012 at 8:39
Attachments:
I tested and it works OK for me.
I have updated a lot of database stuff today though so please try the following
version and if it still crashes, post your debug.log too:
http://www.spirton.com/uploads/UMS/UMS-plasma977.tgz
Original comment by subjunk
on 6 Nov 2012 at 8:06
Well, tried, and still a crash, some info and logs:
JVM:
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)
Standard Output:
INFO 2012-11-07 11:10:30.194 [Library Scanner] The file
/home/plasma/mediafiles/gallerie/Geek/P-06:13:2008-00:07:40.jpg was badly
parsed. It will be hidden
INFO 2012-11-07 11:31:37.908 [Library Scanner] Error generating thumbnail of
image
javax.imageio.IIOException: Invalid JPEG file structure: two SOF markers
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method) ~[na:1.7.0_07]
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unknown Source) ~[na:1.7.0_07]
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source) ~[na:1.7.0_07]
at javax.imageio.ImageReader.read(Unknown Source) ~[na:1.7.0_07]
at net.coobird.thumbnailator.tasks.io.FileImageSource.read(Unknown Source) ~[ums.jar:na]
at net.coobird.thumbnailator.tasks.SourceSinkThumbnailTask.read(Unknown Source) ~[ums.jar:na]
at net.coobird.thumbnailator.Thumbnailator.createThumbnail(Unknown Source) ~[ums.jar:na]
at net.coobird.thumbnailator.Thumbnails$Builder.toFile(Unknown Source) ~[ums.jar:na]
at net.pms.dlna.DLNAMediaInfo.parse(DLNAMediaInfo.java:609) ~[ums.jar:na]
at net.pms.configuration.FormatConfiguration.parse(FormatConfiguration.java:81) [ums.jar:na]
at net.pms.formats.Format.parse(Format.java:218) [ums.jar:na]
at net.pms.dlna.RealFile.resolve(RealFile.java:177) [ums.jar:na]
at net.pms.dlna.DLNAResource.run(DLNAResource.java:804) [ums.jar:na]
at net.pms.dlna.RealFile.isValid(RealFile.java:58) [ums.jar:na]
at net.pms.dlna.DLNAResource.addChild(DLNAResource.java:461) [ums.jar:na]
at net.pms.dlna.MapFile.manageFile(MapFile.java:143) [ums.jar:na]
at net.pms.dlna.MapFile.analyzeChildren(MapFile.java:196) [ums.jar:na]
at net.pms.dlna.RootFolder.scan(RootFolder.java:236) [ums.jar:na]
at net.pms.dlna.RootFolder.scan(RootFolder.java:246) [ums.jar:na]
at net.pms.dlna.RootFolder.scan(RootFolder.java:195) [ums.jar:na]
at net.pms.dlna.DLNAMediaDatabase.run(DLNAMediaDatabase.java:729) [ums.jar:na]
at java.lang.Thread.run(Unknown Source) [na:1.7.0_07]
INFO 2012-11-07 11:31:38.459 [Library Scanner] Error generating thumbnail of
image
javax.imageio.IIOException: Invalid JPEG file structure: two SOF markers
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method) ~[na:1.7.0_07]
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unknown Source) ~[na:1.7.0_07]
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source) ~[na:1.7.0_07]
at javax.imageio.ImageReader.read(Unknown Source) ~[na:1.7.0_07]
at net.coobird.thumbnailator.tasks.io.FileImageSource.read(Unknown Source) ~[ums.jar:na]
at net.coobird.thumbnailator.tasks.SourceSinkThumbnailTask.read(Unknown Source) ~[ums.jar:na]
at net.coobird.thumbnailator.Thumbnailator.createThumbnail(Unknown Source) ~[ums.jar:na]
at net.coobird.thumbnailator.Thumbnails$Builder.toFile(Unknown Source) ~[ums.jar:na]
at net.pms.dlna.DLNAMediaInfo.parse(DLNAMediaInfo.java:609) [ums.jar:na]
at net.pms.dlna.DLNAMediaInfo.generateThumbnail(DLNAMediaInfo.java:312) [ums.jar:na]
at net.pms.dlna.DLNAResource.checkThumbnail(DLNAResource.java:1748) [ums.jar:na]
at net.pms.dlna.RealFile.checkThumbnail(RealFile.java:268) [ums.jar:na]
at net.pms.dlna.RealFile.isValid(RealFile.java:75) [ums.jar:na]
at net.pms.dlna.DLNAResource.addChild(DLNAResource.java:461) [ums.jar:na]
at net.pms.dlna.MapFile.manageFile(MapFile.java:143) [ums.jar:na]
at net.pms.dlna.MapFile.analyzeChildren(MapFile.java:196) [ums.jar:na]
at net.pms.dlna.RootFolder.scan(RootFolder.java:236) [ums.jar:na]
at net.pms.dlna.RootFolder.scan(RootFolder.java:246) [ums.jar:na]
at net.pms.dlna.RootFolder.scan(RootFolder.java:195) [ums.jar:na]
at net.pms.dlna.DLNAMediaDatabase.run(DLNAMediaDatabase.java:729) [ums.jar:na]
at java.lang.Thread.run(Unknown Source) [na:1.7.0_07]
An irrecoverable stack overflow has occurred.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x3705c7ae, pid=4577, tid=845122368
#
# JRE version: 7.0_07-b10
# Java VM: Java HotSpot(TM) Server VM (23.3-b01 mixed mode linux-x86 )
# Problematic frame:
# C [jna6887335371587211492.tmp+0x57ae] newJavaString+0x6e
#
# Failed to write core dump. Core dumps have been disabled. To enable core
dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/plasma/ums-2.0.1/hs_err_pid4577.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
Aborted
I attach the last 100 lines of debug.log (the whole file is really big!) and
virtual machine crash report!
Original comment by plasma...@gmail.com
on 7 Nov 2012 at 11:12
Attachments:
Maybe an important info:
Don't get confused about the "Invalid JPEG file structure" is not related to
the file that cause the crash!
Enabling TRACE level in debug.log file, I can see that the JPEG error happen
10-15 seconds before the crash.
last 4 line of debug.log with TRACE active after crash:
TRACE 2012-11-08 12:03:04.783 [Library Scanner] Matched format MP3 to
"/home/plasma/mediafiles/incoming/London Sounds Exposed 100 (Two Year
Anniversary Special) (1).mp3"
TRACE 2012-11-08 12:03:04.783 [Library Scanner] Adding London Sounds Exposed
100 (Two Year Anniversary Special) (1).mp3 / class: net.pms.dlna.RealFile
TRACE 2012-11-08 12:03:04.783 [Library Scanner] Matched format MP3 to
"/home/plasma/mediafiles/incoming/Skaven 252 - Hap Hazard - 06 Time's Up!.mp3"
Then the JVM crash...
Hope it helps!
Original comment by plasma...@gmail.com
on 8 Nov 2012 at 1:28
OK I have fixed more stuff now, let me know how this one goes :)
http://www.spirton.com/uploads/UMS/UMS-plasma977-2.tgz
Original comment by subjunk
on 18 Nov 2012 at 10:40
I'm closing this issue now because I assume it's fixed. It can be re-opened if
not.
Original comment by subjunk
on 20 Nov 2012 at 10:22
Hi! sorry! I was really busy with work in these days!
I've tried now the UMS-plasma977-2.tgz package but no luck! still crash!
I've raised to TRACE all possible log level to have as much information as
possible..
Now debug.log and standard output in console are identical:
***************************************************
TRACE 2012-11-20 23:41:56.063 [Library Scanner] Switching RSI LA 2 HD -
Sportsera.ts-.ts to player tsMuxeR for transcoding
TRACE 2012-11-20 23:41:56.063 [Library Scanner] Duplicate RSI LA 2 HD -
Sportsera.ts-.ts with player: tsMuxeR
TRACE 2012-11-20 23:41:56.064 [Library Scanner] Adding RSI LA 2 HD -
Sportsera.ts-.ts / class: net.pms.dlna.FileTranscodeVirtualFolder
TRACE 2012-11-20 23:41:56.064 [Library Scanner] Could not match any format to
"/home/plasma/download/shmat_ccs12.pdf"
TRACE 2012-11-20 23:41:56.065 [Library Scanner] Could not match any format to
"/home/plasma/download/shmat_ccs12.pdf"
TRACE 2012-11-20 23:41:56.065 [Library Scanner] Matched format MP3 to
"/home/plasma/download/Skaven 252 - Hap Hazard - 07 Loader.mp3"
An irrecoverable stack overflow has occurred.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fca38356bd6, pid=20528, tid=140505904690944
#
# JRE version: 6.0_37-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.12-b01 mixed mode linux-amd64
compressed oops)
# Problematic frame:
# C [jna5971648025566251438.tmp+0x6bd6] __int128+0x1b6
#
# An error report file with more information is saved as:
# /mnt/data/apps/ums-2.0.1/hs_err_pid20528.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted
I've tried also with ICEd Tea open source Virtual machine, same error, same
crash report!
Java crash report attached
I would like to help you much more providing you more information, but I don't
know how to get more info from the JVM!
Original comment by plasma...@gmail.com
on 20 Nov 2012 at 11:28
Attachments:
hey, solved!
the problem is caused by the startup script (UMS.sh) provided with the package!
The startup script has the java option -Xss set to 1024k and this is not enough
for the library native thread scanner when he must scan the problematic MP3
files (with big Cover jpeg). I've raised this parameter to 2048k and now the
library scanner thread complete all the scanning without crashes! :-)
Please change this parameter in linux package distribution!
here I've found the info to understand the problem:
http://stackoverflow.com/questions/4967885/jvm-option-xss-what-does-it-do-exactl
y
Original comment by plasma...@gmail.com
on 20 Nov 2012 at 11:41
Cool, thanks! The fix will be in the next version
Original comment by subjunk
on 20 Nov 2012 at 11:49
Original issue reported on code.google.com by
plasma...@gmail.com
on 11 Oct 2012 at 10:40Attachments: