New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[guiinfo] extend ranges for listitem properties #8922
Conversation
thanx, i'll test it. i wonder why it reaches the limit so soon though... while you're at it, perhaps we should also bump LISTITEM_PROPERTY_START? |
hmm... something else may be going wrong. it indeed breaks after 90, |
Perhaps it is worth reworking that part so that we consistently use _START / _END instead of _OFFSET? it felt quite conflusing to me when i looked at it first time. |
Can't really remember my findings but i agree that it is kinda weird to read. @Paxxi, do you remember the offset issue? I think we talked about it at some point. |
Definitely not obvious how to add to it at the moment. Hands up - it is possible that I have broken it in ignorance. :( I have introduced new listitem properties without allocating a sub range or offset, the Role.XXXXX properties. Could someone look at how I have implemented it and tell me what I should have done? |
nah, problem exists in isengard as well. @phil65 after applying this patch, change your script to get 200 properties |
That is a relief, not down to me! All the same I wonder why votes property has a range of IDs? A list item only has one votes value doesn't it? And I am now questioning my implementation of the role property. I'm not sure I understand how this is all meant to work. |
There are more multiple ratings so there are votes for each of them |
@ronie i know that it still breaks with higher numbers, but it at least gives us some more room. As said, I have hit that limit in real-life already when using several scripts in a row. Doubling that amount will already help a lot. Perhaps we should take this fix for backporting at least? |
ping |
a proper fix would be more than welcome... |
well, the first thing that hits me is that the logic is completely broken. consider when we have 100 "normal" props. there is suddenly no space for any music props because we use
since m_listitemProperties.size() == 100, we hit the video label range immediately! so for >= 100 props we are SOL. that being said i cannot reproduce your errors without pushing a lot more info labels in the dummy script (1300-ish). neither with confluence nor estuary. is this on windows? if so, try postfixing the defines with L or the likes. maybe something ends up as a 8/16 bit var and overflow is the issue. |
it happens on linux as well. |
superseded by #10527 |
Since the amount of properties skins are using grew quite significantly over the last years, the ranges we set back then for the listitem properties are not large enough anymore. This should fix that by approx. doubling the ranges.
As a testcase you can try running a simple script
or
https://www.dropbox.com/s/z4xhfy7caeipfkd/script.bug.zip?dl=0
and see that this breaks confluence without this commit (no fanart visible anymore in library for example)
@mkortstiege @ronie