Steemer [v.1.4.4] - The app will crash when uploading images when created a new post

in #utopian-io6 years ago (edited)

Project Information

Expected behavior

Allows me to upload images when created new post

Actual behavior

The application will crash when I uploading the image from the media

How to reproduce

  • Download app here

  • Open the app

  • Go to creat the post

  • upload the image in your post

  • After taking a picture from the media and uploading it, the app will only show a blank page and then will crashes

  • App version: 1.4.4

  • Operating system: Android 6.0.1

Recording Of The Bug

Proof of Work Done

Logcat

at android.os.AsyncTask$3.done(AsyncTask.java:325)
    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
    at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
    at java.util.concurrent.FutureTask.run(FutureTask.java:242)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    at java.lang.Thread.run(Thread.java:760)
Caused by: java.security.InvalidParameterException: The given account name 'viqral ' contains unsupported characters. The first character needs to be one of 'a-z', characters in the middle can be 'a-z', '0,9' and a '-' and the last character of the name has to be one of 'a-z' and '0-9'.
    at com.steemapp.lokisveil.steemapp.SteemBackend.Config.Models.AccountName.setName(AccountName.java:74)
    at com.steemapp.lokisveil.steemapp.SteemBackend.Config.Models.AccountName.<init>(AccountName.java:27)
    at com.steemapp.lokisveil.steemapp.Post$onActivityResult$1$someTask.doInBackground(Post.kt:419)
    at com.steemapp.lokisveil.steemapp.Post$onActivityResult$1$someTask.doInBackground(Post.kt:417)
    at android.os.AsyncTask$2.call(AsyncTask.java:305)
    at java.util.concurrent.FutureTask.run(FutureTask.java:237
Sort:  

Hi @shaphir, thanks for the contribution.

Unfortunately, I was unable to replicate this particular error on the application's version 1.4.4. Could you please add a logcat to help trace the cause of this crash?

It would be of great help, since I am unable to reproduce it. I apologise for any inconvenience encountered as a result.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Hi @fego, thank you for your feedback. Sorry because i'm new reply to you

It's a logcat the crash

    at android.os.AsyncTask$3.done(AsyncTask.java:325)
    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
    at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
    at java.util.concurrent.FutureTask.run(FutureTask.java:242)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    at java.lang.Thread.run(Thread.java:760)
Caused by: java.security.InvalidParameterException: The given account name 'viqral ' contains unsupported characters. The first character needs to be one of 'a-z', characters in the middle can be 'a-z', '0,9' and a '-' and the last character of the name has to be one of 'a-z' and '0-9'.
    at com.steemapp.lokisveil.steemapp.SteemBackend.Config.Models.AccountName.setName(AccountName.java:74)
    at com.steemapp.lokisveil.steemapp.SteemBackend.Config.Models.AccountName.<init>(AccountName.java:27)
    at com.steemapp.lokisveil.steemapp.Post$onActivityResult$1$someTask.doInBackground(Post.kt:419)
    at com.steemapp.lokisveil.steemapp.Post$onActivityResult$1$someTask.doInBackground(Post.kt:417)
    at android.os.AsyncTask$2.call(AsyncTask.java:305)
    at java.util.concurrent.FutureTask.run(FutureTask.java:237

Is on xiaomi redmi 4X android version 7.1. I using my friend's device to get logcat

Hi @shaphir, thanks for providing this information. It helped in spotting the cause of the crash.

This line

The given account name 'viqral ' contains unsupported characters. The first character needs to be one of 'a-z', characters in the middle can be 'a-z', '0,9' and a '-' and the last character of the name has to be one of 'a-z' and '0-9'. 

shows that the username with which you tested this had a space inserted with it.

This would normally be checked before the form is submitted, with a prompt asking you not to insert special characters.

But instead, the app grants you access to the homepage, in the process loading up stories in the trending page.

Note that at this point you do not have access to any account but rather you are only allowed to view posts made by others on steemit. So attempting to upload or use any features tied to or originially meant for a signed in account results in an error.

This is because you are not properly signed in , in the first place.

This is a bug, but its well beyond the scope of this post. Your report covers something entirely different, the app behaved the way it did cause you provided it with the wrong information.

I apologise for the inconvenience encountered.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by shaphir from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 65762.16
ETH 3485.95
USDT 1.00
SBD 2.50