[InSteem] [v1.5.1] When I write a post and cancel it by pressing the back button, the app freezes, and crashes.
Project Information
- Repository: https://github.com/hispeedimagins/steem
- Project Name: InSteem
- The submitted issue: https://github.com/hispeedimagins/steem/issues/45
Expected behavior
The users should be able to cancel the post successfully without crashing the app.
Actual behavior
The app crashes when I cancel a new post by pressing the back button.
How to reproduce
- Open the app and click on the post creation button at the downside of your phone.
- Write something on "Title", "Tags", & "Your post" field.
- Then press the back button of your phone.
- See error.
- Browser/App version: v1.5.1
- Operating system: OS: Android 6.0.1
Recording Of The Bug
GitHub Account
Logcat
04-01 14:33:01.681 22686 22686 E AndroidRuntime: FATAL EXCEPTION: main
04-01 14:33:01.681 22686 22686 E AndroidRuntime: Process: com.insteem.ipfreely.steem, PID: 22686
04-01 14:33:01.681 22686 22686 E AndroidRuntime: java.lang.RuntimeException: Unable to stop activity {com.insteem.ipfreely.steem/com.insteem.ipfreely.steem.Post}: android.view.InflateException: Binary XML file line #27: Binary XML file line #27: Error inflating class TextView
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5094)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5162)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.app.ActivityThread.access$1700(ActivityThread.java:229)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1880)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7325)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #27: Binary XML file line #27: Error inflating class TextView
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:551)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:429)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:380)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.widget.Toast.makeText(Toast.java:481)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at com.insteem.ipfreely.steem.Fragments.WritePost.onStop(WritePost.kt:234)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at androidx.fragment.app.Fragment.performStop(Fragment.java:2662)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1519)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3269)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at androidx.fragment.app.FragmentManagerImpl.dispatchStop(FragmentManager.java:3250)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at androidx.fragment.app.FragmentController.dispatchStop(FragmentController.java:245)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at androidx.fragment.app.FragmentActivity.onStop(FragmentActivity.java:641)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at androidx.appcompat.app.AppCompatActivity.onStop(AppCompatActivity.java:184)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1307)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.app.Activity.performStop(Activity.java:7098)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5089)
04-01 14:33:01.681 22686 22686 E AndroidRuntime: ... 9 more
Thanks for your contribution.
Using the steps provided I was able to easily replicate the issue described. Great to see it reported, unfortunate that the project owner didn't acknowledge the issue, however I realise sometimes it takes a little while.
The steps were easy to follow and overall it was good work. I'm really happy to see a log-cat included with the contribution, so great work on that too.
Once again, thanks for your contribution and look forward to seeing more like in the future :)
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]
Thanks for reviewing my contribution @tobias-g
Thank you for your review, @tobias-g! Keep up the good work!
Hi @sagorahmed!
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, @sagorahmed!
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!