Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

RangeError ios logEventWithParameters #8

Open
devmobile-vulog opened this issue Feb 25, 2022 · 14 comments
Open

RangeError ios logEventWithParameters #8

devmobile-vulog opened this issue Feb 25, 2022 · 14 comments
Assignees

Comments

@devmobile-vulog
Copy link

Hi,
I'm encountering an issue when using logEventWithParameters

Unhandled Exception: RangeError (index): Invalid value: Not in inclusive range 0..6: 10768739056
#0      List.[] (dart:core-patch[/array.dart:273:36]())
#1      Flurry.logEventWithParameters
package:flutter_flurry_sdk/flurry.dart:272
<asynchronous suspension>

Working fine on android though

@poting-oath
Copy link
Collaborator

@hantao-flurrydev Either iOS's flurryLogEventWithParameters returns wrong number, or Flutter's flurryAgent/eventRecordStatus is undefined.

@devmobile-vulog
Copy link
Author

From the debugger i don't see an issue with flurryAgent/eventRecordStatus.
But the int i'm getting back look like this : 10801561344
How could it be that flurryLogEventWithParameters returns wrong numbers ? Any ideas ?

@hantao-flurrydev
Copy link
Collaborator

hantao-flurrydev commented Feb 28, 2022

Hi @devmobile-vulog , were you able to reproduce this issue?

@devmobile-vulog
Copy link
Author

I'm not sure what you mean by duplicating. The issue is still there, and it looks like I have a correct instance of flurryAgent

@hantao-flurrydev
Copy link
Collaborator

I meant reproduce it during debug mode?

@devmobile-vulog
Copy link
Author

Yes i am reproducing in debug

@hantao-flurrydev
Copy link
Collaborator

@devmobile-vulog would you mind sending us some sample code or snippet about how you did it, as we found an enum mismatched, but that will only affect the logStandardEvent api in flutter wrapper.

@devmobile-vulog
Copy link
Author

I don't really have a sample code as i can't replicate it in another app. It is working fine when i start from scratch

@poting-oath
Copy link
Collaborator

Please try again on the latest flutter_flurry_sdk 2.2.0, to see whether it is still an issue. Thanks!

@poting-oath
Copy link
Collaborator

@devmobile-vulog Could you please try the latest release flutter_flurry_sdk 2.2.1? Thanks!

@devmobile-vulog
Copy link
Author

I'm still getting the same issue await Flurry.logEventWithParameters(eventName, {'test': 'test'});

[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: Invalid argument(s): 10802054896
#0      List.[] (dart:core-patch/array.dart:282:36)
#1      Flurry.logEventWithParameters
package:flutter_flurry_sdk/flurry.dart:273
<asynchronous suspension>
#2      Analytic._flurryLogEvent
package:one_app/…/analytic/analytic.dart:177
<asynchronous suspension>

@poting-oath poting-oath assigned hunterhays and unassigned poting-oath Aug 8, 2022
@devmobile-vulog
Copy link
Author

Could we get any help on this ?

@poting-oath
Copy link
Collaborator

@hunterhays FlurryFlutterPlugin.m returns NSNumber back to flurry_agent.dart, but flurry_agent.dart expects to receive int instead. Is it possible the cause?

@flurrydev
Copy link

@devmobile-vulog We are actively investigating the issue. I have not yet been able to reproduce this error in my Flutter test app.

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

No branches or pull requests

5 participants