ImageUtils does not return "Returning resized image"

Issue #527 duplicate
Former user created an issue

When building a library I found a file which causing the library scanning to stop.

The directory below has 5 files. The first 2 are found ok, but it stops on the 3rd file. The 4th and 5th file are never found.

2012-04-12 14:27:04,021 DEBUG [LibraryAdditionsCheckerThread] Found file 'Abs school Dec 2011001.jpg', checking if it's already in the Library 2012-04-12 14:27:04,022 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item Abs school Dec 2011001.jpg 2012-04-12 14:27:04,035 DEBUG [RepositoryDAOImpl] Reading all Repositories 2012-04-12 14:27:04,070 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories 2012-04-12 14:27:04,139 DEBUG [RepositoryDAOImpl] Reading all Repositories 2012-04-12 14:27:04,140 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories 2012-04-12 14:27:04,300 DEBUG [DiscoverySSDPMessageListener] Received a v alid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.70:58320 2012-04-12 14:27:04,313 DEBUG [MediaItemDAOImpl] Media item Abs school Dec 2011001.jpg doesn't exist in DB yet 2012-04-12 14:27:04,313 DEBUG [LibraryAdditionsCheckerThread] File not in Library, will add it 2012-04-12 14:27:04,325 DEBUG [MetadataExtractorConfigDAOImpl] Reading a list of Extractor configuration for type AUDIO 2012-04-12 14:27:04,328 DEBUG [MetadataExtractorConfigDAOImpl] Reading a list of Extractor configuration for type VIDEO 2012-04-12 14:27:04,329 DEBUG [MetadataExtractorConfigDAOImpl] Reading a list of Extractor configuration for type IMAGE 2012-04-12 14:27:04,365 DEBUG [MediaItemDAOImpl] Reading dirty MediaItems for Repository (id = 15) 2012-04-12 14:27:04,366 DEBUG [ImageExtractionStrategy] Extracting metadata of image file: D:\matthew\My Documents\My Pictures\2011\Misc\School Photos (Nov 2011)\Abs school Dec 2011001.jpg 2012-04-12 14:27:04,479 DEBUG [LibraryManager] Metadata found via extractor EMBEDDED: ImageMetadata [title=Abs school Dec 2011001, date=Tue Dec 13 18:13:02 GMT 2011, filePath=D:\matthew\My Documents\My Pictures\2011\Misc\School Photos (Nov 2011)\Abs school Dec 2011001.jpg, fileSize=3585622, container=JPEG, width=2400, height=2992, colorDepth=24] 2012-04-12 14:27:04,480 DEBUG [ImageService] Adding image into database: Abs school Dec 2011001 2012-04-12 14:27:04,559 DEBUG [RepositoryDAOImpl] Marking Repository 15 as scanned with current timestamp 2012-04-12 14:27:04,583 DEBUG [ImageService] Resizing and storing thumbnail image 2012-04-12 14:27:04,612 DEBUG [ImageUtils] Starting image resize, size = 3585622 bytes 2012-04-12 14:27:05,982 DEBUG [ImageUtils] Returning resized image, size = 4055 bytes 2012-04-12 14:27:05,983 DEBUG [CoverImageDAOImpl] Creating a new ImageCover (length = 4055) 2012-04-12 14:27:06,008 DEBUG [ImageDAOImpl] Creating a new Image (name = Abs school Dec 2011001) 2012-04-12 14:27:06,158 DEBUG [MetadataDescriptorDAOImpl] Creating a new MetadataDescriptor (type = EMBEDDED, mediaItemId = 26446) 2012-04-12 14:27:06,189 INFO [LibraryAdditionsCheckerThread] Added file 'Abs school Dec 2011001.jpg' (title: Abs school Dec 2011001) to Library

2012-04-12 14:27:06,210 DEBUG [LibraryAdditionsCheckerThread] Found file 'Abs school Dec 2011002.jpg', checking if it's already in the Library 2012-04-12 14:27:06,211 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item Abs school Dec 2011002.jpg 2012-04-12 14:27:06,211 DEBUG [MediaItemDAOImpl] Media item Abs school Dec 2011002.jpg doesn't exist in DB yet 2012-04-12 14:27:06,211 DEBUG [LibraryAdditionsCheckerThread] File not in Library, will add it 2012-04-12 14:27:06,217 DEBUG [ImageExtractionStrategy] Extracting metadata of image file: D:\matthew\My Documents\My Pictures\2011\Misc\School Photos (Nov 2011)\Abs school Dec 2011002.jpg 2012-04-12 14:27:06,286 DEBUG [LibraryManager] Metadata found via extractor EMBEDDED: ImageMetadata [title=Abs school Dec 2011002, date=Tue Dec 13 18:11:30 GMT 2011, filePath=D:\matthew\My Documents\My Pictures\2011\Misc\School Photos (Nov 2011)\Abs school Dec 2011002.jpg, fileSize=1851287, container=JPEG, width=1624, height=2161, colorDepth=24] 2012-04-12 14:27:06,286 DEBUG [ImageService] Adding image into database: Abs school Dec 2011002 2012-04-12 14:27:06,287 DEBUG [ImageService] Resizing and storing thumbnail image 2012-04-12 14:27:06,293 DEBUG [ImageUtils] Starting image resize, size = 1851287 bytes 2012-04-12 14:27:06,908 DEBUG [ImageUtils] Returning resized image, size = 4042 bytes 2012-04-12 14:27:06,908 DEBUG [CoverImageDAOImpl] Creating a new ImageCover (length = 4042) 2012-04-12 14:27:06,910 DEBUG [ImageDAOImpl] Creating a new Image (name = Abs school Dec 2011002) 2012-04-12 14:27:06,913 DEBUG [MetadataDescriptorDAOImpl] Creating a new MetadataDescriptor (type = EMBEDDED, mediaItemId = 26447) 2012-04-12 14:27:06,916 INFO [LibraryAdditionsCheckerThread] Added file 'Abs school Dec 2011002.jpg' (title: Abs school Dec 2011002) to Library

2012-04-12 14:27:06,936 DEBUG [LibraryAdditionsCheckerThread] Found file 'Char school Nov 2011002.jpg', checking if it's already in the Library 2012-04-12 14:27:06,936 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item Char school Nov 2011002.jpg 2012-04-12 14:27:06,936 DEBUG [MediaItemDAOImpl] Media item Char school Nov 2011002.jpg doesn't exist in DB yet 2012-04-12 14:27:06,937 DEBUG [LibraryAdditionsCheckerThread] File not in Library, will add it 2012-04-12 14:27:06,938 DEBUG [ImageExtractionStrategy] Extracting metadata of image file: D:\matthew\My Documents\My Pictures\2011\Misc\School Photos (Nov 2011)\Char school Nov 2011002.jpg 2012-04-12 14:27:06,940 DEBUG [LibraryManager] Metadata found via extractor EMBEDDED: ImageMetadata [title=Char school Nov 2011002, date=Mon Dec 12 18:40:23 GMT 2011, filePath=D:\matthew\My Documents\My Pictures\2011\Misc\School Photos (Nov 2011)\Char school Nov 2011002.jpg, fileSize=2750013, container=JPEG, width=9600, height=12000, colorDepth=24] 2012-04-12 14:27:06,940 DEBUG [ImageService] Adding image into database: Char school Nov 2011002 2012-04-12 14:27:06,941 DEBUG [ImageService] Resizing and storing thumbnail image 2012-04-12 14:27:06,949 DEBUG [ImageUtils] Starting image resize, size = 2750013 bytes

Comments (3)

  1. Petr Nejedly repo owner

    probably running out of memory, try increasing the -Xmx value in ServiioService.exe.vmoptions file to 512m

  2. Former user Account Deleted

    I just tried the increase in memory and restarted Serviio, but it made no difference I am afraid. I have sent the file that is causing the problem to you.

  3. Log in to comment