slomkowski / mumsi

SIP to Mumble gateway/bridge using PJSUA stack.
Apache License 2.0
41 stars 33 forks source link

crash with "Invalid operation (PJ_EINVALIDOP)" #24

Open SvenRoederer opened 6 years ago

SvenRoederer commented 6 years ago

I'm trying to run mumsi in Debian 9.0. and compiled libpjproject 2.7.1 myself. When starting mumsi I get the following error:

23:42:06.205           pjsua_core.c  .PJSUA state changed: NULL --> CREATED
2018-01-14 23:42:06,205 [INFO] Pjsua: 23:42:06.205         sip_endpoint.c  .Module "mod-pjsua-log" registered
2018-01-14 23:42:06,206 [INFO] Pjsua: 23:42:06.206         sip_endpoint.c  .Module "mod-tsx-layer" registered
2018-01-14 23:42:06,206 [INFO] Pjsua: 23:42:06.206         sip_endpoint.c  .Module "mod-stateful-util" registered
2018-01-14 23:42:06,206 [INFO] Pjsua: 23:42:06.206         sip_endpoint.c  .Module "mod-ua" registered
2018-01-14 23:42:06,206 [INFO] Pjsua: 23:42:06.206         sip_endpoint.c  .Module "mod-100rel" registered
2018-01-14 23:42:06,206 [INFO] Pjsua: 23:42:06.206         sip_endpoint.c  .Module "mod-pjsua" registered
2018-01-14 23:42:06,206 [INFO] Pjsua: 23:42:06.206         sip_endpoint.c  .Module "mod-invite" registered
2018-01-14 23:42:06,233 [INFO] Pjsua: 23:42:06.233             alsa_dev.c  ..ALSA driver found 23 devices
2018-01-14 23:42:06,233 [INFO] Pjsua: 23:42:06.233             alsa_dev.c  ..ALSA initialized
2018-01-14 23:42:06,234 [INFO] Pjsua: 23:42:06.234                  pjlib  ..select() I/O Queue created (0x563ec3c1b9a8)
2018-01-14 23:42:06,235 [INFO] Pjsua: 23:42:06.235            pjsua_vid.c  ..Initializing video subsystem..
2018-01-14 23:42:06,240 [INFO] Pjsua: 23:42:06.240             v4l2_dev.c  ...Video4Linux2 has 0 devices
2018-01-14 23:42:06,240 [ERROR] Pjsua: 23:42:06.240              sdl_dev.c !SDL_Init() error: No available video device
2018-01-14 23:42:06,240 [INFO] Pjsua: 23:42:06.240         colorbar_dev.c !...Colorbar video src initialized with 2 device(s):
2018-01-14 23:42:06,240 [INFO] Pjsua: 23:42:06.240         colorbar_dev.c  ... 0: Colorbar generator
2018-01-14 23:42:06,240 [INFO] Pjsua: 23:42:06.240         colorbar_dev.c  ... 1: Colorbar-active
2018-01-14 23:42:06,240 [INFO] Pjsua: 23:42:06.240         sip_endpoint.c  .Module "mod-evsub" registered
2018-01-14 23:42:06,240 [INFO] Pjsua: 23:42:06.240         sip_endpoint.c  .Module "mod-presence" registered
2018-01-14 23:42:06,240 [INFO] Pjsua: 23:42:06.240         sip_endpoint.c  .Module "mod-mwi" registered
2018-01-14 23:42:06,240 [INFO] Pjsua: 23:42:06.240         sip_endpoint.c  .Module "mod-refer" registered
2018-01-14 23:42:06,240 [INFO] Pjsua: 23:42:06.240         sip_endpoint.c  .Module "mod-pjsua-pres" registered
2018-01-14 23:42:06,240 [INFO] Pjsua: 23:42:06.240         sip_endpoint.c  .Module "mod-pjsua-im" registered
2018-01-14 23:42:06,240 [INFO] Pjsua: 23:42:06.240         sip_endpoint.c  .Module "mod-pjsua-options" registered
2018-01-14 23:42:06,241 [INFO] Pjsua: 23:42:06.241           pjsua_core.c  .1 SIP worker threads created
2018-01-14 23:42:06,241 [NOTICE] Pjsua: 23:42:06.241           pjsua_core.c  .pjsua version 2.7.1 for Linux-4.9.0.5/x86_64/glibc-2.24 initialized
2018-01-14 23:42:06,241 [INFO] Pjsua: 23:42:06.241           pjsua_core.c  .PJSUA state changed: CREATED --> INIT
2018-01-14 23:42:06,241 [ERROR] Pjsua: 23:42:06.241              media.cpp  pjsua_conf_add_port(mediaPool, (pjmedia_port *)port, &id) error: Invalid operation (PJ_EINVALIDOP) (status=70013) [../src/pjsua2/media.cpp:149]

Any ideas how to solve this?

one-more-alex commented 6 years ago

I had similar issues. pjproject-2.3 will show this error. In my case fixed to update to pjproject-2.4

bwildenhain commented 4 years ago

I can confirm this problem using the Debian packaged libpjproject 2.7.2 (as currently in sid), it works with self-compiled version 2.10 using ./configure --enabled-shared.