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

Session読み込み前にタイムテーブル画面に遷移すると白紙になる #794

Open
sobaya-0141 opened this issue Feb 4, 2019 · 9 comments

Comments

@sobaya-0141
Copy link
Contributor

Overview (Required)

  • アプリ起動直後にタイムテーブル画面に遷移するとタイムテーブルが表示されない
    ※初回起動時やストレージ削除後だとやりやすいです。

@koji-1009
Copy link
Contributor

This issue has been reproduced in the emulator.
(After the current master, after merge #797, a crash occurred.)

Application: io.github.droidkaigi.confsched2019.debug
Manufacturer: Google
Model: Android SDK built for x86
Brand: google
Device: generic_x86
Board: goldfish_x86
Hardware: ranchu
Product: sdk_gphone_x86
Android Version: 9


java.lang.IndexOutOfBoundsException: Requested position -1in group adapter but there are only 0 items
   com.xwray.groupie.GroupAdapter.getItem(GroupAdapter.java:202)
   com.xwray.groupie.GroupAdapter.getItem(GroupAdapter.java:207)
   io.github.droidkaigi.confsched2019.session.ui.widget.TimetableCurrentTimeLineDecoration.calcLineHeight(TimetableCurrentTimeLineDecoration.kt:62)
   io.github.droidkaigi.confsched2019.session.ui.widget.TimetableCurrentTimeLabelDecoration.onDrawOver(TimetableCurrentTimeLabelDecoration.kt:75)
   androidx.recyclerview.widget.RecyclerView.draw(RecyclerView.java:4223)
   android.view.View.updateDisplayListIfDirty(View.java:19082)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   android.view.View.updateDisplayListIfDirty(View.java:19073)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:2072)
   android.view.View.updateDisplayListIfDirty(View.java:19073)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   android.view.View.updateDisplayListIfDirty(View.java:19073)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:2072)
   android.view.View.updateDisplayListIfDirty(View.java:19073)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   androidx.drawerlayout.widget.DrawerLayout.drawChild(DrawerLayout.java:1426)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   android.view.View.draw(View.java:20210)
   android.view.View.updateDisplayListIfDirty(View.java:19082)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   android.view.View.updateDisplayListIfDirty(View.java:19073)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   android.view.View.updateDisplayListIfDirty(View.java:19073)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   android.view.View.updateDisplayListIfDirty(View.java:19073)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   android.view.View.updateDisplayListIfDirty(View.java:19073)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   android.view.View.updateDisplayListIfDirty(View.java:19073)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   android.view.View.draw(View.java:20210)
   android.view.View.updateDisplayListIfDirty(View.java:19082)
   android.view.View.draw(View.java:19935)
   android.view.ViewGroup.drawChild(ViewGroup.java:4333)
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
   android.view.View.draw(View.java:20210)
   com.android.internal.policy.DecorView.draw(DecorView.java:780)
   android.view.View.updateDisplayListIfDirty(View.java:19082)
   android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:686)
   android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:692)
   android.view.ThreadedRenderer.draw(ThreadedRenderer.java:801)
   android.view.ViewRootImpl.draw(ViewRootImpl.java:3311)
   android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3115)
   android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2484)
   android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1460)
   android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7183)
   android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
   android.view.Choreographer.doCallbacks(Choreographer.java:761)
   android.view.Choreographer.doFrame(Choreographer.java:696)
   android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
   android.os.Handler.handleCallback(Handler.java:873)
   android.os.Handler.dispatchMessage(Handler.java:99)
   android.os.Looper.loop(Looper.java:193)
   android.app.ActivityThread.main(ActivityThread.java:6669)
   java.lang.reflect.Method.invoke(Native Method)
   com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
   com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

@koji-1009
Copy link
Contributor

@takahirom
Copy link
Member

@koji-1009 Can you send pr for that?🙏

@takahirom
Copy link
Member

In TimetableCurrentTimeLineDecoration.calcLineHeight, you can judge RecyclerView.NO_POSITION.

@takahirom
Copy link
Member

It can be fixed that it will be blank at the beginning of the transition. However, I will resolve it when I return. It is not serious, so it is not a problem to fix from now.

@koji-1009
Copy link
Contributor

OK, I'll take care of this.

@koji-1009
Copy link
Contributor

It can be fixed that it will be blank at the beginning of the transition. However, I will resolve it when I return. It is not serious, so it is not a problem to fix from now.

Thanks. I'm thinking now this point.

@takahirom
Copy link
Member

But I want to fix the crash so please pr.🙏

@koji-1009
Copy link
Contributor

Oh, sorry. I'm on the train now.
I will send PR after 20 min. Is that is too late?

すいません、いま電車で移動中のためPR作成までに20分程かかりそうです。
間に合わないよであれば、他のかたにPRをお願いしたく 。。

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

No branches or pull requests

3 participants