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

Line chart crash #152

Open
pnemonic78 opened this issue Jun 13, 2024 · 0 comments
Open

Line chart crash #152

pnemonic78 opened this issue Jun 13, 2024 · 0 comments
Labels
area/diagrams bug Something isn't working

Comments

@pnemonic78
Copy link
Collaborator

Steps to reproduce the behaviour

  1. Reports screen
  2. Line Chart
  3. select "6 months"
  4. rotate device

Expected behaviour

Not crash

Actual behaviour

Crashes

Software specifications

  • GnuCash Android version:
  • System Android version:
  • Device type:
                 java.lang.RuntimeException: An error occurred while executing doInBackground()
                 	at android.os.AsyncTask$4.done(AsyncTask.java:415)
                 	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
                 	at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
                 	at java.util.concurrent.FutureTask.run(FutureTask.java:269)
                 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
                 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
                 	at java.lang.Thread.run(Thread.java:1012)
                 Caused by: java.lang.IllegalArgumentException: One or more of the DataSet Entry arrays are longer than the x-values array of this ChartData object.
                 	at com.github.mikephil.charting.data.ChartData.checkLegal(ChartData.java:182)
                 	at com.github.mikephil.charting.data.ChartData.init(ChartData.java:138)
                 	at com.github.mikephil.charting.data.ChartData.<init>(ChartData.java:104)
                 	at com.github.mikephil.charting.data.BarLineScatterCandleBubbleData.<init>(BarLineScatterCandleBubbleData.java:29)
                 	at com.github.mikephil.charting.data.LineData.<init>(LineData.java:29)
                 	at org.gnucash.android.ui.report.linechart.CashFlowLineChartFragment.getData(CashFlowLineChartFragment.java:179)
                 	at org.gnucash.android.ui.report.linechart.CashFlowLineChartFragment.generateReport(CashFlowLineChartFragment.java:314)
                 	at org.gnucash.android.ui.report.BaseReportFragment$1.doInBackground(BaseReportFragment.java:297)
                 	at org.gnucash.android.ui.report.BaseReportFragment$1.doInBackground(BaseReportFragment.java:288)
                 	at android.os.AsyncTask$3.call(AsyncTask.java:394)
                 	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
                 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305) 
                 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
                 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) 
                 	at java.lang.Thread.run(Thread.java:1012) 

@djbrown djbrown added bug Something isn't working area/diagrams labels Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/diagrams bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants