You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an app which calls ping.start quite frequently. Leave it running long enough and it will eventually crash due to hitting the assert(NO) on line 526 of GBPing.m where it does a switch on the value of self.hostAddressFamily. Occasionally, the value is 0 (and this can also be induced manually by setting a breakpoint on line 516).
Is there any reason why that default cannot be removed? When I comment it out, nothing seems to explode and the crash doesn't occur anymore.
However, when I try changing it to that, we soon crash due to another race condition: the reject callback in the 'start' method in RNReactNativePing.m gets called twice, once in the fail block (line 57) then again in the dispatch_after block (line 61) which causes a fatal 'Illegal callback invocation from native module' error.)
The text was updated successfully, but these errors were encountered:
I have an app which calls ping.start quite frequently. Leave it running long enough and it will eventually crash due to hitting the
assert(NO)
on line 526 of GBPing.m where it does a switch on the value of self.hostAddressFamily. Occasionally, the value is 0 (and this can also be induced manually by setting a breakpoint on line 516).Is there any reason why that default cannot be removed? When I comment it out, nothing seems to explode and the crash doesn't occur anymore.
(I did notice this other, non-React Native GBPing does this instead of assert(NO):
However, when I try changing it to that, we soon crash due to another race condition: the reject callback in the 'start' method in RNReactNativePing.m gets called twice, once in the fail block (line 57) then again in the dispatch_after block (line 61) which causes a fatal 'Illegal callback invocation from native module' error.)
The text was updated successfully, but these errors were encountered: