MinimServer Forum

Full Version: MinimServer crashing when accented characters are present in the filepath
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I recently bought a significant amount of digital music on a dedicated Hard Disk and I'm now trying to use it in MinimServer.
Many of the folders in the HD do include accented characters in their path.
Indexing completed successfully, but subsequent access to those folders cause MinimServer to crash, as visible in the log fragment below.
I'm using MinimServer 2.0.16 update 192
Code:
14:59:21.454 Thread-10: ContentDirectory action: Browse 0$=#AudioFormat$51993$=All Artists
14:59:21.454 Thread-10:  version=1, adapter=192.168.1.20, uriPrefix=http://192.168.1.20:9791/63f0989e-f8e1-4cdb-856a-61d75c650c43/Upnp/resource/, clientEndpoint=192.168.1.3:62784
14:59:21.454 Thread-10:  BrowseFlag=BrowseDirectChildren StartingIndex=0 RequestedCount=1 Filter= SortCriteria=
14:59:21.455 Thread-10: using resource URI prefix http://192.168.1.20:9790/
14:59:21.455 Thread-10: removing container from cache: 0$=#AudioFormat$51993$=Library
14:59:21.455 Thread-10: removing container from cache: 0$=#AudioFormat$51993$=Library$13378
14:59:21.455 Thread-10: $$$ ValueContainer.doPopulate: title=All Artists id=0$=#AudioFormat$51993$=All Artists
14:59:21.456 Thread-10: $$$ ValueContainer.doPopulate: complete
14:59:21.456 Thread-10: adding container to cache: 0$=#AudioFormat$51993$=All Artists
14:59:21.456 Thread-10: browsing children of container com.minimserver.Server$ValueContainer@1da40a5
14:59:21.456 Thread-10: getCachedArtInfo: clearing index art cache id=0$=#AudioFormat$51993$=All Artists
14:59:21.456 Thread-10: ContentDirectory response: Browse 0$=#AudioFormat$51993$=All Artists
14:59:21.456 Thread-10:  NumberReturned=1 TotalMatches=16 UpdateID=9
14:59:21.462 Thread-9: ContentDirectory action: Browse 0$=#AudioFormat$51993$=All Artists
14:59:21.462 Thread-9:  version=1, adapter=192.168.1.20, uriPrefix=http://192.168.1.20:9791/63f0989e-f8e1-4cdb-856a-61d75c650c43/Upnp/resource/, clientEndpoint=192.168.1.3:62786
14:59:21.462 Thread-9:  BrowseFlag=BrowseDirectChildren StartingIndex=0 RequestedCount=16 Filter=* SortCriteria=
14:59:21.462 Thread-9: using resource URI prefix http://192.168.1.20:9790/
14:59:21.463 Thread-9: browsing children of container com.minimserver.Server$ValueContainer@1da40a5
14:59:21.464 Thread-11: ContentDirectory action: Browse 0$=#AudioFormat$51993$=All Artists
14:59:21.464 Thread-11:  version=1, adapter=192.168.1.20, uriPrefix=http://192.168.1.20:9791/63f0989e-f8e1-4cdb-856a-61d75c650c43/Upnp/resource/, clientEndpoint=192.168.1.3:62785
14:59:21.464 Thread-11:  BrowseFlag=BrowseDirectChildren StartingIndex=0 RequestedCount=16 Filter=* SortCriteria=
MinimServer: exception while processing action request: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: Chiara Pastò
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: Chiara Pastò
    at java.base/sun.nio.fs.UnixPath.encode(UnixPath.java:145)
    at java.base/sun.nio.fs.UnixPath.<init>(UnixPath.java:69)
    at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:279)
    at java.base/java.nio.file.Path.of(Path.java:147)
    at java.base/java.nio.file.Paths.get(Paths.java:69)
    at com.minimserver.Server$Container.getFolderIndexArtwork(Server.java:22389)
    at com.minimserver.Server$Container.findIndexArtInfo(Server.java:22374)
    at com.minimserver.Server$Container.getCachedArtInfo(Server.java:22362)
    at com.minimserver.Server$Container.getIndexArtInfo(Server.java:22346)
    at com.minimserver.Server$TagContainer.appendContainerDIDL(Server.java:23223)
    at com.minimserver.Server$Container.getDIDL(Server.java:22318)
    at com.minimserver.Server$TagContainer.getDIDL(Server.java:23214)
    at com.minimserver.Server$Container.getContentsDIDL(Server.java:22333)
    at com.minimserver.Server$ContentDirectoryProvider.doBrowse(Server.java:27304)
    at com.minimserver.Server$ContentDirectoryProvider.browse(Server.java:27245)
    at org.openhome.net.device.providers.DvProviderUpnpOrgContentDirectory1$DoBrowse.ac​tionInvoked(DvProviderUpnpOrgContentDirectory1.java:978)
14:59:21.464 Thread-11: using resource URI prefix http://192.168.1.20:9790/
14:59:21.535 Thread-9: >>> EVENT >>> componentError: minimserver
14:59:21.535 Thread-11: browsing children of container com.minimserver.Server$ValueContainer@1da40a5
14:59:21.535 Thread-9: ServerControl: componentError event for minimserver
14:59:21.535 Thread-9: Monitor: componentError event for minimserver in context context0
14:59:21.536 main: stopping context context0
14:59:21.536 main: >>> EVENT >>> contextStopping: context0
14:59:21.536 main: ConsoleService: contextStopping event for context0
14:59:21.536 main: ServerControl: contextStopping event for context0
14:59:21.536 main: Monitor: contextStopping event for context0
14:59:21.536 main: stopping component minimserver in context context0[/quote][/code
]
Which platform (Windows, Mac, Linux, QNAP, Synology, etc.) are you using to run MinimServer?
(11-04-2021 14:57)simoncn Wrote: [ -> ]Which platform (Windows, Mac, Linux, QNAP, Synology, etc.) are you using to run MinimServer?
I'm on a raspnberry (pi4)
This is probably caused by a mismatch between the platform default charset that you are using to run MinimServer and the charset that was used to encode the filenames.

Near the start of the minimserver.log file, there should be a line starting "Platform default charset is". What charset name appears on this line?
(11-04-2021 17:28)simoncn Wrote: [ -> ]This is probably caused by a mismatch between the platform default charset that you are using to run MinimServer and the charset that was used to encode the filenames.

Near the start of the minimserver.log file, there should be a line starting "Platform default charset is". What charset name appears on this line?

Platform default charset is UTF-8
I have an idea what might be happening. To be sure, I need to see one of the files tagged with Chiara Pastò as the artist. Please upload one of these files to my FTP server. I will send you a PM with the server details. Many thanks for your help with this.
(11-04-2021 22:18)simoncn Wrote: [ -> ]I have an idea what might be happening. To be sure, I need to see one of the files tagged with Chiara Pastò as the artist. Please upload one of these files to my FTP server. I will send you a PM with the server details. Many thanks for your help with this.
File uploaded, replied to your msg. Thx
Thanks for this file. It is working correctly on my Raspberry Pi. The problem does not appear to be what I was suspecting.

How is your library attached to the Raspberry Pi? Is it attached directly to the RPi via USB or is it accessed over the network using a sharing protocol such as SMB/CIFS or NFS?

What is your setting for indexArtwork? If you set indexArtwork=none, does the problem go away?
(12-04-2021 12:59)simoncn Wrote: [ -> ]Thanks for this file. It is working correctly on my Raspberry Pi. The problem does not appear to be what I was suspecting.

How is your library attached to the Raspberry Pi? Is it attached directly to the RPi via USB or is it accessed over the network using a sharing protocol such as SMB/CIFS or NFS?

What is your setting for indexArtwork? If you set indexArtwork=none, does the problem go away?
  • The library is attached to the rpi4 with a USB disk
  • I recently introduced the "indexArtwork=all" parameter, and that might well be the cause of the issue. I removed it and I'm now rescanning the library....I'll let you know how it goes
-------> Removing the indexArtwork=all, now it works
Thans for confirming this. It is a bug and I would like to fix it for you and other users. Unfortunately it is not simple to pin down exactly what is causing this error.

Please use the writeAllTags property to produce an "all tags" file (see my PM) and upload it to my FTP server. I am hoping this will provide some useful information.

Are you using Raspbian on the Pi or some other version of Linux? Have you changed any system settings related to character set encodings?
Pages: 1 2
Reference URL's