this view could not be built

Discussion in 'General' started by JSchuricht, October 10, 2015.

  1. JSchuricht
    • Premium Supporter

    JSchuricht MP Donator

    Joined:
    January 13, 2009
    Messages:
    149
    Likes Received:
    12
    Occupation:
    Silicon wafer manufacturing
    Ratings:
    +23 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    I am having a weird issue in movies. I think it's one movie, not sure which that is causing "this view could not be built" to pop up when I try to load it. If I filter down to unwatched and year 2014 it's just that specific folder that comes up with the error. If I filter by genera, some generas won't open which I am guessing contains the bad movie. I found the error in the client.log that appears to be related. AbstractItemsScreenData is the first warn to come up, not sure if that's background screens or something else.

    So far I am getting the same error on 3 clients and nothing in the logs of the dedicated server. I have been removing 2014 movies and reimporting movies in attempt to find the culprit but that is proving painful. Any ideas?




    Code (Text):
    1. [2015-10-10 01:28:37,122] [19063  ] [InputMgr ] [INFO ] - WorkflowManager: Pushing workflow state 'View: 2014' (id='94a52b79-e693-42f0-84de-9c40b8d46184') onto the navigation stack...
    2. [2015-10-10 01:28:38,049] [19990  ] [InputMgr ] [WARN ] - AbstractItemsScreenData: Error creating items list
    3. UPnP.Infrastructure.CP.UPnPException: Error invoking action 'X_MediaPortal_Search' ---> UPnP.Infrastructure.CP.UPnPRemoteException: Action Failed
    4.    at UPnP.Infrastructure.CP.DeviceTree.CpAction.AsyncActionCallResult.GetOutParams()
    5.    at UPnP.Infrastructure.CP.DeviceTree.CpAction.EndInvokeAction(IAsyncResult result)
    6.    --- End of inner exception stack trace ---
    7.    at UPnP.Infrastructure.CP.DeviceTree.CpAction.EndInvokeAction(IAsyncResult result)
    8.    at UPnP.Infrastructure.CP.DeviceTree.CpAction.InvokeAction(IList`1 inParameters)
    9.    at MediaPortal.Common.Services.ServerCommunication.UPnPContentDirectoryServiceProxy.Search(MediaItemQuery query, Boolean onlyOnline)
    10.    at MediaPortal.UiComponents.Media.Views.MediaLibraryQueryViewSpecification.ReLoadItemsAndSubViewSpecifications(IList`1& mediaItems, IList`1& subViewSpecifications)
    11.    at MediaPortal.UiComponents.Media.Views.View.RefreshItemsAndSubViews()
    12.    at MediaPortal.UiComponents.Media.Models.ScreenData.AbstractItemsScreenData.UpdateMediaItems(Boolean createNewList)
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. mrj

    mrj Portal Pro

    Joined:
    January 27, 2012
    Messages:
    246
    Likes Received:
    42
    Ratings:
    +96 / 1
    Show System Specs
    could it be
    [2015-10-10 01:28:55,318] [37258 ] [AMQ 'SynchronizeToPrimaryPlayer'] [INFO ] - SkinEngine MainForm: Synchronized render framerate to video player 'VideoPlayer: 5.Flights.Up.2014.LIMITED.1080p.BluRay.x264-DRONES.mkv'
    [2015-10-10 01:28:55,482] [37422 ] [AMQ 'SynchronizeToPrimaryPlayer'] [ERROR] - RefreshRateChanger: QueryDisplayConfig(...) returned 51539607639
    [2015-10-10 01:28:55,497] [37438 ] [AMQ 'SynchronizeToPrimaryPlayer'] [INFO ] - GraphicsDevice: DirectX initialized 1920x1080 (format: X8R8G8B8 25 Hz)
    mrj
     
  4. JSchuricht
    • Premium Supporter

    JSchuricht MP Donator

    Joined:
    January 13, 2009
    Messages:
    149
    Likes Received:
    12
    Occupation:
    Silicon wafer manufacturing
    Ratings:
    +23 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    Thanks, that's actually a watched move that I tried as a test and removing it didn't help.
     
  5. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,113
    Likes Received:
    1,538
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,314 / 2
    Home Country:
    Germany Germany
    Not sure if this helps, but since you have the same error on all 3 clients it's worth a try.
    Remove your databases by moving them for example to desktop, stop the MP2-server before! Then restart MP2 and reimport the movies.
    If it doesn't help, you can just place back your old databases.
    upload_2015-10-10_11-33-27.png
     
  6. breese
    • Team MediaPortal

    breese Retired Team Member

    Joined:
    July 11, 2011
    Messages:
    3,903
    Likes Received:
    325
    Gender:
    Male
    Occupation:
    Sr. Systems Engineer
    Location:
    Arlington Heights, Illinois
    Ratings:
    +768 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    The server logs and the client logs
    You could also use the new Log Collector.... Will need to be run on the Server and the Client

    There may be something in the server log... esp if it tried to access it during the import
     
  7. JSchuricht
    • Premium Supporter

    JSchuricht MP Donator

    Joined:
    January 13, 2009
    Messages:
    149
    Likes Received:
    12
    Occupation:
    Silicon wafer manufacturing
    Ratings:
    +23 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    So the server logs hadn't updated in a few weeks. I'm not sure if that's normal because the server hadn't been restarted during that time or what.

    Anyways I kept going with removing 2014 movies and re-importing. I got all the way down to U which fortunately contains just two movies for 2014 when I noticed that importing movies and series is now broken. Using MP2 edit I can see one of the two movies I removed is still showing up and the server logs show the DB is FUBAR. Now the big issue, repairing the DB or attempting to rebuild from scratch with nearly 7,000 items.

    Code (Text):
    1. [2015-10-11 02:02:51,445] [2968   ] [43       ] [ERROR] - MediaLibrary: Error deleting media item(s) of system '8f55d6e3-648a-42c0-bc85-600c8147c806' in path '{03dd2da6-4da8-4d3e-9e55-80e3165729a3}:////BOOMER/Movies/U/Unfriended (2014)/'
    2. System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
    3. database disk image is malformed
    4.    at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
    5.    at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
    6.    at System.Data.SQLite.SQLiteDataReader.NextResult()
    7.    at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
    8.    at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
    9.    at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
    10.    at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
    11.    at MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.DeleteAllMediaItemsUnderPath(ITransaction transaction, String systemId, ResourcePath basePath, Boolean inclusive)
    12.    at MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.DeleteMediaItemOrPath(String systemId, ResourcePath path, Boolean inclusive)
     
  8. JSchuricht
    • Premium Supporter

    JSchuricht MP Donator

    Joined:
    January 13, 2009
    Messages:
    149
    Likes Received:
    12
    Occupation:
    Silicon wafer manufacturing
    Ratings:
    +23 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    Alright, I give.

    I tried rebuilding the database with a import after moving the original to another folder. It looked like it worked but I kept thinking the movie count was lower. Now I know for sure, I have found two movies I just added that aren't showing up after an import. The weird thing is other movies I have added do show up but from my guesstimate there are about 100 movies not importing, some of which were previously showing up.

    Logs are attached. The file ending in 13.52 is the server and 14.02 is a client.

    My setup is a tad unusual. Server is Win 10 pro as a guest under 2012r2 hyperv, x5687 Xeon with 4 threads, 1gb startup RAM and 8GB cap. Client is Win 10 pro, i3-3220. Both are running the 10/3 snapshot but the issues started on the summer 15 update 1 release. Media is stored on a dedicated 2012r2 server and there are 4 2012r2 AD domain controllers authenticating everything. Network is 10gb between the hyperv servers and the storage servers, client is 1gb.
     
  9. breese
    • Team MediaPortal

    breese Retired Team Member

    Joined:
    July 11, 2011
    Messages:
    3,903
    Likes Received:
    325
    Gender:
    Male
    Occupation:
    Sr. Systems Engineer
    Location:
    Arlington Heights, Illinois
    Ratings:
    +768 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    One movie appers to be currupt
    BOOMER/Movies/T/Top Gear Apocalypse (2010)

    Every scan shows
    [2015-10-22 02:05:25,391] [121093 ] [29 ] [INFO ] - MoviesMetadataExtractor: Exception reading resource '{03dd2da6-4da8-4d3e-9e55-80e3165729a3}:////BOOMER/Movies/T/Top Gear Apocalypse (2010)/' (Text: 'The remote server returned an error: (404) Not Found.')
     
  10. JSchuricht
    • Premium Supporter

    JSchuricht MP Donator

    Joined:
    January 13, 2009
    Messages:
    149
    Likes Received:
    12
    Occupation:
    Silicon wafer manufacturing
    Ratings:
    +23 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    I'm not sure what is going on with that one movie. Permissions for all folders and files are the same on it as everything else, permissions are inherited but I did a side by side comparison with a working movie. Interestingly I do remember that movie being present before moving the database and starting over. Removing it makes no difference for importing other movies. Re-adding it as a new copy makes the same exception come up in the logs.[DOUBLEPOST=1445567191][/DOUBLEPOST]I'm going to spin up a fresh VM on a newer E5v2 based hyperv server with the same permissions and a fresh copy of MP2 just to eliminate the file server and see if the missing movies show up. Will post what I find.
     
    Last edited: October 23, 2015
  11. JSchuricht
    • Premium Supporter

    JSchuricht MP Donator

    Joined:
    January 13, 2009
    Messages:
    149
    Likes Received:
    12
    Occupation:
    Silicon wafer manufacturing
    Ratings:
    +23 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    Alright, I have some more data but it's just adding to the confusion.

    The current, mostly working installation shows 2707 movies. Counting folder names in explorer gives me 3003 movies but that may be slightly high.

    I installed a fresh copy of Win 7 as a hyperv guest on a E5-2620v2 with 1GB startup RAM and a 8GB cap with all updates applied. I made a checkpoint so I can go back to the fresh install at any time. I started with the 10/3/15 snapshot using the same media source on an external file server. The first import gave me 2253 movies, second import 2255 movies and no change on the third import. I am baffled as to why the count is so much lower.

    After that I restored the checkpoint of the fresh win 7 install and installed MP2 10th AE update 1 which is the first version of MP2 I used. Using the same media source and credentials, the first import gave me 2783, second import 2787 and third import 2805. There was no improvement on the fourth import.

    I can't explain the importer missing movies on the first few imports but I think something changed in the importer between versions that is incompatible with some movies.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!