Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Thread Closed 
Solved: Thumbnail Generator Issue in 9.0.0
#11
(05-23-2024, 08:45 AM)radu- Wrote: I also have issues with tumbnails scanning and I don't know how to check/debug what the problem is. The scanning stops in a folder with mp3 files and I checked other files that were scanned before and have the thumbnail.

Here's one of the files that passed the scanning:

Code:
eyeD3 Bagpipes/Bagpipes\ 01\ -\ Inverness\ Gathering\ -\ Australian\ Ladies.mp3
/zet/Muzica/Andreea/Bagpipes/Bagpipes 01 - Inverness Gathering - Australian Ladies.mp3                                                                                          [ 2.02 MB ]
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Time: 02:56     MPEG1, Layer III        [ 96 kb/s @ 44100 Hz - Stereo ]
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ID3 v2.3:
title: Inverness Gathering/Australian Ladies
artist: Queen Victoria School pipe band
album: Bagpipes & Drums Of Scotland
album artist: World Music
composer: Traditional/W. Fergusson
recording date: 1996
track: 1                genre: Country & Folk (id None)
disc: 1/1
Publisher/label: LaserLight
Unique File ID: [b'http://www.cddb.com/id3/taginfo1.html'] : 3CD3N88S4216928U12839821A5B8E1A49175770175FC6D35CC6P2
UserTextFrame: [Description: GN/ExtData]
GNXDWEcxAagdrSN0iLxx4ypKa/vhUbaPI2d4JAGjPUccplBn2o8WT90xaqyb7TENjzmTM9nORFRjxYZF
PRIV: [Data: 39 bytes]
Owner Id: WM/MediaClassPrimaryID
PRIV: [Data: 41 bytes]
Owner Id: WM/MediaClassSecondaryID
PRIV: [Data: 31 bytes]
Owner Id: WM/WMContentID
PRIV: [Data: 122 bytes]
Owner Id: WM/UniqueFileIdentifier
PRIV: [Data: 34 bytes]
Owner Id: WM/WMCollectionID
PRIV: [Data: 39 bytes]
Owner Id: WM/WMCollectionGroupID
PRIV: [Data: 20 bytes]
Owner Id: WM/Provider

MCDI: [Data: 208 bytes]
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

And here's one from the folder with issues:
Code:
Gaelic Storm/Gaelic Storm - After Hours At Mcgann's.mp3[ 3.37 MB ]
-------------------------
Time: 03:41 MPEG1, Layer III  [ 128 kb/s @ 44100 Hz - Stereo ]
-------------------------
ID3 v2.3:
title: After Hours At McGann's
artist: Gaelic Storm
album: Special Reserve
album artist: Gaelic Storm
composer: P. Murphy
recording date: 2003
track: 6    genre: Traditional (id None)
disc: 1/1
Publisher/label: OmTown Music
Unique File ID: [b'http://www.cddb.com/id3/taginfo1.html'] : 3CD3N33R88823847V488BA8A6B8EC86BEF6B92DAFA35287E108P2
Comment: [Description: ] [Lang: eng]

UserTextFrame: [Description: GN/ExtData]
GNXDWEcxAedbhMAaAFlbqEHJtnBMOfch4w6EHly+WyThZ0UR/vz4m5wXIL20X5czDmUeZsmrexpNyrvc8WqFNwBSlmlyaIZR5DMz+SI3Yz5ukxKJRR2MuHwA6n0l
b'WXXX' [Description: ]:

I removed the WXXX frame and tried to rescan, but it still stops at the same folder. Then I checked and some of the files had "OTHER IMAGE", so I removed that too, but still no change. How can I see which file breaks  the process?

I'm on 9.0.0 on a RPi 4.

I renamed all the files in the folder but one and rescanned, until I hit the block.  In my case, it was the first file I chose.

Phil

#12
Same issue here. Scanner stopped at 3 folders. Since those had been very old and in low quality I did not bother further and just deleted them.
#13
I don't think this is a solution. Some of the albums I have in mp3 format may not be available anymore. Also, this didnt/doesn't happen with the older version of moode.
#14
I had this issue on 2 installations, both sd cards, and because I had another issue I tried a usb stick, strangely thumbnail generation issue was gone.
rpi 5, topping E70 velvet + B100, monitor audio silver 100
#15
(05-24-2024, 09:44 AM)radu- Wrote: I don't think this is a solution. Some of the albums I have in mp3 format may not be available anymore. Also, this didnt/doesn't happen with the older version of moode.

Can you just check if the issue happens on files that have "unpolite" characters in their name, such as ' (apostrophe) or & ?
Also. are you playing local files, or say, from a Windows shared folder in your computer...?
#16
I don't think it's the file name. One failure case that was reported had to do with a URL in a tag.
The challenge is the time consuming process of tracing and debugging the Zend media code. Not trivial but if a dev want's to give it a try I can help out a bit.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#17
FWIW I had this issue and it was a URL in the tag also. Deleted the URL and everything seems fine now.
#18
Hi,

I also have problems with the Thumbnail generator in 9.0.0.

It stops scanning (without any error or warning message with debuging enabled) at a certain direcory. If I remove that directory (containing a single album) it scans until it finds another problem (and stops again). I have seen it stop on MP3 files and on FLAC files as well.

Is there a command I can run from the command line to see/verify success or failure scanning this particular directory?

It appears that if I add another ('good') MP3 file into the directory where the scanning halts, it continues... 
It even works if I add a JPG file into the offending directory...

Can I increase the debug level further, to see what the thumbnail generator is doing?

Could it be something else? I did not change anything and now it hangs on a directory it previously scanned properly.
My library is on an SMB share...
Nope: same issue when NFS mounting my library...
#19
(05-27-2024, 08:30 PM)ftw64 Wrote: Hi,

I also have problems with the Thumbnail generator in 9.0.0.

It stops scanning (without any error or warning message with debuging enabled) at a certain direcory. If I remove that directory (containing a single album) it scans until it finds another problem (and stops again). I have seen it stop on MP3 files and on FLAC files as well.

Is there a command I can run from the command line to see/verify success or failure scanning this particular directory?

It appears that if I add another ('good') MP3 file into the directory where the scanning halts, it continues... 
It even works if I add a JPG file into the offending directory...

Can I increase the debug level further, to see what the thumbnail generator is doing?

Could it be something else? I did not change anything and now it hangs on a directory it previously scanned properly.
My library is on an SMB share...
Nope: same issue when NFS mounting my library...

There are some logging statements commented out in /var/www/util/thm-gen.php that might provide more detail.

Look for lines like //workerLog(
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#20
Hi Tim,

It seems that this statement in thumb-gen.php (line 318) does not return:

$id3v2 = new Zend_Media_Id3v2($path, array('hash_only' => false)); // r44a

Code:
                case 'mp3':
                        require_once __DIR__ . '/../inc/Zend/Media/Id3v2.php';

                        try {
workerLog('thumb-gen: getImage(): 4 (path = ' . $path . ')');
                                $id3v2 = new Zend_Media_Id3v2($path, array('hash_only' => false)); // r44a
workerLog('thumb-gen: getImage(): 5');

                                if (isset($id3v2->apic)) {


The log prints:

Code:
20240528 201917 thumb-gen: getImage(): 4 (path = /var/lib/mpd/music/NAS/NFS/2/stevie wonder - (2001) vocals and instrumentals pt2 (lg100)/11 - for once in my life.mp3)

and then the thumbnail generator stops and I do not get debug output 'thumb-gen: getImage(): 5' anymore...

Now investigating Zend_Media_Id3v2 ...

Seems to fail in /var/www/inc/Zend/Media/Id3v2.php, line 213:

Code:
workerLog('Id3v2 Constructor: 18 classname = ' . $classname);
                $frame = new $classname($this->_reader, $options);
workerLog('Id3v2 Constructor: 19');

Log shows:



Code:
20240528 203325 Id3v2 Constructor: 18 classname = Zend_Media_Id3_Frame_Wcom

Would that be: '/var/www/inc/Zend/Media/Id3/Frame/Wcom.php' ? 
Wcom.php seems to refer to /var/www/inc/Zend/Media/Id3/LinkFrame.php. This file has another constructor. Here the thumbnail generator fails at line 56:


Code:
    public function __construct($reader = null, &$options = array())
    {
        parent::__construct($reader, $options);

workerLog('Zend_Media_Id3_LinkFrame: 1');
        if ($this->_reader !== null) {
workerLog('Zend_Media_Id3_LinkFrame: 2');
            $this->_link = implode
                ($this->_explodeString8
                 ($this->_reader->read($this->_reader->getSize()), 1), '');
        }
workerLog('Zend_Media_Id3_LinkFrame: 3');
    }

Log file shows that debug line '3' is never reached:

Code:
20240528 204059 Id3v2 Constructor: 18 classname = Zend_Media_Id3_Frame_Wcom
20240528 204059 Zend_Media_Id3_LinkFrame: 1
20240528 204059 Zend_Media_Id3_LinkFrame: 2

Seems that 'implode' crashes without any trace... Now its getting too complicated for me, I guess Sad .

-Frank


Forum Jump: