roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.03k stars 205 forks source link

roc_receiver_set_multicast_group fails on intel Android emulator #532

Closed gavv closed 1 year ago

gavv commented 1 year ago

https://github.com/roc-streaming/roc-java/actions/runs/4645807900/jobs/8221853732

04-08 15:25:48.194  3219  3236 I Logger  : roc_context_open(): opening context
04-08 15:25:48.195  3219  3236 I Logger  : roc_receiver_open(): opening receiver
04-08 15:25:48.196  3219  3236 I Logger  : receiver peer: binding audiosrc interface of slot 0 to rtp+rs8m://224.0.0.1:0
04-08 15:25:48.198  3219  3285 E Logger  : udp receiver: <udprecv 0x7285d288d500 bind=224.0.0.1:0>: can't use multicast group for non-multicast address
04-08 15:25:48.198  3219  3285 E Logger  : network loop: can't add udp receiver port 224.0.0.1:0: can't start udp receiver
04-08 15:25:48.199  3219  3236 E Logger  : receiver peer: can't bind audiosrc interface of slot 0: can't bind interface to local port
04-08 15:25:48.199  3219  3236 E Logger  : roc_receiver_bind(): operation failed
04-08 15:25:48.199  3219  3236 I Logger  : roc_receiver_close(): closed receiver
04-08 15:25:48.202  3219  3236 I Logger  : roc_context_close(): closed context

For some reasons, on Android roc thinks that 224.0.0.1 is not multicast.

Probably regression introduced by 0a1132c50793b36a66e6f6eafc31299026a148bd

ortex commented 1 year ago

emulator configs:

Configure emulator
  API level: 26
  target: default
  CPU architecture: x86_64
  Hardware profile: 
  Cores: 2
  RAM size: 
  Heap size: 
  SD card path or size: 
  Disk size: 
  AVD name: roc_device
  force avd creation: true
  Emulator boot timeout: 600
  emulator options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
  disable animations: true
  disable spellchecker: false
  disable Linux hardware acceleration: false
  enable hardware keyboard: false
  version of NDK to install: 21.1.6[35](https://github.com/roc-streaming/roc-java/actions/runs/4645807900/jobs/8221853732#step:7:36)2462
  version of CMake to install: 3.10.2.4988[40](https://github.com/roc-streaming/roc-java/actions/runs/4645807900/jobs/8221853732#step:7:41)4
  Channel: 0 (stable)
API level: 29
  target: default
  CPU architecture: x86_64
  Hardware profile: 
  Cores: 2
  RAM size: 
  Heap size: 
  SD card path or size: 
  Disk size: 
  AVD name: roc_device
  force avd creation: true
  Emulator boot timeout: 600
  emulator options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
  disable animations: true
  disable spellchecker: false
  disable Linux hardware acceleration: false
  enable hardware keyboard: false
  version of NDK to install: 21.1.6[35](https://github.com/roc-streaming/roc-java/actions/runs/4645807900/jobs/8221853696#step:7:36)2462
  version of CMake to install: 3.10.2.4988[40](https://github.com/roc-streaming/roc-java/actions/runs/4645807900/jobs/8221853696#step:7:41)4
  Channel: 0 (stable)