Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Failing Instrumentation Test: PieChartReportTest.testSelectingValue #13

Closed
djbrown opened this issue Oct 16, 2022 · 6 comments
Closed
Labels

Comments

@djbrown
Copy link

djbrown commented Oct 16, 2022

There is one failing test in the nightly test suite (#7).
Test: org.gnucash.android.test.ui.PieChartReportTest.testSelectingValue
Error message: Instrumentation run failed due to 'Process crashed.'
Flavor: betaDebugAndroidTest

Device Log
Timestamp Level Tag Message
10-16 20:22:00.003 debug TransactionsDbAdapter 2 splits added
10-16 20:22:00.004 debug TransactionsDbAdapter 0 splits deleted
10-16 20:22:00.055 verbose AccountsDbAdapter Fetching all accounts from db where null order by full_name ASC
10-16 20:22:00.358 warn SQLiteConnectionPool A SQLiteConnection object for database '/data/user/0/org.gnucash.android/databases/cad76b596dab453599736d7ff3290644' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
10-16 20:22:00.358 warn SQLiteConnectionPool A SQLiteConnection object for database '/data/user/0/org.gnucash.android/databases/68cee89dfcb04f558f3b73fd7b6a3170' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
10-16 20:22:00.365 warn SQLiteConnectionPool A SQLiteConnection object for database '/data/user/0/org.gnucash.android/databases/e6e9d8f87ef143dbacf439a5984017fe' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
10-16 20:22:00.386 debug AndroidRuntime Shutting down VM
10-16 20:22:00.386 debug AndroidRuntime --------- beginning of crash
10-16 20:22:00.388 error AndroidRuntime FATAL EXCEPTION: main
10-16 20:22:00.388 error AndroidRuntime Process: org.gnucash.android, PID: 2965
10-16 20:22:00.388 error AndroidRuntime java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
10-16 20:22:00.388 error AndroidRuntime at com.github.mikephil.charting.renderer.LegendRenderer.renderLegend(LegendRenderer.java:239)
10-16 20:22:00.388 error AndroidRuntime at com.github.mikephil.charting.charts.PieChart.onDraw(PieChart.java:114)
10-16 20:22:00.388 error AndroidRuntime at android.view.View.draw(View.java:19192)
10-16 20:22:00.448 error THREAD_STATE Thread[MultiThreadedHttpConnectionManager cleanup,5,main]
10-16 20:22:00.448 error THREAD_STATE java.lang.Object.wait(Native Method)
10-16 20:22:00.448 error THREAD_STATE java.lang.Object.wait(Object.java:422)
10-16 20:22:00.448 error THREAD_STATE java.l
10-16 20:22:00.448 error MonitoringInstr Dying now...
10-16 20:22:00.465 info Process Sending signal. PID: 2965 SIG: 9
Stacktrace
java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
    at com.github.mikephil.charting.renderer.LegendRenderer.renderLegend(LegendRenderer.java:239)
    at com.github.mikephil.charting.charts.PieChart.onDraw(PieChart.java:114)
    at android.view.View.draw(View.java:19192)
    at android.view.View.updateDisplayListIfDirty(View.java:18142)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4220)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4200)
    at android.view.View.updateDisplayListIfDirty(View.java:18101)
    at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:669)
    at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:675)
    at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:783)
    at android.view.ViewRootImpl.draw(ViewRootImpl.java:2992)
    at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2806)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2359)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1392)
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6752)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
    at android.view.Choreographer.doCallbacks(Choreographer.java:723)
    at android.view.Choreographer.doFrame(Choreographer.java:658)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6494)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
@djbrown djbrown added the help wanted Extra attention is needed label Oct 16, 2022
@djbrown
Copy link
Author

djbrown commented Oct 16, 2022

It could be either a functional problem (ArrayIndexOutOfBoundsException),
or it could be that the device chrashes prematurely from another reason.

Next step would be to reproduce this error locally.
I can only use a real device, since HAXM is not installable on my machine.

@djbrown djbrown changed the title Failing Device Test: Failing Device Test: PieChartReportTest.testSelectingValue Oct 16, 2022
@djbrown djbrown changed the title Failing Device Test: PieChartReportTest.testSelectingValue Failing Instrumentation Test: PieChartReportTest.testSelectingValue Oct 16, 2022
@djbrown
Copy link
Author

djbrown commented Oct 16, 2022

See Nightly Build 1 -> Artifacts -> "Spoon Test Report 1.1"

@djbrown djbrown mentioned this issue Oct 30, 2022
19 tasks
@arozaqf
Copy link

arozaqf commented Oct 31, 2022

@djbrown i can recreate it first forceclosed, select report, pie chart, select period 1 of november and second 31 october, and lastly done,

@djbrown
Copy link
Author

djbrown commented Nov 3, 2022

@arozaqf do you mean you can recreate the error? or you can recreate the test and it works on your phone?

@arozaqf
Copy link

arozaqf commented Nov 4, 2022

@djbrown i recreate the error...

@djbrown djbrown changed the title Failing Instrumentation Test: PieChartReportTest.testSelectingValue Unstable/Failing Instrumentation Tests Nov 14, 2022
@djbrown djbrown changed the title Unstable/Failing Instrumentation Tests Failing Instrumentation Test: PieChartReportTest.testSelectingValue Nov 14, 2022
@djbrown
Copy link
Author

djbrown commented Jun 1, 2023

Not failing on recent device see 6e11717 - Instrumentation Test Report

@djbrown djbrown closed this as completed Jun 1, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants