react-native-background-timer icon indicating copy to clipboard operation
react-native-background-timer copied to clipboard

Excessive number of pending callbacks

Open jdnichollsc opened this issue 4 years ago • 4 comments

Hello David, thanks for this awesome lib!

I'm testing this library with https://www.npmjs.com/package/react-native-user-inactivity but I'm getting this issue:

Warning: Please report: Excessive number of pending callbacks: 501. Some pending callbacks that might have leaked by never being called from native code: {"29308":{"module":"NativeAnimatedModule","method":"startAnimatingNode"},"29429":{},"29430":{},"29445":{},"29446":{},"29447":{},"29448":{},"29449":{},"29450":{},"29451":{},"29452":{},"29453":{},"29454":{},"29455":{},"29456":{},"29457":{},"29458":{},"29459":{},"29460":{},"29461":{},"29462":{},"29463":{},"29464":{},"29465":{},"29466":{},"29467":{},"29468":{},"29469":{},"29470":{},"29471":{},"29472":{},"29473":{},"29474":{},"29475":{},"29476":{},"29477":{},"29478":{},"29479":{},"29480":{},"29481":{},"29482":{},"29483":{},"29484":{},"29485":{},"29486":{},"29487":{},"29488":{},"29489":{},"29490":{},"29491":{},"29492":{},"29493":{},"29494":{},"29495":{},"29496":{},"29497":{},"29498":{},"29499":{},"29500":{},"29501":{},"29502":{},"29503":{},"29504":{},"29505":{},"29506":{},"29507":{},"29508":{},"29509":{},"29510":{},"29511":{},"29512":{},"29513":{},"29514":{},"29515":{},"29516":{},"29517":{},"29518":{},"29519":{},"29520":{},"29521":{},"29522":{},"29523":{},"29524":{},"29525":{},"29526":{},"29527":{},"29528":{},"29529":{},"29530":{},"29531":{},"29532":{},"29533":{},"29534":{},"29535":{},"29536":{},"29537":{},"29538":{},"29539":{},"29540":{},"29541":{},"29542":{},"29543":{},"29544":{},"29545":{},"29546":{},"29547":{},"29548":{},"29549":{},"29550":{},"29551":{},"29552":{},"29553":{},"29554":{},"29555":{},"29556":{},"29557":{},"29558":{},"29559":{},"29560":{},"29561":{},"29562":{},"29563":{},"29564":{},"29565":{},"29566":{},"29567":{},"29568":{},"29569":{},"29570":{},"29571":{},"29572":{},"29573":{},"29574":{},"29575":{},"29576":{},"29577":{},"29578":{},"29579":{},"29580":{},"29581":{},"29582":{},"29583":{},"29584":{},"29585":{},"29586":{},"29587":{},"29588":{},"29589":{},"29590":{},"29591":{},"29592":{},"29593":{},"29594":{},"29595":{},"29596":{},"29597":{},"29598":{},"29599":{},"29600":{},"29601":{},"29602":{},"29603":{},"29604":{},"29605":{},"29606":{},"29607":{},"29608":{},"29609":{},"29610":{},"29611":{},"29612":{},"29613":{},"29614":{},"29615":{},"29616":{},"29617":{},"29618":{},"29619":{},"29620":{},"29621":{},"29622":{},"29623":{},"29624":{},"29625":{},"29626":{},"29627":{},"29628":{},"29629":{},"29630":{},"29631":{},"29632":{},"29633":{},"29634":{},"29635":{},"29636":{},"29637":{},"29638":{},"29639":{},"29640":{},"29641":{},"29642":{},"29643":{},"29644":{},"29645":{},"29646":{},"29647":{},"29648":{},"29649":{},"29650":{},"29651":{},"29652":{},"29653":{},"29654":{},"29655":{},"29656":{},"29657":{},"29658":{},"29659":{},"29660":{},"29661":{},"29662":{},"29663":{},"29664":{},"29665":{},"29666":{},"29667":{},"29668":{},"29669":{},"29670":{},"29671":{},"29672":{},"29673":{},"29674":{},"29675":{},"29676":{},"29677":{},"29678":{},"29679":{},"29680":{},"29681":{},"29682":{},"29683":{},"29684":{},"29685":{},"29686":{},"29687":{},"29688":{},"29689":{},"29690":{},"29691":{},"29692":{},"29693":{},"29694":{},"29695":{},"29696":{},"29697":{},"29698":{},"29699":{},"29700":{},"29701":{},"29702":{},"29703":{},"29704":{},"29705":{},"29706":{},"29707":{},"29708":{},"29709":{},"29710":{},"29711":{},"29712":{},"29713":{},"29714":{},"29715":{},"29716":{},"29717":{},"29718":{},"29719":{},"29720":{},"29721":{},"29722":{},"29723":{},"29724":{},"29725":{},"29726":{},"29727":{},"29728":{},"29729":{},"29730":{},"29731":{},"29732":{},"29733":{},"29734":{},"29735":{},"29736":{},"29737":{},"29738":{},"29739":{},"29740":{},"29741":{},"29742":{},"29743":{},"29744":{},"29745":{},"29746":{},"29747":{},"29748":{},"29749":{},"29750":{},"29751":{},"29752":{},"29753":{},"29754":{},"29755":{},"29756":{},"29757":{},"29758":{},"29759":{},"29760":{},"29761":{},"29762":{},"29763":{},"29764":{},"29765":{},"29766":{},"29767":{},"29768":{},"29769":{},"29770":{},"29771":{},"29772":{},"29773":{},"29774":{},"29775":{},"29776":{},"29777":{},"29778":{},"29779":{},"29780":{},"29781":{},"29782":{},"29783":{},"29784":{},"29785":{},"29786":{},"29787":{},"29788":{},"29789":{},"29790":{},"29791":{},"29792":{},"29793":{},"29794":{},"29795":{},"29796":{},"29797":{},"29798":{},"29799":{},"29800":{},"29801":{},"29802":{},"29803":{},"29804":{},"29805":{},"29806":{},"29807":{},"29808":{},"29809":{},"29810":{},"29811":{},"29812":{},"29813":{},"29814":{},"29815":{},"29816":{},"29817":{},"29818":{},"29819":{},"29820":{},"29821":{},"29822":{},"29823":{},"29824":{},"29825":{},"29826":{},"29827":{},"29828":{},"29829":{},"29830":{},"29831":{},"29832":{},"29833":{},"29834":{},"29835":{},"29836":{},"29837":{},"29838":{},"29839":{},"29840":{},"29841":{},"29842":{},"29843":{},"29844":{},"29845":{},"29846":{},"29847":{},"29848":{},"29849":{},"29850":{},"29851":{},"29852":{},"29853":{},"29854":{},"29855":{},"29856":{},"29857":{},"29858":{},"29859":{},"29860":{},"29861":{},"29862":{},"29863":{},"29864":{},"29865":{},"29866":{},"29867":{},"29868":{},"29869":{},"29870":{},"29871":{},"29872":{},"29873":{},"29874":{},"29875":{},"29876":{},"29877":{},"29878":{},"29879":{},"29880":{},"29881":{},"29882":{},"29883":{},"29884":{},"29885":{},"29886":{},"29887":{},"29888":{},"29889":{},"29890":{},"29891":{},"29892":{},"29893":{},"29894":{},"29895":{},"29896":{},"29897":{},"29898":{},"29899":{},"29900":{},"29901":{},"29902":{},"29903":{},"29904":{},"29905":{},"29906":{},"29907":{},"29908":{},"29909":{},"29910":{},"29911":{},"29912":{"module":"RNBackgroundTimer","method":"setTimeout"},"29913":{"module":"RNBackgroundTimer","method":"setTimeout"},"29914":{"module":"RNBackgroundTimer","method":"setTimeout"},"29915":{"module":"RNBackgroundTimer","method":"setTimeout"},"29916":{"module":"RNBackgroundTimer","method":"setTimeout"},"29917":{"module":"RNBackgroundTimer","method":"setTimeout"},"29918":{"module":"RNBackgroundTimer","method":"setTimeout"},"29919":{"module":"RNBackgroundTimer","method":"setTimeout"},"29920":{"module":"RNBackgroundTimer","method":"setTimeout"},"29921":{"module":"RNBackgroundTimer","method":"setTimeout"},"29922":{"module":"RNBackgroundTimer","method":"setTimeout"},"29923":{"module":"RNBackgroundTimer","method":"setTimeout"},"29924":{"module":"RNBackgroundTimer","method":"setTimeout"},"29925":{"module":"RNBackgroundTimer","method":"setTimeout"},"29926":{"module":"RNBackgroundTimer","method":"setTimeout"},"29927":{"module":"RNBackgroundTimer","method":"setTimeout"},"29928":{"module":"RNBackgroundTimer","method":"setTimeout"},"29929":{"module":"RNBackgroundTimer","method":"setTimeout"},"29930":{"module":"RNBackgroundTimer","method":"setTimeout"},"29931":{"module":"RNBackgroundTimer","method":"setTimeout"},"29932":{"module":"RNBackgroundTimer","method":"setTimeout"},"29933":{"module":"RNBackgroundTimer","method":"setTimeout"},"29934":{"module":"RNBackgroundTimer","method":"setTimeout"},"29935":{"module":"RNBackgroundTimer","method":"setTimeout"},"29936":{"module":"RNBackgroundTimer","method":"setTimeout"},"29937":{"module":"RNBackgroundTimer","method":"setTimeout"},"29938":{"module":"RNBackgroundTimer","method":"setTimeout"},"29939":{"module":"RNBackgroundTimer","method":"setTimeout"},"29940":{"module":"RNBackgroundTimer","method":"setTimeout"},"29941":{"module":"RNBackgroundTimer","method":"setTimeout"},"29942":{"module":"RNBackgroundTimer","method":"setTimeout"}}

Are you familiar with this error?

Thanks for your help!

jdnichollsc avatar Jan 08 '21 21:01 jdnichollsc

Still getting this issue from different screens of the app:

Warning: Please report: Excessive number of pending callbacks: 501. Some pending callbacks that might have leaked by never being called from native code: {"13288":{"module":"ReanimatedModule","method":"getValue"},"13296":{"module":"ReanimatedModule","method":"getValue"},"13324":{"module":"ReanimatedModule","method":"getValue"},"13376":{"module":"ReanimatedModule","method":"getValue"},"13454":{"module":"ReanimatedModule","method":"getValue"},"13465":{"module":"ReanimatedModule","method":"getValue"},"13554":{},"13589":{},"13590":{},"13591":{},"13592":{},"13593":{},"13594":{},"13595":{},"13596":{},"13597":{},"13598":{},"13599":{},"13600":{},"13601":{},"13602":{},"13603":{},"13604":{},"13605":{},"13606":{},"13607":{},"13608":{},"13609":{},"13610":{},"13611":{},"13612":{},"13613":{},"13614":{},"13615":{},"13616":{},"13617":{},"13618":{},"13619":{},"13620":{},"13621":{},"13622":{},"13623":{},"13624":{},"13625":{},"13626":{},"13627":{},"13628":{},"13629":{},"13630":{},"13631":{},"13632":{},"13633":{},"13634":{},"13635":{},"13636":{},"13637":{},"13638":{},"13639":{},"13640":{},"13641":{},"13642":{},"13643":{},"13644":{},"13645":{},"13646":{},"13647":{},"13648":{},"13649":{},"13650":{},"13651":{},"13652":{},"13653":{},"13654":{},"13655":{},"13656":{},"13657":{},"13658":{},"13659":{},"13660":{},"13661":{},"13662":{},"13663":{},"13664":{},"13665":{},"13666":{},"13667":{},"13668":{},"13669":{},"13670":{},"13671":{},"13672":{},"13673":{},"13674":{},"13675":{},"13676":{},"13677":{},"13678":{},"13679":{},"13680":{},"13681":{},"13682":{},"13683":{},"13684":{},"13685":{},"13686":{},"13687":{},"13688":{},"13689":{},"13690":{},"13691":{},"13692":{},"13693":{},"13694":{},"13695":{},"13696":{},"13697":{},"13698":{},"13699":{},"13700":{},"13701":{},"13702":{},"13703":{},"13704":{},"13705":{},"13706":{},"13707":{},"13708":{},"13709":{},"13710":{},"13711":{},"13712":{},"13713":{},"13714":{},"13715":{},"13716":{},"13717":{},"13718":{},"13719":{},"13720":{},"13721":{},"13722":{},"13723":{},"13724":{},"13725":{},"13726":{},"13727":{},"13728":{},"13729":{},"13730":{},"13731":{},"13732":{},"13733":{},"13734":{},"13735":{},"13736":{},"13737":{},"13738":{},"13739":{},"13740":{},"13741":{},"13742":{},"13743":{},"13744":{},"13745":{},"13746":{},"13747":{},"13748":{},"13749":{},"13750":{},"13751":{},"13752":{},"13753":{},"13754":{},"13755":{},"13756":{},"13757":{},"13758":{},"13759":{},"13760":{},"13761":{},"13762":{},"13763":{},"13764":{},"13765":{},"13766":{},"13767":{},"13768":{},"13769":{},"13770":{},"13771":{},"13772":{},"13773":{},"13774":{},"13775":{},"13776":{},"13777":{},"13778":{},"13779":{},"13780":{},"13781":{},"13782":{},"13783":{},"13784":{},"13785":{},"13786":{},"13787":{},"13788":{},"13789":{},"13790":{},"13791":{},"13792":{},"13793":{},"13794":{},"13795":{},"13796":{},"13797":{},"13798":{},"13799":{},"13800":{},"13801":{},"13802":{},"13803":{},"13804":{},"13805":{},"13806":{},"13807":{},"13808":{},"13809":{},"13810":{},"13811":{},"13812":{},"13813":{},"13814":{},"13815":{},"13816":{},"13817":{},"13818":{},"13819":{},"13820":{},"13821":{},"13822":{},"13823":{"module":"RNBackgroundTimer","method":"setTimeout"},"13824":{"module":"RNBackgroundTimer","method":"setTimeout"},"13825":{"module":"RNBackgroundTimer","method":"setTimeout"},"13826":{"module":"RNBackgroundTimer","method":"setTimeout"},"13827":{},"13828":{},"13829":{"module":"RNBackgroundTimer","method":"setTimeout"},"13830":{"module":"RNBackgroundTimer","method":"setTimeout"},"13831":{"module":"RNBackgroundTimer","method":"setTimeout"},"13832":{"module":"RNBackgroundTimer","method":"setTimeout"},"13833":{"module":"RNBackgroundTimer","method":"setTimeout"},"13834":{"module":"RNBackgroundTimer","method":"setTimeout"},"13835":{"module":"RNBackgroundTimer","method":"setTimeout"},"13836":{"module":"RNBackgroundTimer","method":"setTimeout"},"13837":{"module":"RNBackgroundTimer","method":"setTimeout"},"13838":{"module":"RNBackgroundTimer","method":"setTimeout"},"13839":{"module":"RNBackgroundTimer","method":"setTimeout"},"13840":{"module":"RNBackgroundTimer","method":"setTimeout"},"13841":{"module":"RNBackgroundTimer","method":"setTimeout"},"13842":{"module":"RNBackgroundTimer","method":"setTimeout"},"13843":{"module":"RNBackgroundTimer","method":"setTimeout"},"13844":{"module":"RNBackgroundTimer","method":"setTimeout"},"13845":{"module":"RNBackgroundTimer","method":"setTimeout"},"13846":{"module":"RNBackgroundTimer","method":"setTimeout"},"13847":{"module":"RNBackgroundTimer","method":"setTimeout"},"13848":{"module":"RNBackgroundTimer","method":"setTimeout"},"13849":{"module":"RNBackgroundTimer","method":"setTimeout"},"13850":{"module":"RNBackgroundTimer","method":"setTimeout"},"13851":{"module":"RNBackgroundTimer","method":"setTimeout"},"13852":{"module":"RNBackgroundTimer","method":"setTimeout"},"13853":{"module":"RNBackgroundTimer","method":"setTimeout"},"13854":{"module":"RNBackgroundTimer","method":"setTimeout"},"13859":{"module":"RNBackgroundTimer","method":"stop"},"13860":{"module":"RNBackgroundTimer","method":"start"},"14099":{},"14100":{},"14101":{},"14102":{},"14103":{},"14104":{},"14105":{},"14106":{},"14107":{},"14108":{},"14109":{},"14110":{},"14111":{},"14112":{},"14113":{},"14114":{},"14115":{},"14116":{},"14117":{},"14118":{},"14119":{},"14120":{},"14121":{},"14122":{},"14123":{},"14124":{},"14125":{},"14126":{},"14127":{},"14128":{},"14129":{},"14130":{},"14131":{},"14132":{},"14133":{},"14134":{},"14135":{},"14136":{},"14137":{},"14138":{},"14139":{},"14140":{},"14141":{},"14142":{},"14143":{},"14144":{},"14145":{},"14146":{},"14147":{},"14148":{},"14149":{},"14150":{},"14151":{},"14152":{},"14153":{},"14154":{},"14155":{},"14156":{},"14157":{},"14158":{},"14159":{},"14160":{},"14161":{},"14162":{},"14163":{},"14164":{},"14165":{},"14166":{},"14167":{},"14168":{},"14169":{},"14170":{},"14171":{},"14172":{},"14173":{},"14174":{},"14175":{},"14176":{},"14177":{},"14178":{},"14179":{},"14180":{},"14181":{},"14182":{},"14183":{},"14184":{},"14185":{},"14186":{},"14187":{},"14188":{},"14189":{},"14190":{},"14191":{},"14192":{},"14193":{},"14194":{},"14195":{},"14196":{},"14197":{},"14198":{},"14199":{},"14200":{},"14201":{},"14202":{},"14203":{},"14204":{},"14205":{},"14206":{},"14207":{},"14208":{},"14209":{},"14210":{},"14211":{},"14212":{},"14213":{},"14214":{},"14215":{},"14216":{},"14217":{},"14218":{},"14219":{},"14220":{},"14221":{},"14222":{},"14223":{},"14224":{},"14225":{},"14226":{},"14227":{},"14228":{},"14229":{},"14230":{},"14231":{},"14232":{},"14233":{},"14234":{},"14235":{},"14236":{},"14237":{},"14238":{},"14239":{},"14240":{},"14241":{},"14242":{},"14243":{},"14244":{},"14245":{},"14246":{},"14247":{},"14248":{},"14249":{},"14250":{},"14251":{},"14252":{},"14253":{},"14254":{},"14255":{},"14256":{},"14257":{},"14258":{},"14259":{},"14260":{},"14261":{},"14262":{},"14263":{},"14264":{},"14265":{},"14266":{},"14267":{},"14268":{},"14269":{},"14270":{},"14271":{},"14272":{},"14273":{},"14274":{},"14275":{},"14276":{},"14277":{},"14278":{},"14279":{},"14280":{},"14281":{},"14282":{},"14283":{},"14284":{},"14285":{},"14286":{},"14287":{},"14288":{},"14289":{},"14290":{},"14291":{},"14292":{},"14293":{},"14294":{"module":"RNBackgroundTimer","method":"setTimeout"},"14295":{"module":"RNBackgroundTimer","method":"setTimeout"},"14296":{"module":"RNBackgroundTimer","method":"setTimeout"},"14297":{"module":"RNBackgroundTimer","method":"setTimeout"},"14298":{"module":"RNBackgroundTimer","method":"setTimeout"},"14299":{"module":"RNBackgroundTimer","method":"setTimeout"},"14300":{"module":"RNBackgroundTimer","method":"setTimeout"},"14301":{"module":"RNBackgroundTimer","method":"setTimeout"},"14302":{"module":"RNBackgroundTimer","method":"setTimeout"},"14303":{"module":"RNBackgroundTimer","method":"setTimeout"},"14304":{"module":"RNBackgroundTimer","method":"setTimeout"},"14305":{"module":"RNBackgroundTimer","method":"setTimeout"},"14306":{"module":"RNBackgroundTimer","method":"setTimeout"},"14307":{"module":"RNBackgroundTimer","method":"setTimeout"},"14308":{"module":"RNBackgroundTimer","method":"setTimeout"},"14309":{"module":"RNBackgroundTimer","method":"setTimeout"},"14310":{"module":"RNBackgroundTimer","method":"setTimeout"},"14311":{"module":"RNBackgroundTimer","method":"setTimeout"},"14312":{"module":"RNBackgroundTimer","method":"setTimeout"},"14313":{"module":"RNBackgroundTimer","method":"setTimeout"},"14314":{"module":"RNBackgroundTimer","method":"setTimeout"},"14315":{"module":"RNBackgroundTimer","method":"setTimeout"},"14316":{"module":"RNBackgroundTimer","method":"setTimeout"},"14317":{"module":"RNBackgroundTimer","method":"setTimeout"},"14318":{"module":"RNBackgroundTimer","method":"setTimeout"},"14319":{"module":"RNBackgroundTimer","method":"setTimeout"},"14320":{"module":"RNBackgroundTimer","method":"setTimeout"},"14321":{"module":"RNBackgroundTimer","method":"setTimeout"},"14322":{"module":"RNBackgroundTimer","method":"setTimeout"},"14323":{"module":"RNBackgroundTimer","method":"setTimeout"},"14324":{"module":"RNBackgroundTimer","method":"setTimeout"}}

Let me know if I can help :)

jdnichollsc avatar Jan 21 '21 16:01 jdnichollsc

I have this issue too from using my custom timer by setInterval. if I remove this the error vanishes

    if (tripState.createdDateTime !== null) {
    // .format("HH:mm:ss")
    //   console.log(tripState.createdDateTime)
    //   console.log(moment.utc(moment().diff(tripState.createdDateTime)).format("HH:mm:ss"));
      tripContext.updateTimer(1, moment.utc(moment().diff(tripState.createdDateTime)).format("HH:mm:ss"))
    } else {
      // todo: why do we see this log sometimes???
      console.log('not  valid date' + tripState.createdDateTime)
    }
  }, 1000)

ildarlomov avatar Apr 28 '21 11:04 ildarlomov

hey buddy you did solve it?

josecordeiroo avatar Oct 01 '22 20:10 josecordeiroo

Hey any solution i am facing the same issue but in some other component not countdown timer.

Please report: Excessive number of pending callbacks: 501. Some pending callbacks that might have leaked by never being called from native code: {"704703":{"module":"NativeAnimatedModule","method":"startAnimatingNode"},"704708":{"module":"NativeAnimatedModule","method":"startAnimatingNode"} ....and so on

Ankushpandey-ti avatar Dec 27 '22 11:12 Ankushpandey-ti