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

Registration works on debug, not on release #420

Open
henwhy opened this issue Jan 12, 2024 · 0 comments
Open

Registration works on debug, not on release #420

henwhy opened this issue Jan 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@henwhy
Copy link

henwhy commented Jan 12, 2024

Building a VOIP application on Flutter to connect to Freeswitch server webrtc, and loading registration information from Firestore.
Problem Android:
Registration works ok in debug mode, but when I move to either packaging the application to appbundle and releasing it to be downloaded OR straight running the application in --release mode prevents the registration.

I've tried to set information to UaSettings manually without fetching them from firestore and gone as far as to having the user to manually flip a switch to do the registration. Nothing seems to work and the error code remains:

E/flutter (28324): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (length): Invalid value: Only valid value is 0: 1
E/flutter (28324): #0 JFa._bYe (wMg)
E/flutter (28324): #1 JFa.HPb (wMg:89)
E/flutter (28324): #2 new bFa (gMg:13)
E/flutter (28324): #3 BHe (gMg:7)
E/flutter (28324): #4 new WFa (IMg)
E/flutter (28324): #5 wFa.start (uMg:123)
E/flutter (28324): #6 Kt.register (owg:89)
E/flutter (28324):
E/flutter (28324):

I tried to set the information wrong to see if it's the information it's fetching and the error code was just longer but the initial one remains still the same "Unhandled Exception: RangeError (length): Invalid value: Only valid value is 0: 1"

Installed the package,
Set the package accordingly to GitHub example and it works fine on debug
flutter run --release or building to appbundle and releasing it play console
E/flutter (28324): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (length): Invalid value: Only valid value is 0: 1
E/flutter (28324): #0 JFa._bYe (wMg)
E/flutter (28324): #1 JFa.HPb (wMg:89)
E/flutter (28324): #2 new bFa (gMg:13)
E/flutter (28324): #3 BHe (gMg:7)
E/flutter (28324): #4 new WFa (IMg)
E/flutter (28324): #5 wFa.start (uMg:123)
E/flutter (28324): #6 Kt.register (owg:89)
E/flutter (28324):
E/flutter (28324):

I expected sip_ua-registration and functionalities to work the same way in debug and release of the version.

Flutter 3.19.0-4.0.pre.29
targetSdkVersion 34
minSdkVersion 29
macOS Sonoma 14.2.1
Testing made with Nokia X30 5G Android 13

@henwhy henwhy added the bug Something isn't working label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant