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

[Android]ScrollableTabBar Crash #328

Closed
Richard-Cao opened this issue Jun 27, 2016 · 21 comments
Closed

[Android]ScrollableTabBar Crash #328

Richard-Cao opened this issue Jun 27, 2016 · 21 comments
Labels

Comments

@Richard-Cao
Copy link
Contributor

Richard-Cao commented Jun 27, 2016

java.lang.AssertionError: availableWidth is indefinite so widthMeasureMode must be CSSMeasureMode.UNDEFINED
                                                               at com.facebook.infer.annotation.Assertions.assertCondition(Assertions.java:65)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:502)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:938)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:706)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:938)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:938)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:938)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:938)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:1304)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:1088)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:1304)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:1088)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:1088)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:1088)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:1304)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:1304)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNodeInternal(LayoutEngine.java:373)
                                                               at com.facebook.csslayout.LayoutEngine.layoutNode(LayoutEngine.java:251)
                                                               at com.facebook.csslayout.CSSNode.calculateLayout(CSSNode.java:144)
                                                               at com.facebook.react.uimanager.UIImplementation.calculateRootLayout(UIImplementation.java:731)
                                                               at com.facebook.react.uimanager.UIImplementation.updateViewHierarchy(UIImplementation.java:505)
                                                               at com.facebook.react.uimanager.UIImplementation.dispatchViewUpdates(UIImplementation.java:494)
                                                               at com.facebook.react.uimanager.UIManagerModule.onBatchComplete(UIManagerModule.java:457)
                                                               at com.facebook.react.bridge.NativeModuleRegistry.onBatchComplete(NativeModuleRegistry.java:137)
                                                               at com.facebook.react.bridge.CatalystInstanceImpl$NativeModulesReactCallback.onBatchComplete(CatalystInstanceImpl.java:453)
                                                               at com.facebook.react.bridge.queue.NativeRunnableDeprecated.run(Native Method)
                                                               at android.os.Handler.handleCallback(Handler.java:739)
                                                               at android.os.Handler.dispatchMessage(Handler.java:95)
                                                               at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
                                                               at android.os.Looper.loop(Looper.java:135)
                                                               at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:193)
                                                               at java.lang.Thread.run(Thread.java:818)

Only on Android.

@skv-headless
Copy link
Collaborator

How can I reproduce it?

@Richard-Cao
Copy link
Contributor Author

Richard-Cao commented Jun 28, 2016

@skv-headless https://github.com/attentiveness/reading/blob/master/app/pages/Main.js#L340, change DefaultTabBar to ScrollableTabBar can reproduce. Only on android

@hdjjun
Copy link

hdjjun commented Jul 4, 2016

My app crashed too.Just replace DefaultTabBar with ScrollableTabBar.

@skv-headless
Copy link
Collaborator

If you reproduce this on examples I'll take a look as soon as possible

@brucesq
Copy link

brucesq commented Jul 18, 2016

ScrollableTabBar crash for android, DefaultTabBar work well.

@Richard-Cao
Copy link
Contributor Author

@sunquanzhi yes

@legendtang
Copy link

Same problem as described above.

@Richard-Cao
Copy link
Contributor Author

Still crash……

@Richard-Cao
Copy link
Contributor Author

@skv-headless Anything else?

@Richard-Cao
Copy link
Contributor Author

Dynamic tabs use ScrollableTabBar…… @skv-headless

@aqnaruto
Copy link

aqnaruto commented Sep 9, 2016

@Richard-Cao 那咋办,现在还崩溃么。蛋疼。

@aqnaruto
Copy link

aqnaruto commented Sep 9, 2016

我试了,0.21版本的 是怎么弄都不会蹦的。后面react升级了 ,就出现蹦了。主要是语法经常变 很坑爹,估计里面的逻辑都乱掉了把。 @Richard-Cao

@Richard-Cao
Copy link
Contributor Author

@aqnaruto Still crash.

@aqnaruto
Copy link

aqnaruto commented Sep 9, 2016

你说的这个是启动的时候蹦,还是使用这个的时候才会蹦 @Richard-Cao

@Richard-Cao
Copy link
Contributor Author

@aqnaruto Crash when use this.

@chenhao455
Copy link

@skv-headless 我也发现这个问题了,ireading项目(地址:https://github.com/attentiveness/reading),把代码下载下来,安装好包依赖,react-native run-android后,出现如楼上aqnaruto的图片中的错误

@Richard-Cao
Copy link
Contributor Author

@haomiaozhichen Please speak English……

@skv-headless
Copy link
Collaborator

Please try version from master. There is no ViewPager. I appreciate any feedback.

@Richard-Cao
Copy link
Contributor Author

still crash in 0.7.0.

@cbilgili
Copy link

+1 I have same problem.

@cinder92
Copy link

still crash...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants