Piggy Budget v2.5; The app crashes when trying to share CSV files.

in #utopian-io5 years ago

Project Information

Repository: https://github.com/pmiddend/piggybudget
Project Name: Piggy Budget

Expected behavior

Users should be able to be able to share csv files when the "share csv" button is clicked.

Actual behavior

The application closes and crashed when user click on "share csv".

How to reproduce

Download and install the latest release of the app.

Launch the app.

Grant all permissions.

Click on the floating action button (the 3 horizontal dots) in the top right corner

Click on the "Share CSV" option.

It will be observed that the app crashes and closes. Hence, the bug.

Browser: Piggy budget version 2.5
Operating system: android version 6.0

Recording Of The Bug

GitHub Account

https://github.com/jubreal

Link to Github Issue here

LOG

04-10 13:23:40.838 I/BufferQueueProducer(271): [de.php_tech.piggybudget/de.php_tech.piggybudget.MainActivity](this:0x7f7d3a3000,id:597,api:1,p:14344,c:271) queueBuffer: fps=0.40 dur=2530.76 max=2530.76 min=2530.76
04-10 13:23:40.842 I/BufferQueueProducer(271): [de.php_tech.piggybudget/de.php_tech.piggybudget.MainActivity](this:0x7f7d3a3000,id:597,api:1,p:14344,c:271) new GraphicBuffer needed
04-10 13:23:41.280 I/BufferQueueProducer(271): [de.php_tech.piggybudget/de.php_tech.piggybudget.MainActivity](this:0x7f7d3a3000,id:597,api:1,p:14344,c:271) new GraphicBuffer needed
04-10 13:23:42.448 I/BufferQueueProducer(271): [de.php_tech.piggybudget/de.php_tech.piggybudget.MainActivity](this:0x7f7d3a3000,id:597,api:1,p:14344,c:271) queueBuffer: fps=3.73 dur=1610.20 max=818.23 min=7.13
04-10 13:23:43.617 I/BufferQueueProducer(271): [de.php_tech.piggybudget/de.php_tech.piggybudget.MainActivity](this:0x7f7d3a3000,id:597,api:1,p:14344,c:271) queueBuffer: fps=4.28 dur=1168.76 max=594.79 min=8.61
04-10 13:23:45.950 I/am_crash(944): [14344,0,de.php_tech.piggybudget,948452932,android.util.AndroidRuntimeException,Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?,ContextImpl.java,677]
04-10 13:23:45.956 I/am_finish_activity(944): [0,32879754,112609,de.php_tech.piggybudget/.MainActivity,force-crash]
04-10 13:23:45.947 E/AndroidRuntime(14344): Process: de.php_tech.piggybudget, PID: 14344
04-10 13:23:45.947 E/AndroidRuntime(14344):     at de.php_tech.piggybudget.ExportIntentModule.exportCsv(ExportIntentModule.java:54)
04-10 13:23:45.994 I/am_pause_activity(944): [0,32879754,de.php_tech.piggybudget/.MainActivity]
04-10 13:23:45.956 W/ActivityManager(944):   Force finishing activity de.php_tech.piggybudget/.MainActivity
04-10 13:23:45.957 V/WindowManager(944): findFocusedWindow: Found new focus @ 12 = Window{e58d660 u0 de.php_tech.piggybudget/de.php_tech.piggybudget.MainActivity}
04-10 13:23:45.959 V/WindowManager(944): Set focused app to: AppWindowToken{52b76d7 token=Token{13e656 ActivityRecord{e87871 u0 com.infinix.xlauncher/com.android.launcher3.Launcher t112575}}} old focus=AppWindowToken{3922718 token=Token{f5c1afb ActivityRecord{1f5b48a u0 de.php_tech.piggybudget/.MainActivity t112609}}} moveFocusNow=true
04-10 13:23:45.965 D/AES     (944):     process : de.php_tech.piggybudget
04-10 13:23:45.965 D/AES     (944):      module : de.php_tech.piggybudget v25 (2.5)
04-10 13:23:45.965 D/AEE/LIBAEE(944): shell: raise_exp(4, 14344, -1361051648, de.php_tech.piggybudget, 0x0x7f767e1720, 0x0x0)
04-10 13:23:45.968 V/WindowManager(944): Changing focus from Window{e58d660 u0 de.php_tech.piggybudget/de.php_tech.piggybudget.MainActivity} to null Callers=com.android.server.wm.WindowManagerService.setFocusedApp:4506 com.android.server.am.ActivityManagerService.setFocusedActivityLocked:2873 com.android.server.am.ActivityStackSupervisor.moveHomeStackTaskToTop:575 com.android.server.am.ActivityStack.adjustFocusedActivityLocked:3141 
04-10 13:23:45.969 I/AEE/AED (14395): [OnPurpose Redunant in void preset_info(aed_report_record*, int, int)] pid: 14344, tid: -1361051648, name: UNKNOWN  >>> de.php_tech.piggybudget <<<
04-10 13:23:45.969 V/AEE/AED (14395): dashboard_record_update() : rec->module = de.php_tech.piggybudget 
04-10 13:23:45.969 I/WindowManager(944): Focus moving from Window{e58d660 u0 de.php_tech.piggybudget/de.php_tech.piggybudget.MainActivity} to null
04-10 13:23:45.970 I/WindowManager(944): Losing focus: Window{e58d660 u0 de.php_tech.piggybudget/de.php_tech.piggybudget.MainActivity}
Sort:  

Hi @jubrael, thanks for making this contribution.

I was unable to reproduce the crash. I see the PO is yet to reproduce the bug but he has added the bug label. Probably a hint that the crash may have been possible.

  1. The expected and actual behavior are very well written.
  2. The steps you provided were easy to follow. Although I couldn't reproduce the crash on an android 7 or 8 OS. The recording very well complemented the written steps.
  3. It will be nice to properly format the body of your content. You can arrange the steps in an ordered or unordered list

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @fego! Keep up the good work!

Hi @jubreal!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @jubreal!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.032
BTC 63161.84
ETH 3061.57
USDT 1.00
SBD 3.97