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

"div() not a number: null" error after connecting to Ropsten and opening Wallet #6402

Closed
lukaszfryc opened this issue Oct 19, 2018 · 4 comments

Comments

@lukaszfryc
Copy link
Contributor

lukaszfryc commented Oct 19, 2018

Description

Type: Bug

Summary:

Reproduction

  • Create account
  • Go to Profile, Advanced, Networks
  • Switch to Ropsten, you are not logged out but app says you are connected
  • Open Wallet and finish onboarding

Additional Information

  • Status version: latest nightly, StatusIm-181019-025921-720a65-nightly.apk
  • Operating System: Android, iOS

Stacktrace

BigNumber Error: div() not a number: null

This error is located at:
    in wallet-root (created by status_im.ui.screens.wallet.main.views.wallet_root)
    in status_im.ui.screens.wallet.main.views.wallet_root (created by wallet)
    in wallet (created by status_im.ui.screens.wallet.main.views.wallet)
    in status_im.ui.screens.wallet.main.views.wallet (created by main-container)
    in RCTView (at View.js:43)
    in main-container (created by status_im.ui.screens.main_tabs.views.main_container)
    in status_im.ui.screens.main_tabs.views.main_container (created by status_im.ui.screens.main_tabs.views.main_tabs)
    in RCTView (at View.js:43)
    in status_im.ui.screens.main_tabs.views.main_tabs (created by reagent14)
    in reagent14 (created by G__33250)
    in RCTSafeAreaView (at SafeAreaView.ios.js:35)
    in SafeAreaView (created by G__33250)
    in G__33250 (created by reagent13)
    in reagent13 (created by G__44026)
    in G__44026 (at SceneView.js:9)
    in SceneView (at StackViewLayout.js:483)
    in RCTView (at View.js:43)
    in AnimatedComponent (at screens.js:51)
    in Screen (at StackViewCard.js:42)
    in Card (at createPointerEventsContainer.js:26)
    in Container (at StackViewLayout.js:507)
    in RCTView (at View.js:43)
    in ScreenContainer (at StackViewLayout.js:401)
    in RCTView (at View.js:43)
    in StackViewLayout (at withOrientation.js:30)
    in withOrientation (at StackView.js:49)
    in RCTView (at View.js:43)
    in Transitioner (at StackView.js:19)
    in StackView (at createNavigator.js:59)
    in Navigator (at createKeyboardAwareNavigator.js:11)
    in KeyboardAwareNavigator (at createNavigationContainer.js:376)
    in NavigationContainer (at SceneView.js:9)
    in SceneView (at StackViewLayout.js:483)
    in RCTView (at View.js:43)
    in AnimatedComponent (at screens.js:51)
    in Screen (at StackViewCard.js:42)
    in Card (at createPointerEventsContainer.js:26)
    in Container (at StackViewLayout.js:507)
    in RCTView (at View.js:43)
    in ScreenContainer (at StackViewLayout.js:401)
    in RCTView (at View.js:43)
    in StackViewLayout (at withOrientation.js:30)
    in withOrientation (at StackView.js:49)
    in RCTView (at View.js:43)
    in Transitioner (at StackView.js:19)
    in StackView (at createNavigator.js:59)
    in Navigator (at createKeyboardAwareNavigator.js:11)
    in KeyboardAwareNavigator (at createNavigationContainer.js:376)
    in NavigationContainer (at SceneView.js:9)
    in SceneView (at SwitchView.js:12)
    in SwitchView (at createNavigator.js:59)
    in Navigator (at createNavigationContainer.js:376)
    in NavigationContainer (created by reagent1)
    in reagent1 (created by root)
    in root (created by status_im.ios.core.app_root)
    in status_im.ios.core.app_root (created by env.ios.main.reloader)
    in env.ios.main.reloader
    in Unknown (at renderApplication.js:32)
    in RCTView (at View.js:43)
    in RCTView (at View.js:43)
    in AppContainer (at renderApplication.js:31)

raise
    index.ios.bundle?platform=ios&dev=true&minify=false:109703:30
<unknown>
    index.ios.bundle?platform=ios&dev=true&minify=false:109693:30
BigNumber
    index.ios.bundle?platform=ios&dev=true&minify=false:108959:67
div
    index.ios.bundle?platform=ios&dev=true&minify=false:109862:39
finishClassComponent
    index.ios.bundle?platform=ios&dev=true&minify=false:22981:43
performUnitOfWork
    index.ios.bundle?platform=ios&dev=true&minify=false:25471:27
workLoop
    index.ios.bundle?platform=ios&dev=true&minify=false:25504:47
renderRoot
    index.ios.bundle?platform=ios&dev=true&minify=false:25537:21
performWorkOnRoot
    index.ios.bundle?platform=ios&dev=true&minify=false:26098:23
performWork
    index.ios.bundle?platform=ios&dev=true&minify=false:26030:30
performSyncWork
    index.ios.bundle?platform=ios&dev=true&minify=false:26005:20
requestWork
    index.ios.bundle?platform=ios&dev=true&minify=false:25911:26
scheduleWork
    index.ios.bundle?platform=ios&dev=true&minify=false:25773:28
enqueueSetState
    index.ios.bundle?platform=ios&dev=true&minify=false:21230:23
setState
    index.ios.bundle?platform=ios&dev=true&minify=false:5992:37
dispatch
    index.ios.bundle?platform=ios&dev=true&minify=false:175618:27
_callTimer
    index.ios.bundle?platform=ios&dev=true&minify=false:3514:17
callTimers
    index.ios.bundle?platform=ios&dev=true&minify=false:3721:19
__callFunction
    index.ios.bundle?platform=ios&dev=true&minify=false:3120:49
<unknown>
    index.ios.bundle?platform=ios&dev=true&minify=false:2897:31
__guard
    index.ios.bundle?platform=ios&dev=true&minify=false:3073:15
callFunctionReturnFlushedQueue
    index.ios.bundle?platform=ios&dev=true&minify=false:2896:21
@lukaszfryc
Copy link
Contributor Author

It maybe related to not being logged out after switching networks (see steps to reproduce). I'm not sure if this is expected now.

@lukaszfryc
Copy link
Contributor Author

lukaszfryc commented Oct 19, 2018

@mandrigin or @rasom, could you take it?

@lukaszfryc
Copy link
Contributor Author

All works fine on previous nightly 248e60. So, there are only couple of new commits in which the bug was introduced:

@asemiankevich
Copy link
Contributor

asemiankevich commented Oct 19, 2018

@alwx please take a look. Also #6378 could be related too.

UPD: here is the API commit that broke it #6341

@chadyj chadyj mentioned this issue Oct 19, 2018
@alwx alwx self-assigned this Oct 19, 2018
alwx added a commit that referenced this issue Oct 19, 2018
alwx added a commit that referenced this issue Oct 19, 2018
flexsurfer pushed a commit that referenced this issue Oct 19, 2018
… and opening Wallet

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
@flexsurfer flexsurfer added this to Done in Mobile Client Team via automation Oct 19, 2018
jeluard pushed a commit that referenced this issue Oct 19, 2018
… and opening Wallet

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants