Closed gabors closed 1 year ago
NSInvalidArgumentException: -[MUXSDKCustomerPlayerData playerSoftwareName]: unrecognized selector sent to instance 0x281638ce0
?, in +[MUXSDKStats monitorAVPlayerLayer:withPlayerName:customerData:automaticErrorTracking:beaconCollectionDomain:beaconDomain:]
File "VideoAnalyticsManager.swift", line 86, in VideoAnalyticsManager.setupMux
File "
Hi, thank you for your report.
We are investigating and should have a fix soon.
Hello again, @gabors
I think I was able to fix this on our end (missing git tag). Can you try updating your Mux lib again and seeing if that fixes the issue?
Hi @daytime-em
Thanks for jumping on this. I'm using SPM. What version should I update to? Or tag?
Anytime, @gabors !
If you're using SPM, please try updating MuxCore
to 4.6.0. The package versions should be MuxCore 4.6.0 and MUXSDKStats 3.4.1
If that doesn't work, let me know, I'll keep digging!
@daytime-em Since I am using SPM, MUXSDKStats pulls in whatever version of MuxCore is specified in the Package.swift file. How do I procede?
@gabors I wasn't sure if you were building an SPM package yourself, or an xcodeproj so I gave instructions for both:
You should be able to alt-click on the packages in your project navigator and update them. Maybe first, try clearing the package cache, since there might be bad data cached there.
Clear the package cache:
Update the packages (even if they're already updated)
If you are still seeing this crash afterward, can you paste your Package.resolved
*?
cat YOUR-PROJECT.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Can you delete your Package.resovled
and regenerate it?
If that doesn't work would you mind pasting it here?*
Package.resolved
publicly, please feel free to send it to me via our support team. I am not building an SPM package myself.
Thanks, I have reset the package cache and force updated the MuxCode to 4.6.0 and testing now. So far so good for online and offline playback. Testing a bit more.
Hey @gabors, quick update on our investigation here:
The Package.swift
for v3.4.1
specified a relaxed version range for the MuxCore dependency. This let SPM resolve MuxCore to either v4.5.2
or v4.6.0
, whereas only the latter v4.6.0
MuxCore should be used with the v3.4.1
MUXSDKStats.
I suspect SPM initially resolving to v4.5.2
was the root cause behind the unrecognized playerSoftwareName
selector crash. That selector only became available starting with v4.6.0
. We'll be releasing a new v3.4.2
version that fixes this by pinning to the right MuxCore version.
However in the meantime, as long as you're using MuxCore v4.6.0
, you shouldn't come across this crash again.
Thank you for reporting this!
Closing this one out.
@gabors Thanks again for the report, and let us know if this pops up again!
mux-stats-sdk-avplayer 3.4.1
Calling monitorAVPlayerLayer causes the app to crash for any video. This used to work fine with prior mux versions.