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

keep crashing #57

Closed
3 tasks done
Haidarah-Esmander opened this issue Oct 22, 2022 · 2 comments
Closed
3 tasks done

keep crashing #57

Haidarah-Esmander opened this issue Oct 22, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Haidarah-Esmander
Copy link

Steps to reproduce

it crashes when i try to enter a word to translate

Expected behavior

it should work as expected

Actual behavior

the application crashes when I try to translate any word

Translate You version

2.0

Android version

android 12

Other details

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
@Haidarah-Esmander Haidarah-Esmander added the bug Something isn't working label Oct 22, 2022
@Ilithy
Copy link
Contributor

Ilithy commented Oct 23, 2022

Yes indeed, I also observe this behavior, but only when I select Deepl or MyMemory as translation engine (no matter what options are checked, with or without simultaneous translation, history etc...)

Here are some logs recovered during TY crashes, depending on the translation engine:

  • With deepl selected:
FATAL EXCEPTION: DefaultDispatcher-worker-8
Process: com.bnyro.translate.nf, PID: 30551
v5.j: HTTP 400 
	at v5.o.b(SourceFile:140)
	at v5.t$a.b(Unknown Source:10)
	at k5.x$a.a(SourceFile:22)
	at l5.b.run(Unknown Source:17)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)
	Suppressed: c5.h0: [p1{Cancelling}@5ac619d, Dispatchers.IO]
  • With Mymemory:
FATAL EXCEPTION: DefaultDispatcher-worker-2
Process: com.bnyro.translate.nf, PID: 30941
x3.f: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('')
 at [Source: (k5.d0$a); line: 1, column: 506] (through reference chain: com.bnyro.translate.api.mm.obj.MMTranslationResponse["matches"])
	at r3.f.R(SourceFile:12)
	at r3.f.y(SourceFile:82)
	at u3.w.a(SourceFile:69)
	at u3.w.q(Unknown Source:0)
	at w3.f.d(Unknown Source:37)
	at v3.i.j(Unknown Source:26)
	at u3.c.y0(Unknown Source:30)
	at u3.c.d(SourceFile:14)
	at r3.r.d(SourceFile:95)
	at q0.d.a(SourceFile:39)
	at v5.t.d(SourceFile:59)
	at v5.t$a.b(Unknown Source:2)
	at k5.x$a.a(SourceFile:22)
	at l5.b.run(Unknown Source:17)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)
	Suppressed: c5.h0: [p1{Cancelling}@8f310fc, Dispatchers.IO]

I don't know if it will be useful...
Thanks

@Bnyro
Copy link
Member

Bnyro commented Oct 23, 2022

Oh, damn, I forgot to change back some code I used for testing, I'll quickly fix that and update a new release later thanks for the call!

@Bnyro Bnyro closed this as completed Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants