SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations > SageMC Custom Interface
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-07-2008, 09:36 PM
brettuk brettuk is offline
Sage User
 
Join Date: Jan 2008
Posts: 37
SageMC not saving imdb images for DVDs - BUG Spaces in path throw it out

Hey,

SageMC is not saving imdb images for dvd's. They are not appearing in the folder at all, and thus sage isn't displaying them (apart from when in edit imdb).

I'm on vista SP1 with UAC ON, so I initially thought it was a permissions error, but that doesn't seem to be the case...

Seems to be due to this:

Tue 4/8 4:32:54.926 EXCEPTION in getValueAsObject:sage.a.e: Error in method reflection of net_sf_sageplugins_sageimdb_DbObject_writeImageJpg of java.lang.reflect.InvocationTargetException for:net_sf_sageplugins_sageimdb_DbObject_writeImageJpg(DbObject, new_java_io_File(sImagePath))
Tue 4/8 4:32:54.929 setUI(sage.b1@112bd54[ImdbSearchResults - new]) histIdx=3 uiHistory=[sage.b1@4b11e9[Dynamic Menu by nielm], sage.b1@10c94a7[Video Library Folder View], sage.b1@dbbe8b[Program Info], sage.b1@112bd54[ImdbSearchResults - new], sage.b1@70856b[ImdbShowObject]]
Tue 4/8 4:32:54.930 setUI(sage.b1@dbbe8b[Program Info]) histIdx=2 uiHistory=[sage.b1@4b11e9[Dynamic Menu by nielm], sage.b1@10c94a7[Video Library Folder View], sage.b1@dbbe8b[Program Info], sage.b1@112bd54[ImdbSearchResults - new], sage.b1@70856b[ImdbShowObject]]

Anyway full log file attached.

Thanks in Advance.
Attached Files
File Type: txt sagetvclient_0.txt (84.4 KB, 238 views)

Last edited by brettuk; 04-09-2008 at 05:08 PM.
Reply With Quote
  #2  
Old 04-08-2008, 08:46 PM
brettuk brettuk is offline
Sage User
 
Join Date: Jan 2008
Posts: 37
Anyone?
Reply With Quote
  #3  
Old 04-09-2008, 05:38 AM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Did you try to disable UAC and see if this makes a difference ?


Dirk
Reply With Quote
  #4  
Old 04-09-2008, 05:48 AM
brettuk brettuk is offline
Sage User
 
Join Date: Jan 2008
Posts: 37
No but I ran the client as a administrator both in service and non-service mode and it still fails. So that should rule out UAC.
Reply With Quote
  #5  
Old 04-09-2008, 06:02 AM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
I've seen lots of problems reported in the forum that were caused by UAC. The exception indicates that it is not able to create the file. Also, check if you have the the latest version of the imdb jar file installed.

Dirk
Reply With Quote
  #6  
Old 04-09-2008, 06:23 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Dirk:
On Vista it probably wants to save those files in the Virtual Store under the users name. But it may be trying to save them in the normal C:\Program Files\Sage TV directory. If that's the case is there anyway to redirect it or make that a setting? I can't confirm that as ths issue. (I'm in the middle of redoing my test machines.)

Quote from a MS MVP:
Quote:
In Windows Vista, even though you are an administrator, the programs that run on your computer are not allowed to use your administrator power unless:

1- They prompt you for permission
2- You explicitly give them permission (right-click, run as administrator)

The files in Program Files and your root C drive are not writiable by non-administrative programs because the files in these areas affect every user and the entire system.

Allowing unpriviliged programs write access to these areas would allow them to overwrite/replace well-known programs or system-wide configuration data used by windows or well-known programs, which is unacceptable for a program that does not prompt.

The easiest way to accomplish what you are doing is to save the file to some place in your user profile (such as documents), and then using windows explorer, move that file to program files. This will end up prompting you for permission and then allowing things to work.

Alternatively, you can run the program that is doing the downloading "as administrator" by right-clicking it and clicking Run As Administrator, and this will allow it to save to this area, but the solution above is better.
Obviously Microsoft lives on another world if they really think this is what users want or need.

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #7  
Old 04-09-2008, 07:01 AM
brettuk brettuk is offline
Sage User
 
Join Date: Jan 2008
Posts: 37
I thought it saved the files in the same directory as the dvd files? So virtual store shouldn't come into it if I have permission to write into the dvd dir? Plus if its the same plugin as the one in the list of customisations the last update was last year, and this installation is about 1 or so months old, so that shouldn't be it.
Reply With Quote
  #8  
Old 04-09-2008, 07:10 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
It's a theory.
Are you saving just the image or the image and the info. It has to write the info into the Sage directory and maybe if that fails the image doesn't get written either. And you may still want to disable UAC. It worked better for me when I did and I never saw these issues. But I didn't like the performance hit I took running Vista.

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #9  
Old 04-09-2008, 07:22 AM
brettuk brettuk is offline
Sage User
 
Join Date: Jan 2008
Posts: 37
Info gets saved fine. I'll try without UAC later as a test, although I'd perfer to leave UAC on for security reasons.
Reply With Quote
  #10  
Old 04-09-2008, 04:59 PM
brettuk brettuk is offline
Sage User
 
Join Date: Jan 2008
Posts: 37
switched off UAC, no joy still the same error in the log:

Wed 4/9 23:57:55.141 EXCEPTION in getValueAsObject:sage.a.e: Error in method reflection of net_sf_sageplugins_sageimdb_DbObject_writeImageJpg of java.lang.reflect.InvocationTargetException for:net_sf_sageplugins_sageimdb_DbObject_writeImageJpg(DbObject, new_java_io_File(sImagePath))
Wed 4/9 23:57:55.145 setUI(sage.b1@17d8769[ImdbSearchResults - new]) histIdx=3 uiHistory=[sage.b1@1586cbd[Dynamic Menu by nielm], sage.b1@1360c93[Video Library Folder View], sage.b1@1b2591c[Program Info], sage.b1@17d8769[ImdbSearchResults - new], sage.b1@128647a[ImdbShowObject]]
Wed 4/9 23:57:55.146 setUI(sage.b1@1b2591c[Program Info]) histIdx=2 uiHistory=[sage.b1@1586cbd[Dynamic Menu by nielm], sage.b1@1360c93[Video Library Folder View], sage.b1@1b2591c[Program Info], sage.b1@17d8769[ImdbSearchResults - new], sage.b1@128647a[ImdbShowObject]]
Reply With Quote
  #11  
Old 04-09-2008, 05:08 PM
brettuk brettuk is offline
Sage User
 
Join Date: Jan 2008
Posts: 37
FIXED IT.

Yep this idea just suddenly came to me, I fixed it but it IS A BUG.

The path to my dvds was:
D:\media\saved videos\dvd rips\
notice the spaces. Moved one DVD folder to D:\media\dvdfolder - no spaces, and it worked perfectly. Seems that it cannot handle saving to directories with spaces, as a programmer i've come across this error before. The programmer needs to enclose the path with quotes and it should work fine.

Who's bug is this, SageMC or the IMDB import?
Reply With Quote
  #12  
Old 04-10-2008, 02:22 AM
brettuk brettuk is offline
Sage User
 
Join Date: Jan 2008
Posts: 37
Seems a bit strange, because it seems to not mind spaces in the end of the path, for example:
D:\Media\Saved_Videos\dvd_rips\Arlington Road\VIDEO_TS - works fine for me but
D:\Media\Saved Videos\dvd rips\Arlington Road\VIDEO_TS - doesn't
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
STV Import: Read & Write Metadata files for Default STV 5/6 (v2.2.9 18/Feb./2010) JREkiwi SageTV Customizations 251 10-09-2019 11:11 AM
SageMC: not saving IMDB images gilded07 SageMC Custom Interface 18 01-05-2009 06:47 PM
STV: SageMC 16x9 Version 6.x (latest dev build) dflachbart SageMC Custom Interface 6112 04-04-2008 11:16 PM
Issue with SageMC and imdb thumbnail import petereader SageMC Custom Interface 1 07-07-2006 05:43 PM


All times are GMT -6. The time now is 06:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.