Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Syncrhonization error
gregcarey
#1 Posted : Friday, 30 September 2011 3:29:05 AM(UTC)
Rank: Member

Joined: 15/09/2011(UTC)
Posts: 8
Location: Ireland

Hi there. I've added a bunch of images to my folder and am trying to sync them. But every time I try I get this error message...

Estimated time left: 0 min 0 secs (818 of 818 objects synchronized)
Synch rate: 399.0 objects/sec
Status: Synchronization error

Processing: Stock Images\Generic Web Stock\iStock_000004059611Small.jpg

Error: System.InvalidOperationException: Object must be initialized before operation can be performed.

HTTP Status: 500

Stack trace:

at System.Windows.Media.Imaging.BitmapMetadata.GetQuery(String query) at GalleryServerPro.Business.WpfMetadataExtractor.AddIptcMetadata(BitmapMetadata bmpMetadata, IGalleryObjectMetadataItemCollection metadataItems) at GalleryServerPro.Business.WpfMetadataExtractor.AddWpfBitmapMetadata(String imageFilePath, IGalleryObjectMetadataItemCollection metadataItems) at GalleryServerPro.Business.Metadata.MediaObjectMetadataExtractor.GetGalleryObjectMetadataItemCollection() at GalleryServerPro.Business.Image..ctor(Int32 id, IAlbum parentAlbum, String title, String hashKey, String thumbnailFilename, Int32 thumbnailWidth, Int32 thumbnailHeight, Int32 thumbnailSizeKb, String optimizedFilename, Int32 optimizedWidth, Int32 optimizedHeight, Int32 optimizedSizeKb, String originalFilename, Int32 originalWidth, Int32 originalHeight, Int32 originalSizeKb, Int32 sequence, String createdByUsername, DateTime dateAdded, String lastModifiedByUsername, DateTime dateLastModified, Boolean isPrivate, Boolean isInflated, FileInfo imageFile) at GalleryServerPro.Business.Image..ctor(FileInfo imageFile, IAlbum parentAlbum) at GalleryServerPro.Business.Factory.CreateImageInstance(FileInfo imageFile, IAlbum parentAlbum) at GalleryServerPro.Business.Factory.CreateLocalMediaObjectInstance(FileInfo mediaObjectFile, IAlbum parentAlbum) at GalleryServerPro.Business.Factory.CreateMediaObjectInstance(FileInfo mediaObjectFile, IAlbum parentAlbum, String externalHtmlSource, MimeTypeCategory mimeTypeCategory) at GalleryServerPro.Business.SynchronizationManager.CreateNewMediaObject(IAlbum album, FileInfo file) at GalleryServerPro.Business.SynchronizationManager.SynchronizeMediaObjectFiles(DirectoryInfo directory, IAlbum album) at GalleryServerPro.Business.SynchronizationManager.Synchronize(String synchId, IAlbum album, String userName) at Gsp.Gallery.Synchronize(Int32 albumId, String synchId, Boolean isRecursive, Boolean overwriteThumb, Boolean overwriteOpt, Boolean regenerateMetadata)
Roger Martin
#2 Posted : Friday, 30 September 2011 6:49:38 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

That is fixed in the patch.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
gregcarey
#3 Posted : Friday, 30 September 2011 9:30:12 AM(UTC)
Rank: Member

Joined: 15/09/2011(UTC)
Posts: 8
Location: Ireland

Thanks Roger, that seems to have fixed it!
gregcarey
#4 Posted : Thursday, 17 November 2011 9:17:21 AM(UTC)
Rank: Member

Joined: 15/09/2011(UTC)
Posts: 8
Location: Ireland

I have the latest version of GSP, but now I get this error when I try to synchronize

Estimated time left: 0 min 0 secs (2998 of 2998 objects synchronized)
Synch rate: 3.4 objects/sec
Status: Synchronization error

Processing:
Error: System.IO.IOException: Cannot read from the stream.

HTTP Status: 500

Stack trace:

at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle) at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache) at System.Windows.Media.Imaging.BitmapDecoder.Create(Stream bitmapStream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption) at GalleryServerPro.Business.WpfMetadataExtractor.GetBitmapDecoder(String imageFilePath) at GalleryServerPro.Business.WpfMetadataExtractor.GetBitmapMetadata(String imageFilePath) at GalleryServerPro.Business.WpfMetadataExtractor.AddWpfBitmapMetadata(String imageFilePath, IGalleryObjectMetadataItemCollection metadataItems) at GalleryServerPro.Business.Metadata.MediaObjectMetadataExtractor.GetGalleryObjectMetadataItemCollection() at GalleryServerPro.Business.Image..ctor(Int32 id, IAlbum parentAlbum, String title, String hashKey, String thumbnailFilename, Int32 thumbnailWidth, Int32 thumbnailHeight, Int32 thumbnailSizeKb, String optimizedFilename, Int32 optimizedWidth, Int32 optimizedHeight, Int32 optimizedSizeKb, String originalFilename, Int32 originalWidth, Int32 originalHeight, Int32 originalSizeKb, Int32 sequence, String createdByUsername, DateTime dateAdded, String lastModifiedByUsername, DateTime dateLastModified, Boolean isPrivate, Boolean isInflated, FileInfo imageFile) at GalleryServerPro.Business.Image..ctor(FileInfo imageFile, IAlbum parentAlbum) at GalleryServerPro.Business.Factory.CreateImageInstance(FileInfo imageFile, IAlbum parentAlbum) at GalleryServerPro.Business.Factory.CreateLocalMediaObjectInstance(FileInfo mediaObjectFile, IAlbum parentAlbum) at GalleryServerPro.Business.Factory.CreateMediaObjectInstance(FileInfo mediaObjectFile, IAlbum parentAlbum, String externalHtmlSource, MimeTypeCategory mimeTypeCategory) at GalleryServerPro.Business.SynchronizationManager.CreateNewMediaObject(IAlbum album, FileInfo file) at GalleryServerPro.Business.SynchronizationManager.SynchronizeMediaObjectFiles(DirectoryInfo directory, IAlbum album) at GalleryServerPro.Business.SynchronizationManager.Synchronize(String synchId, IAlbum album, String userName) at Gsp.Gallery.Synchronize(Int32 albumId, String synchId, Boolean isRecursive, Boolean rebuildThumbnails, Boolean rebuildOptimized, Boolean regenerateMetadata)
Roger Martin
#5 Posted : Friday, 18 November 2011 5:21:59 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Images can have a wide variety of issues that cause exceptions to be thrown when .NET tries to extract the metadata. GSP silently catches most of them, but I need reports like this to get the rest. I just updated the code to handle this particular error, so try the attached code to see if it works. Copy the DLL over the existing one in your bin directory. Let me know how it goes. If it works, I'll get it in the next release (post 2.6.0).
File Attachment(s):
GalleryServerPro.Business.zip (191kb) downloaded 11 time(s).
Roger Martin
Creator and Lead Developer of Gallery Server Pro
gregcarey
#6 Posted : Monday, 21 November 2011 3:30:55 AM(UTC)
Rank: Member

Joined: 15/09/2011(UTC)
Posts: 8
Location: Ireland

Hi Roger, thanks for the quick response. I was able to synchronise again without any errors.
Roger Martin
#7 Posted : Monday, 28 November 2011 8:59:39 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Glad it worked. This fix will be included in the next post-2.6.0 release.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.