Fix logging (Crash on % user-agents) [Piers]#326
Merged
phunkyfish merged 2 commits intoxbmc:Piersfrom Jun 19, 2025
matthuisman:fix_logging
Merged
Fix logging (Crash on % user-agents) [Piers]#326phunkyfish merged 2 commits intoxbmc:Piersfrom matthuisman:fix_logging
phunkyfish merged 2 commits intoxbmc:Piersfrom
matthuisman:fix_logging
Conversation
Collaborator
|
Nice fix, will merge and release tomorrow! |
Contributor
Author
|
backport done #327 |
Contributor
Author
|
@phunkyfish should i also PR in version bumps / changelog for both PRs? or are you ok to do that? |
Collaborator
Yes, please add the changelog/version bumps for both PRs. Then I'll approve and merge both. We need to bump the micro version for a fix so in this PRs case it would be Thanks |
Contributor
Author
|
@phunkyfish this PR ready now with bump of version and changelog :) |
Collaborator
|
Perfect, once it's passes Jenkins I'll merge. |
phunkyfish
approved these changes
Jun 19, 2025
Contributor
Author
|
Great - im excited to start looking into what integrations I can do with this addon :) |
Collaborator
|
v22.1.2
|
Collaborator
Excellent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes:
#229
#323
Have run time tested on Piers with below test strm
I assume when we had % in our buffer, kodi:log was trying to use them as the format (its 2nd argument)


This broke between Matrix and Nexus
Looking at Matrix, it used
https://github.com/xbmc/inputstream.ffmpegdirect/blob/Matrix/src/StreamManager.cpp
::kodi::addon::CAddonBase::m_interface->toKodi->addon_log_msg(::kodi::addon::CAddonBase::m_interface->toKodi->kodiBase, addonLevel, buffer);
Nexus then used
kodi::Log(addonLevel, buffer);
Assume just in the swap it was missed that the arguments changed for the new method :)
The new method can do the formatting as well so expects a "format"