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

[Bug]: com.onesignal.common.events.EventProducer.fire #99

Open
1 task done
tobus2012 opened this issue Apr 4, 2024 · 6 comments
Open
1 task done

[Bug]: com.onesignal.common.events.EventProducer.fire #99

tobus2012 opened this issue Apr 4, 2024 · 6 comments

Comments

@tobus2012
Copy link

tobus2012 commented Apr 4, 2024

What happened?

java.util.ConcurrentModificationException

Steps to reproduce?

Sometimes on app start, sometimes on notification receive

What did you expect to happen?

Not crash the app

Relevant log output

Exception java.util.ConcurrentModificationException:
  at java.util.ArrayList$Itr.checkForComodification (ArrayList.java:1029)
  at java.util.ArrayList$Itr.next (ArrayList.java:982)
  at com.onesignal.common.events.EventProducer.fire (EventProducer.kt:43)
  at com.onesignal.core.internal.application.impl.ApplicationService.setCurrent (ApplicationService.kt:50)
  at com.onesignal.core.internal.application.impl.ApplicationService.onActivityStarted (ApplicationService.kt:145)
  at android.app.Application.dispatchActivityStarted (Application.java:416)
  at android.app.Activity.dispatchActivityStarted (Activity.java:1505)
  at android.app.Activity.onStart (Activity.java:2039)
  at android.app.Instrumentation.callActivityOnStart (Instrumentation.java:1566)
  at android.app.Activity.performStart (Activity.java:8607)
  at android.app.ActivityThread.handleStartActivity (ActivityThread.java:3933)
  at android.app.servertransaction.TransactionExecutor.performLifecycleSequence (TransactionExecutor.java:221)
  at android.app.servertransaction.TransactionExecutor.cycleToPath (TransactionExecutor.java:201)
  at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:173)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2414)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:211)
  at android.os.Looper.loop (Looper.java:300)
  at android.app.ActivityThread.main (ActivityThread.java:8445)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:560)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:954)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jkasten2
Copy link
Member

jkasten2 commented Apr 4, 2024

@tobus2012 This has been fixed, please update to Release 5.1.0 or newer.

@tobus2012
Copy link
Author

tobus2012 commented Apr 4, 2024

Note on Xamarin Forms

Xamarin Forms is no longer supported beyond version 5.0.2 of our .NET SDK. Microsoft has guides on migrating to Maui here, if needed.

version 5.1.0 works with xamarin.form? because 5.1.1 does not work

@jkasten2
Copy link
Member

jkasten2 commented Apr 4, 2024

@tobus2012 OneSignal stopped supporting Xamarin in the 5.1.0 release. We just update the release notes to make that more clear.

As you noted, Microsoft suggests migrating to .MAUI, as on May 1st 2024 Microsoft won't be making any more updates to Xamarin.

@tobus2012
Copy link
Author

tobus2012 commented Apr 4, 2024

@jkasten2 I get this error when I use version 5.1.0
Capture

@jkasten2
Copy link
Member

jkasten2 commented Apr 5, 2024

@tobus2012 What platform are you running when you hit this runtime error? Android, iOS, both?

@tobus2012
Copy link
Author

tobus2012 commented Apr 5, 2024

Android
I have not tested on iOS, version 5.0.2 works very well on iOS except on some Android devices which returns the errors subject of this ticket

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

No branches or pull requests

2 participants