Ananas icon indicating copy to clipboard operation
Ananas copied to clipboard

Issue with withEditorTitle()

Open red-game-dev opened this issue 2 years ago • 2 comments

Hi!

Hope this message finds you well.

I'm trying to use withEditorTitle(title: string) from https://github.com/iamutkarshtiwari/Ananas/blob/4ca9b159ec798946b437183f69eba89b823ae561/ananas/src/main/java/iamutkarshtiwari/github/io/ananas/editimage/ImageEditorIntentBuilder.kt#L60 but unfortunately it does throw an error as the following

image

Example how is being called

                    new ImageEditorIntentBuilder(
                      this,
                      picAbsolutePath,
                      outputAbsolutePath,
                    )
                      .withAddText()
                      .withPaintFeature()
                      .withFilterFeature()
                      .withRotateFeature()
                      .withCropFeature()
                      .withBrightnessFeature()
                      .withSaturationFeature()
                      .withBeautyFeature()
                      .withStickerFeature()
                      .withEditorTitle("Test")
                      .withSourcePath(this.coinImageDestination)
                      .withOutputPath(this.outputDestinationPath)
                      .forcePortrait(true)
                      .setSupportActionBarVisibility(false)
                      .build();

Demo link and line: https://github.com/iamutkarshtiwari/Ananas/blob/4ca9b159ec798946b437183f69eba89b823ae561/demo/src/main/java/iamutkarshtiwari/github/io/imageeditorsample/MainActivity.java#L126

Am I doing something wrong?

Looking forward to hearing from you.

Best regards, Cheers

red-game-dev avatar Sep 11 '21 21:09 red-game-dev

Hi @red-game-dev, thanks for reporting this issue. Could you please paste the complete logcat. Would be easier to debug?

iamutkarshtiwari avatar Sep 16 '21 07:09 iamutkarshtiwari

Hi @iamutkarshtiwari

You're welcome, and hope you're well!

As requested I've added the logcat while triggering this action, you can view below

-18 18:56:52.331  2597  3346 E NetRec  :      at xcn.run(:com.google.android.g
ms@[email protected] (120700-395723304):0)
09-18 18:56:52.331  2597  3346 E NetRec  :      at java.lang.Thread.run(Thread.j
ava:919)
09-18 18:56:52.331  2597  3346 E NetRec  : Caused by: vnt: 29503:
09-18 18:56:52.331  2597  3346 E NetRec  :      at vtl.c(:com.google.android.gms
@[email protected] (120700-395723304):2)
09-18 18:56:52.331  2597  3346 E NetRec  :      at awwr.i(:com.google.android.gm
s@[email protected] (120700-395723304):0)
09-18 18:56:52.331  2597  3346 E NetRec  :      at awxi.j(:com.google.android.gm
s@[email protected] (120700-395723304):0)
09-18 18:56:52.331  2597  3346 E NetRec  :      at affs.o(:com.google.android.gm
s@[email protected] (120700-395723304):5)
09-18 18:56:52.331  2597  3346 E NetRec  :      at affx.run(:com.google.android.
gms@[email protected] (120700-395723304):18)
09-18 18:56:52.331  2597  3346 E NetRec  :      at bzki.run(:com.google.android.
gms@[email protected] (120700-395723304):2)
09-18 18:56:52.331  2597  3346 E NetRec  :      ... 6 more
09-18 18:56:52.331  2597  3346 W NetRec  : [124] atrg.a: No server tokens extrac
ted.
09-18 18:56:52.443  2597  3346 E Volley  : [124] cnb.b: Unexpected response code
 400 for https://mobilenetworkscoring-pa.googleapis.com/v1/GetWifiQuality?key=AI
zaSyBrlVtd67QvwS_Wz0Do4ZIdOeA6ThtVczU
09-18 18:56:52.445  2597  4086 I NetRec  : [189] atuk.c: Will retry failed rapid
_refresh_scores_task task as standard refresh.
09-18 18:56:52.450  2597  4086 W NetRec  : [189] atuk.a: Unexpected exception co
m.android.volley.ClientError while waiting for score updates (com.android.volley
.ClientError). Returning 2.
09-18 18:56:52.455  2597  4086 I NetRec  : [189] NetRecChimeraGcmTaskService.a:
Still entries pending update, scheduling new rapid_refresh_scores_task refresh.
09-18 18:56:52.460  2597  4086 I NetRec  : [189] NetRecChimeraGcmTaskService.a:
Completed rapid_refresh_scores_task score refresh task in 158 ms, returning 2
09-18 18:56:52.466  2597  3346 I NetworkScheduler.Stats: Task com.google.android
.gms/com.google.android.gms.netrec.module.NetRecGcmTaskService finished executin
g. cause:4 result: 2 elapsed_millis: 235 uptime_millis: 235 exec_start_elapsed_s
econds: 422 [CONTEXT service_id=218 ]
09-18 18:56:52.672  1805  2283 E GnssHAL_GnssInterface: gnssSvStatusCb: a: input
 svInfo.flags is 8
09-18 18:56:52.672  1805  2283 E GnssHAL_GnssInterface: gnssSvStatusCb: b: input
 svInfo.flags is 8
09-18 18:56:52.705  2036  2918 W AppOps  : Noting op not finished: uid 10099 pkg
 com.google.android.gms code 79 time=1631984029192 duration=-1631983581865
09-18 18:56:52.715  2036  3902 W AppOps  : Noting op not finished: uid 10099 pkg
 com.google.android.gms code 79 time=1631984212705 duration=0
09-18 18:56:52.720  2036  6086 W AppOps  : Noting op not finished: uid 10099 pkg
 com.google.android.gms code 79 time=1631984212715 duration=0
09-18 18:56:52.725  2036  2316 W AppOps  : Noting op not finished: uid 10099 pkg
 com.google.android.gms code 79 time=1631984212720 duration=0
09-18 18:56:53.193  5473  6576 I ContentMaintenance: Internal cache bytes used:
0; limit: 100000000; download size: 0
09-18 18:56:53.201  5473  6576 I RealtimeCacheCleanup: Beginning Realtime garbag
e collection.
09-18 18:56:53.202  5473  6576 I RealtimeCacheCleanup: Finished Realtime garbage
 collection.
09-18 18:56:53.672  1805  2283 E GnssHAL_GnssInterface: gnssSvStatusCb: a: input
 svInfo.flags is 8
09-18 18:56:53.672  1805  2283 E GnssHAL_GnssInterface: gnssSvStatusCb: b: input
 svInfo.flags is 8
09-18 18:56:54.672  1805  2283 E GnssHAL_GnssInterface: gnssSvStatusCb: a: input
 svInfo.flags is 8
09-18 18:56:54.672  1805  2283 E GnssHAL_GnssInterface: gnssSvStatusCb: b: input
 svInfo.flags is 8
09-18 18:56:55.672  1805  2283 E GnssHAL_GnssInterface: gnssSvStatusCb: a: input
 svInfo.flags is 8
09-18 18:56:55.672  1805  2283 E GnssHAL_GnssInterface: gnssSvStatusCb: b: input
 svInfo.flags is 8

Hope this is helpful! Looking forward to hearing from you.

Best regards, Cheers

red-game-dev avatar Sep 18 '21 16:09 red-game-dev