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

Fatal signal 6 (SIGABRT), code -6 in tid 23316 (AsyncTask #1) #40

Closed
kienntk opened this issue Jun 10, 2016 · 10 comments
Closed

Fatal signal 6 (SIGABRT), code -6 in tid 23316 (AsyncTask #1) #40

kienntk opened this issue Jun 10, 2016 · 10 comments
Assignees
Labels

Comments

@kienntk
Copy link

kienntk commented Jun 10, 2016

Firstly, thank you very much for your awesome material
I got Fatal signal 6 error when using library.
I have tried with sample project and FC occured too :(.

Kindly help me with this error. Your Library is great

@DeveloperPaul123
Copy link
Owner

Can you post your code and a stack trace? What version of android are you using?

@kienntk
Copy link
Author

kienntk commented Jun 11, 2016

I only use sample code to open dialog file picker in OnClickListener of a button in RecyclerView:

Intent filePickerDialogIntent = new Intent(this, FilePickerActivity.class);
filePickerDialogIntent.putExtra(FilePickerActivity.THEME_TYPE, ThemeType.DIALOG);
filePickerDialogIntent.putExtra(FilePickerActivity.REQUEST, Request.FILE);
startActivityForResult(filePickerDialogIntent, REQUEST_FILE);

The stacktrace is only:

06-11 07:47:28.067 774-890/? I/ActivityManager: Displayed com.github.developerpaul123.filepickerlibrary/.FilePickerActivity: +232ms
06-11 07:47:28.083 10295-10295/com.github.developerpaul123.filepickerlibrary I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@2af5aac7 time:365083737
06-11 07:47:28.089 321-321/? W/SurfaceFlinger: couldn't log to binary event log: overflow.
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] Runtime aborting...
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] Aborting thread:
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] "AsyncTask #1" prio=4 tid=15 Native
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] | group="" sCount=0 dsCount=0 obj=0x12dc56a0 self=0xb7c002a0
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] | sysTid=10332 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0xa0ecd000
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] | state=R schedstat=( 30792234 40710450 221 ) utm=0 stm=3 core=1 HZ=100
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] | stack=0xa0d4e000-0xa0d50000 stackSize=1036KB
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] | held mutexes= "abort lock" "mutator lock"(shared held)
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #00 pc 0000484c /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext_)+23)
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #1 pc 00003031 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext_)+8)
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #2 pc 00243b8b /system/lib/libart.so (art::DumpNativeStack(std::_1::basic_ostream<char, std::1::char_traits >&, int, char const, art::mirror::ArtMethod, BacktraceMap)+70)
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #3 pc 002282af /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::_1::char_traits >&, BacktraceMap) const+154)
06-11 07:47:28.096 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #4 pc 0021825d /system/lib/libart.so (art::AbortState::DumpThread(std::_1::basic_ostream<char, std::1::char_traits >&, art::Thread)+24)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #5 pc 0021850d /system/lib/libart.so (art::AbortState::Dump(std::1::basic_ostream<char, std::1::char_traits >&)+436)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #6 pc 002186e1 /system/lib/libart.so (art::Runtime::Abort()+72)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #7 pc 000a65bb /system/lib/libart.so (art::LogMessage::~LogMessage()+1322)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #8 pc 000b02cb /system/lib/libart.so (art::JniAbort(char const
, char const
)+1078)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #9 pc 000b0825 /system/lib/libart.so (art::JniAbortF(char const
, char const
, ...)+60)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #10 pc 000b2caf /system/lib/libart.so (art::ScopedCheck::Check(bool, char const
, ...) (.constprop.129)+882)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #11 pc 000bb6b1 /system/lib/libart.so (art::CheckJNI::NewStringUTF(JNIEnv, char const
)+36)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #12 pc 00012b53 /system/lib/libjavacore.so (jobjectArray* toStringArray<VectorCounter, VectorGetter>(JNIEnv, VectorCounter, VectorGetter*)+62)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #13 pc 00012db3 /system/lib/libjavacore.so (???)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] native: #14 pc 00010b21 /data/dalvik-cache/arm/system@framework@boot.oat (Java_java_io_File_listImpl__Ljava_lang_String_2+100)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] at java.io.File.listImpl(Native method)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] at java.io.File.list(File.java:742)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] at java.io.File.listFiles(File.java:784)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] at com.github.developerpaul123.filepickerlibrary.FilePickerActivity$UpdateFilesTask.doInBackground(FilePickerActivity.java:674)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] at com.github.developerpaul123.filepickerlibrary.FilePickerActivity$UpdateFilesTask.doInBackground(FilePickerActivity.java:660)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] at android.os.AsyncTask$2.call(AsyncTask.java:292)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] at java.util.concurrent.FutureTask.run(FutureTask.java:237)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] at java.lang.Thread.run(Thread.java:818)
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295] Dumping all threads without appropriate locks held: thread list lock mutator lock
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/art: art/runtime/runtime.cc:295]
06-11 07:47:28.097 10295-10332/com.github.developerpaul123.filepickerlibrary A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 10332 (AsyncTask #1)

After that, I install sample app and got the same problem. I am using Android 5.1.1 with Sony Xperia Z.

@DeveloperPaul123
Copy link
Owner

This is very interesting. It seems that the AsyncTask is failing in the doInBackground() function when it is trying to get a list of the files in the current directory which is then used to update the UI. From the research I've done it seems that this may be due to the Android runtime thinking that the UI thread is hung so it tries to kill it. This could be due to the number of files within a folder.

Do you have any other devices that you can replicate this on that also have Android 5.1.1? I haven't been able to replicate this on any of my devices.

It might also be good to test if you can remove some files from the device and see if that makes a difference. In the meantime I'll try to look into it more.

@kienntk
Copy link
Author

kienntk commented Jun 12, 2016

I have tested on Android 6.0 and do not get this issue :(. Ah, I understand, it seems my device has any incorrect files which make library unable to load.

@DeveloperPaul123
Copy link
Owner

Interesting. Hmmm...Could you try removing any files that you think may be causing problems and then try again? Unfortunately it seems that this issue is unique to your device running 5.1.1.

@kienntk
Copy link
Author

kienntk commented Jun 13, 2016

Yeah, I see, this occur because of file in my device. How I check and do not get these incorrect file to display?

@DeveloperPaul123
Copy link
Owner

I'm not exactly sure. Are there any files on your device with exotic file extensions? Or do you have a lot of very large images?

@DeveloperPaul123 DeveloperPaul123 self-assigned this Jun 14, 2016
@DeveloperPaul123
Copy link
Owner

@kienntk Is this still an issue for you?

@kienntk
Copy link
Author

kienntk commented Dec 20, 2017

@DeveloperPaul123 : I have fixed my files and it's ok. Have some files look like virus on my device, so your library is unable to work with them. I deleted and everything is awesome. You've made a great material. Thank you so much.

@kienntk kienntk closed this as completed Dec 20, 2017
@DeveloperPaul123
Copy link
Owner

@kienntk Great glad you were able to resolve this although it's unfortunate you had a virus. Thanks!

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

No branches or pull requests

2 participants