[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

    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore Windows resolution/size changes" In Codecs and Render, try selecting the specific audio device rather than "Default DirectSound device" Just ideas, no guarantee this will do anything. If this doesn't work, I...
    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore...
    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
    4
    Views
    647
    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
    1K
    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
    870
    Sorry, it's my fault -- I did not notice that you are using MP2. :( MP1 has a separate configuration utility, similar to "TV Server Config". I have tried MP2 only a couple of times, and have never used it seriously. I don't know what MP2 supports with regard to adjusting audio delay, but I do know that all of the adjustments of...
    Sorry, it's my fault -- I did not notice that you are using MP2. :( MP1 has a separate configuration utility, similar to "TV...
    Hi. I recently upgraded my home cinema AVR which also meant changed from sending audio from my HTPC as 5.1 using optical to 7.1...
    Replies
    5
    Views
    1K
    It is possible to have both MP1 and MP2 installed on the same drive (I have a test partition with just such an arrangement). However... The TV Server parts of MP1 and MP2 start when the system boots, and TV Server runs all of the time, even when it is not recording and live TV is not being viewed. If both TV Servers were active, they...
    It is possible to have both MP1 and MP2 installed on the same drive (I have a test partition with just such an arrangement)...
    Help Please. Yesterday upon switch-on, I had this issue with MP2: When I clicked on the [REC] icon in the following Image...
    Replies
    26
    Views
    6K
    Top Bottom