Giter Site home page Giter Site logo

Comments (12)

jaygarcia avatar jaygarcia commented on March 28, 2024

Still exists.

2015-03-03 08:59:03.140 UIExplorer[59212:281803] *** Assertion failure in -[RCTNavigator reactBridgeDidFinishTransaction], /www/ios/react-native/ReactKit/Views/RCTNavigator.m:508
2015-03-03 08:59:03.141 UIExplorer[59212:281803] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'JS has only made partial progress to catch up to UIKit'
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000108979f35 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x0000000108612bb7 objc_exception_throw + 45
    2   CoreFoundation                      0x0000000108979d9a +[NSException raise:format:arguments:] + 106
    3   Foundation                          0x000000010822f5df -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
    4   UIExplorer                          0x000000010803c175 -[RCTNavigator reactBridgeDidFinishTransaction] + 1013
    5   UIExplorer                          0x000000010804a7d0 __51-[RCTUIManager uiBlockWithLayoutUpdateForRootView:]_block_invoke326 + 96
    6   UIExplorer                          0x0000000108046806 RCTTraverseViewNodes + 198
    7   UIExplorer                          0x0000000108046936 RCTTraverseViewNodes + 502
    8   UIExplorer                          0x0000000108046936 RCTTraverseViewNodes + 502
    9   UIExplorer                          0x000000010804993a __51-[RCTUIManager uiBlockWithLayoutUpdateForRootView:]_block_invoke + 5466
    10  UIExplorer                          0x000000010804724c __27-[RCTUIManager addUIBlock:]_block_invoke + 124
    11  UIExplorer                          0x0000000108050986 __32-[RCTUIManager batchDidComplete]_block_invoke_2 + 342
    12  libdispatch.dylib                   0x000000010bf25ba6 _dispatch_call_block_and_release + 12
    13  libdispatch.dylib                   0x000000010bf437f4 _dispatch_client_callout + 8
    14  libdispatch.dylib                   0x000000010bf2c8fb _dispatch_main_queue_callback_4CF + 949
    15  CoreFoundation                      0x00000001088e1fe9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    16  CoreFoundation                      0x00000001088a4eeb __CFRunLoopRun + 2043
    17  CoreFoundation                      0x00000001088a4486 CFRunLoopRunSpecific + 470
    18  GraphicsServices                    0x000000010d7279f0 GSEventRunModal + 161
    19  UIKit                               0x0000000109f21420 UIApplicationMain + 1282
    20  UIExplorer                          0x0000000107fde003 main + 115
    21  libdyld.dylib                       0x000000010bf78145 start + 1
    22  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

from react-native.

vjeux avatar vjeux commented on March 28, 2024

We don't have the time to investigate it right now unfortunately. Don't expect any progress in the next couple of weeks. We're 100% focused on upgrading our infra so that we can push all the components/apis that we have before open sourcing.

from react-native.

Iragne avatar Iragne commented on March 28, 2024

i add this code and it solve the issue not sure if i introduce an other bug

// We can actually recover from this situation, but it would be nice to know
// when this error happens. This simply means that JS hasn't caught up to a
// back navigation before progressing. It's likely a bug in the JS code that
// catches up/schedules navigations.
if (!(jsGettingAhead ||
jsCatchingUp ||
jsMakingNoProgressButNeedsToCatchUp ||
jsMakingNoProgressAndDoesntNeedTo)) {
RCTLogError(@"JS has only made partial progress to catch up to UIKit");

BOOL jsGettingtooSlow =
  //    --- previously not caught up --------          ------- no longer caught up ----------
  viewControllerCount < previousReactCount && currentReactCount < previousReactCount;

  BOOL reactPushOne = jsGettingAhead && currentReactCount == previousReactCount + 1;
  BOOL reactPopN = jsGettingAhead && currentReactCount < previousReactCount;


  // We can actually recover from this situation, but it would be nice to know
  // when this error happens. This simply means that JS hasn't caught up to a
  // back navigation before progressing. It's likely a bug in the JS code that
  // catches up/schedules navigations.
  if (!(jsGettingAhead ||
        jsCatchingUp ||
        jsMakingNoProgressButNeedsToCatchUp ||
        jsMakingNoProgressAndDoesntNeedTo || 
        jsGettingtooSlow)) {
    RCTLogError(@"JS has only made partial progress to catch up to UIKit");
  }

Feel free to talk about it

from react-native.

siuying avatar siuying commented on March 28, 2024

@Iragne patch worked for me, but I dont sure what reactBridgeDidFinishTransaction supposed to do when its jsGettingtooSlow.

from react-native.

Iragne avatar Iragne commented on March 28, 2024

yes agree with you i would like to talk to @vjeux for that as soon he has time

from react-native.

soheil-zz avatar soheil-zz commented on March 28, 2024

+1

from react-native.

brentvatne avatar brentvatne commented on March 28, 2024

@vjeux @tadeuzagallo - any plans to revisit this? seems to be a popular issue to report πŸ˜„

from react-native.

yanxi123-com avatar yanxi123-com commented on March 28, 2024

+1

from react-native.

Iragne avatar Iragne commented on March 28, 2024

hi every body
I create the PR #1131
May be it will be better for everybody

from react-native.

Duan112358 avatar Duan112358 commented on March 28, 2024

+1

from react-native.

jbhatab avatar jbhatab commented on March 28, 2024

+1

from react-native.

Iragne avatar Iragne commented on March 28, 2024

You can close it the PR is validate

from react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.