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

the error log is "JNI GetStaticObjectField called with pending exception 'java.lang.NoSuchFieldError' thrown in boolean " #17

Open
1049884729 opened this issue May 5, 2017 · 3 comments

Comments

@1049884729
Copy link

I have a question when I used the old demo; error log is
`05-05 13:40:04.798 15173-15362/JNI DETECTED ERROR IN APPLICATION: JNI GetStaticObjectField called with pending exception 'java.lang.NoSuchFieldError' thrown in boolean org.beyka.tiffbitmapfactory.TiffSaver.save(java.lang.String, android.graphics.Bitmap, org.beyka.tiffbitmapfactory.TiffSaver$SaveOptions, boolean):-2
in call to GetStaticObjectField
from boolean org.beyka.tiffbitmapfactory.TiffSaver.save(java.lang.String, android.graphics.Bitmap, org.beyka.tiffbitmapfactory.TiffSaver$SaveOptions, boolean)
05-05 13:40:04.798 15173-15362/"AsyncTask #1" prio=5 tid=56 Runnable
| group="main" sCount=0 dsCount=0 obj=0x12c06ca0 self=0xdcc46000
| sysTid=15362 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0xe2448000
| state=R schedstat=( 57966230 15888615 136 ) utm=5 stm=0 core=0 HZ=100
| stack=0xdd9f7000-0xdd9f9000 stackSize=1036KB
| held mutexes= "mutator lock"(shared held)
native: #00 pc 0000505c /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
native: #1 pc 00003739 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
native: #2 pc 0024a6e9 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits >&, int, char const*, art::mirror::ArtMethod*)+68)
native: #3 pc 0022e7e1 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&) const+148)
native: #4 pc 000b0d0f /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)
native: #5 pc 000b144f /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+58)
native: #6 pc 000b4549 /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1284)
native: #7 pc 000b68c9 /system/lib/libart.so (art::CheckJNI::GetStaticObjectField(_JNIEnv*, _jclass*, _jfieldID*)+40)
native: #8 pc 00001f13 /data/app/com.test.demo-1/lib/arm/libtiffsaver.so (Java_org_beyka_tiffbitmapfactory_TiffSaver_save+1186)
native: #9 pc 00001eab /data/dalvik-cache/arm/data@[email protected]@[email protected] (Java_org_beyka_tiffbitmapfactory_TiffSaver_save__Ljava_lang_String_2Landroid_graphics_Bitmap_2Lorg_beyka_tiffbitmapfactory_TiffSaver_00024SaveOptions_2Z+174)
at org.beyka.tiffbitmapfactory.TiffSaver.save(Native method)

  • locked <0x1f5ae728> (a java.lang.Class<org.beyka.tiffbitmapfactory.TiffSaver>)
    at org.beyka.tiffbitmapfactory.TiffSaver.appendBitmap(TiffSaver.java:139)
    at org.beyka.tiffbitmapfactory.TiffSaver.appendBitmap(TiffSaver.java:107)`

Thanks sir!

@Beyka
Copy link
Owner

Beyka commented May 5, 2017

Hello! What you mean under "old demo" and could you provide some code where you create SaveOptions and call TiffSaver?

@1049884729
Copy link
Author

when I used " compile 'com.github.beyka:androidtiffbitmapfactory:0.9.6.1-b10d'",the compile is success and all operations is ok.But when I used " compile 'com.github.beyka:androidtiffbitmapfactory:0.9.7'" , the above error happened

@Beyka
Copy link
Owner

Beyka commented May 9, 2017

There are many changes in API since version 0.9.6.1. ALso latest version is 0.9.7.3.
So try latest version of library nad if it not helps you, please provide some code.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants