[Bug] "Back" / "Up" icon on wrong position (1 Viewer)

HTPCSourcer

Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,382
    2,369
    Home Country
    Germany Germany
    I have no idea why things behave this way on your system. I can't reproduce it on mine.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,382
    2,369
    Home Country
    Germany Germany
    I don't think so but you could post your MusicViews.xml so that we can test your settings on other systems. Maybe something is mixed up there.
     

    Razor78

    Portal Pro
    June 4, 2009
    173
    32
    im Norden
    Home Country
    Germany Germany
    same problem here....

    after update from 1.5 to 1.6pre there is the same bug. Still after update to the 1.6final. :)
    please check my MusicViews.xml

    I use the StreamedMP Skin.

    PS: Please sorry, my English is not the best :(
     

    Attachments

    • MusicViews.xml
      29.2 KB

    robhawk

    MP Donator
  • Premium Supporter
  • January 20, 2008
    142
    14
    Thuringia
    Home Country
    Germany Germany
    So this seems to be a one-way road...

    I just recovered my 1.4.0, deleted it and installed 1.6.0 FINAL again. Issue solved! Razor78 i think you should do the same.

    Best of luck
     

    Marcus Venturi

    MP Donator
  • Premium Supporter
  • March 23, 2012
    614
    745
    58
    Home Country
    Germany Germany
    Same problem here. Happens with all folders, no difference between Video or Music etc.
    After extensive testing on my PC I upgraded my living room MP to 1.6 and now I have this "effect", which I didn't have on my dev-PC.

    Everytime I leave/enter the same folder, the position is moving constantly. Sometimes it is - as it should - on the left side, sometimes it's on the right side and sometimes in the middle. :)

    And it is independent from the skin, happens with Maya HD and Titan.

    ScreenShot.jpg


    Does anybody have a clue what's the reason for this behaviour?
     
    Last edited:

    Marcus Venturi

    MP Donator
  • Premium Supporter
  • March 23, 2012
    614
    745
    58
    Home Country
    Germany Germany
    As I couldn't reproduce it on my dev-PC I have setup remote debugging on my HTPC where the "magic" happens. In the remote session I could reproduce the error.

    In the \WindowPlugins\GUIVideoFiles\GUIVideoFiles.cs in line 3144 there is the following call:

    facadeLayout.Sort(newVideoSort(CurrentSortMethod, CurrentSortAsc));

    which uses a comparer defined in VideoSort.cs

    Until this call the ".." entry is the first in the "itemlist" and a would assume that it should remain the first after sorting, but it doesn't.

    Looks like the "comparer" has decided to work as a randomizer... :)

    The funny thing is that for remote debugging I just shared my dev-PC drive over Network into the HTPC, so exactly the same code that works on my dev-PC does not work on the HTPC.

    First I thought it would be the settings, therefore I copied my "C:\ProgramData\Team MediaPortal" directory to the HTPC, but the error remained. :confused:

    Does anyone have a hint if there is any other Setting - not in C:\ProgramData\ that might modify the behavior of the VideoSort comparer?
     

    Marcus Venturi

    MP Donator
  • Premium Supporter
  • March 23, 2012
    614
    745
    58
    Home Country
    Germany Germany
    It was a bug in the comparer in VideoSort.cs.

    In Line 95 this comparison is wrong:

    Code:
    if (item2.IsFolder && item2.Label == "..")
    {
      return -1;
    }

    It must return "1" instead.

    Before everyone starts to reinstall MediaPortal 1000 times ;), I created a patch.

    Please copy the attached file to "C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows" and the error should be gone... :)
     

    Attachments

    • WindowPlugins.zip
      445.3 KB

    Users who are viewing this thread

    Similar threads

    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For the first example, I highlighted the example text and eventually found the location in the menus where I could select the CODE macro to have the example text formatted as a code example. So far, so good...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    Replies
    0
    Views
    523
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    653
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting power settings for "Intel Graphics". I set it to Maximum Performance. I tried many other things so it could be a combination of them, but this was the last thing I did and I haven't had the problem return...
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting...
    I'm running MP1 as a client only on this: https://www.amazon.com/dp/B0DZX5DWS5?ref_=pe_123509780_1038749300_t_fed_asin_title&th=1...
    Replies
    5
    Views
    2K
    I haven't tested it. I use MP1, but sometimes I try to help with MP2 :).
    I haven't tested it. I use MP1, but sometimes I try to help with MP2 :).
    This happened immediately after my Windows 11 x64 monthly update for November. The update included also cumulative update to .NET...
    Replies
    9
    Views
    2K
    Hello, Name need to be the same as computer name. Also, logs could be useful.
    Hello, Name need to be the same as computer name. Also, logs could be useful.
    It is a bit of a long story! I successfully installed MP2 on my old PC as client/server with client on my laptop to confirm my...
    Replies
    2
    Views
    1K
    Top Bottom