VideoUIKit-Flutter icon indicating copy to clipboard operation
VideoUIKit-Flutter copied to clipboard

[BUG] Incorrect NSStringEncoding value 0x8000100 detected

Open john-mokaied opened this issue 1 year ago • 5 comments

Describe the bug A log keep repeating as long as the user in video call by AgoraVideoViewer: Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future.hen calling

To Reproduce Steps to reproduce the behavior: Calling any screen contain

 AgoraVideoViewer(
                            enableHostControls: true,
                            client: videoController.client.value,
                            layoutType: Layout.floating,
)

Expected behavior No logs about Incorrect NSStringEncoding value 0x8000100 detected..

Screenshots Screenshot 2023-03-15 at 21 18 27 Screenshot 2023-03-15 at 21 19 50

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] iPhone 14 Pro max - iPhone XS Max
  • OS: [e.g. iOS8.1] iOS 16.3
Screenshot 2023-03-15 at 21 24 17

Additional context the logs stops when I close the video screen.

john-mokaied avatar Mar 15 '23 20:03 john-mokaied

It's causing the video call to keep working even if I close the screen or restart the app.

john-mokaied avatar Mar 19 '23 21:03 john-mokaied

Screenshot 2023-03-20 at 15 24 15

I just tried to use agora_rtc_engine: ^6.1.0 but the same issue persists. It seems that the issue came from agora_rtc_engine.

john-mokaied avatar Mar 20 '23 14:03 john-mokaied

Yes, this log is coming from the agora_rtc_engine we're working with the team to remove that log from being printed. As far as I know the log output doesn't affect functionality.

You mentioned the video keeps working if you close it or restart the app. That's not because of this log, it is because when you do those actions the endCall is not being called. If you close the app, the video call will end after some timeout. If you are hot reloading you might see multiple users. If you end up releasing this application, people of course won't be hot reloading so you won't have that problem in production.

tadaspetra avatar Mar 20 '23 16:03 tadaspetra

Yes, this log is coming from the agora_rtc_engine we're working with the team to remove that log from being printed. As far as I know the log output doesn't affect functionality.

You mentioned the video keeps working if you close it or restart the app. That's not because of this log, it is because when you do those actions the endCall is not being called. If you close the app, the video call will end after some timeout. If you are hot reloading you might see multiple users. If you end up releasing this application, people of course won't be hot reloading so you won't have that problem in production. Screenshot 2023-03-20 at 22 06 02

@tadaspetra tadaspetra Thank you for your response. Regarding ending the call, I am using "engine.leaveChannel()" and it appears that there are still multiple users 'local users' and the microphone is still working after rejoining the Video call. Is this the proper way to quit the call, or do you have any advice?

john-mokaied avatar Mar 20 '23 21:03 john-mokaied

Sorry for the late reply. I must have missed the notification. But with the agora_uikit you don't need to call the .leaveChannel() method, because that is all handled within the package.

The agora_rtc_engine package make sure you call the release() method too, but it should not be possible to have multiple local users. Only possible if you didn't leave the channel properly, and then rejoined

tadaspetra avatar Mar 31 '23 17:03 tadaspetra