razorpay / razorpay/razorpay-java

com.razorpay.AnalyticsUtil.tobase62 ANR

Open
#335 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
74
Forks
83
PR merge metrics
No merged PRs in 30d

Description

com.razorpay.AnalyticsUtil.tobase62
ANR triggered by slow operations in main thread

java.util.Arrays.copyOf (Arrays.java:3135)

java.lang.String.split (String.java:2525)
com.razorpay.AnalyticsUtil.tobase62 (AnalyticsUtil.java:344)
com.razorpay.AnalyticsUtil.getUniqueId (AnalyticsUtil.java:335)
com.razorpay.AnalyticsUtil.getLocalOrderId (AnalyticsUtil.java:294)
com.razorpay.Z$A.a (Lumberjack.java:267)
com.razorpay.Z$A.a (Lumberjack.java:253)
com.razorpay.AnalyticsUtil.trackEvent (AnalyticsUtil.java:99)
com.razorpay.Checkout.trackEvent (Checkout.java:283)
com.razorpay.Checkout. (Checkout.java:83)
com.razorpay.RazorpayInitializer.create (RazorpayInitializer.kt:14)
com.razorpay.RazorpayInitializer.create (RazorpayInitializer.kt:6)
androidx.startup.AppInitializer.doInitialize (AppInitializer.java:180)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with AnalyticsUtil.java at lines 294, 335, and 344, where the stack trace identifies the local order ID and tobase62 path. Trace the startup path through Checkout.java:83 and RazorpayInitializer.kt:14/6, then verify that initialization no longer performs slow work on the main thread.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, kotlin
Domain
mobile, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.