Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'outboundStreamOpts' of undefined #640

Open
amirito opened this issue Jul 7, 2021 · 1 comment
Open

Cannot read property 'outboundStreamOpts' of undefined #640

amirito opened this issue Jul 7, 2021 · 1 comment
Labels

Comments

@amirito
Copy link

amirito commented Jul 7, 2021

Describe the bug
I am using openvidu-react-native-adapter in my project and some devices are getting crashed
I used logcat to see the problem and I faced this error:

FATAL EXCEPTION: mqt_native_modules
Process: "MY APP PACKAGE", PID: 30017
com.facebook.react.common.c: TypeError: Cannot read property 'outboundStreamOpts' of undefined, js engine: hermes, stack:
anonymous@1:1512954
anonymous@1:1492591
value@1:1548509
anonymous@1:1546739
value@1:79274
value@1:89381
anonymous@1:87861
value@1:88826
value@1:87819
 
	at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(Unknown Source:134)
 	at java.lang.reflect.Method.invoke(Native Method)
 	at com.facebook.react.bridge.JavaMethodWrapper.invoke(Unknown Source:149)
 	at com.facebook.react.bridge.JavaModuleWrapper.invoke(Unknown Source:21)
 	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
 	at android.os.Handler.handleCallback(Handler.java:873)
 	at android.os.Handler.dispatchMessage(Handler.java:99)
	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(Unknown Source:0)
	at android.os.Looper.loop(Looper.java:214)
 	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(Unknown Source:37)
 	at java.lang.Thread.run(Thread.java:764)


Expected behavior
in some devices it works fine, but in some doesn't
for example "Samsung Galaxy Tab A 10.1 2019 LTE"

Wrong current behavior
I don't even have outboundStreamOpts in my code but I got this exception in logcat when I use adb logcat -b crash #default

And I found out that this is an option in openvidu

@amirito amirito added the bug label Jul 7, 2021
@amirito
Copy link
Author

amirito commented Jul 13, 2021

I should say I used
npx metro-symbolicate android/app/build/generated/sourcemaps/react/release/index.android.bundle.map < stacktrace.txt
and now the the logcat is more understandable

this is where my app crashes:

/node_modules/openvidu-browser/lib/OpenVidu/Stream.js:78:<global>

and this is what is in OpenVidu/Stream.js:78

var logger = OpenViduLogger_1.OpenViduLogger.getInstance();

Can anyone help me solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant