Nightly builds (NEW)

Yes, I need the return parameter in order to return to the previous window and not the parent node of the library. What issue is it supposed to fix the commit notes are lacking to say the least :frowning:

When I check the commit it seems like the ā€œreturnā€ was added to ActivateWindow there and was lacking before.

Read the comment to some piece that was added:

Yep, I can now see why this fix was created but it was merged before being adequately tested and has ended up breaking something else.

I actually never poked in that area but if I understand it correctly it should only do the history thing if ā€œreturnā€ is not added. I donā€™t even no exactly what you expect with that stuff cause I am no skinner.
I am sure it can be fixed.

I donā€™t think that is quite correct, adding the return simply shifts the parent node of the library to the path you specify in ActiveWindow or ReplaceWindow.

For instance when going from Home to the library using:-

ActivateWindow(Videos,videodb://movies/titles/,return)
You go:-
Home -> movies/titles and then pressing back returns you directly to Home

However omitting the return you go;-
Home -> movies/titles and then pressing back takes you back to videodb//movies/ and back again takes you to the Video node instead of directly back Home

@Ray While on the subject of changes how much trouble would it be to get this included in CoreELEC

If you have a backport for Leia I think we could add it.

About the issue:
You have actually just 2 changes in code:
Following was always done but now only if no ā€œreturnā€ is used:

Then you have this:


Which was also used before but now only if param1 is not equal to param2.

Unfortunately I donā€™t have a deep enough understanding of the Kodi code base or how the window history works internally to offer up a fix. All I know is that ReplaceWindow worked as intended before that fix and now it doesnā€™t :frowning: Iā€™ve created an issue about this but unfortunately the original author doesnā€™t have the time to fix it, he even goes ask far as saying that it should never of been back ported into Leia.

How would I go about creating a backport for Leia?

All I meant is that the changes in the commit are tiny and it is probably easy to fix.

About the backport I see that you commited this Pull Request to Kodi master so I assumed you knew how to port it to Leia.

@roidy You also have a slack account in our slack. Maybe we can continue discussion there. I can look into the issue next week when I know what to test.

1 Like

Do I just create a pull request with the same changes against the Leia branch?

Thanks I appreciate you taking the time to look at this :+1:

Well it would be good if you can test it before doing a PR.

I can build and test a Windows version of Kodi, thatā€™s how I initially created the fix, but I canā€™t build CoreELECā€¦ Iā€™ve tried numerous times in the past and never managed to successfully get CoreELEC to build for me :frowning:

Thatā€™s fine. If you can confirm this works on Leia as intended I can make a CE build for you and we can have it merged.

I keep having crashing problems with the latest nightly with the N2. This time I tried to resume a movie from my library over an SMB share. The screen just dimmed but playback never started. After some time, Kodi returned to the main menu and showed me the changes of the latest installed nightly (20200731) which means it totally crashed.

I donā€™t see anything particularly strange in the crash log itself.
https://paste.kodi.tv/uvikukadif.kodi

Please update to the latest stable release (9.2.4), which is more up to date than the latest nightly.
If the problem is reproducible on stable please post a debug log.

@roidy I have backported your PR to CoreELEC and included it into the testbuild. I also partly reverted: https://github.com/xbmc/xbmc/commit/cb8b7f9b4fa0437ad184b5170f065333e44c5b51

This results in 2 testbuilds (ending with part1 and part2) for you. the fanartres thing should be fixed in both but test both for the original issue so we can debug it further.
https://mega.nz/folder/IxJSUQoI#KO1gy9orGOpZomwHqWd0vw

1 Like

@Ray Thanks, after testing I can confirm that the fanartres fix works perfectly in both parts 1 and 2.

The ReplaceWindow bug remains in part1 but is fixed in part2.

Again thanks for taking the time to look at this.

@roidy Great I will push the patch for fanartres.
About the original issues. It is this ā€œifā€:
https://github.com/xbmc/xbmc/blob/cb8b7f9b4fa0437ad184b5170f065333e44c5b51/xbmc/windows/GUIMediaWindow.cpp#L571

Can you please test part2 build if it still solves:

@Ray Ok, after testing I donā€™t think it does fix the problem from that issue.

Iā€™ve created a simple context menu addon to test with:- add-on removed (see updated version below)

From any movie in the library section bringing up the context menu and using the new option *** ActivateWindow *** simply calls

ActivateWindow(Videos,videodb://movies/actors,return)

To move you into the actors section, now the problem in the above issue is that pressing back returns you to the librarys parent node and not node you called it from. This is the exact behaviour when using your test part1.

Now using your test2 build when pressing back after using the context menu item you are returned to the home page and not the calling node. I think the initial issue is that you should be returned to calling node.