-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 20217 #12
Comments
Please attach output from logcat, I will be able to analyze it |
The pdfView become blank, the logcat is solely: After few second the app crash. |
I'm getting this sort of crash (and seldom SIGBUS or just UI freeze and SIGABRT) only if I'm trying to display two PDF files simultaneously. Some fatal signals:
Addresses differ and may be 0xffffffff, 0x00000000, and others. |
hey @Miha-x64 i am doing the same functionality as you and getting a similar issue A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xffffffc0 in tid 4027 (AsyncTask #2)
@barteksc any help would be very helpful Thanks ;) |
Similar problem here, this occasionally happens, seemingly randomly:
|
@Miha-x64 @hashtaag-vinay-sasalatti I know the reason of problem when using few |
@barteksc thanks for the library and the reply , i have 20 single pdfs which are download one by one from server , so i need to show these 20 files as they are downloaded one below the other , so my solution was i used JoanZapata/android-pdfview in a view pager for 20 items , so it did not have any crash but there was too much of rendering time required so i dropped the approach and tried this lib instead in view pager and its crashing so now i am in a mess ;P just want to ask , if i can supply multiple pdfs to the pdfview so it shows them one below other , or can u help me with what view i need to use from the lib to render only one pdf in a recycler view or list view item :) if not possible can u lead me to any approach where i can find a solution for this problem because i am unable to find help anywhere from more than a month . any help will be appreciated @barteksc @JeanChristophePalyart @Miha-x64 @niekvse Thanks |
@barteksc, so, now we've got two problems — Segmentation Violation and SONAME that clashes with the system one? |
@Miha-x64 If you use Pdfium provided by PdfiumAndroid, few |
@barteksc, I'm getting
in my own SurfaceView with this dirty method: public synchronized void fromFile(File file) {
try {
FileDescriptor fd = new FileInputStream(file).getFD();
if (!fd.valid()) {
Log.e("PdfView", "FileDescriptor is invalid.");
return;
}
PdfDocument doc = pdfiumCore.newDocument(fd);
Surface sur = getHolder().getSurface();
if (sur == null) {
Log.e("PdfView", "Surface is null");
return;
}
pdfiumCore.openPage(doc, 0);
pdfiumCore.renderPage(doc, sur, 0, 0, 0, getWidth(), getHeight()); // here
} catch (IOException e) {
throw new RuntimeException(e);
}
} on KitKat.
in logs, but on first run I don't, so your libraries are getting loaded. |
I have got the same crash Fatal signal 11 (SIGSEGV), code 1, fault addr 0xffffffffffffff in tid 1327 (AsyncTask #3) |
@Miha-x64 @hashtaag-vinay-sasalatti Please check version 1.1.2, it fixes using multiple |
@barteksc Thanks for that , i will check and update you asap Thanks , |
@barteksc I changed to version 1.1.2 and I still have problem with the this particular file. With others pdf files it ok. (I'm testing on Elephone P60000 Pro Android 5.1, AP22) |
@JeanChristophePalyart Unfortunately I cannot reproduce this issue on any of my three devices (4.0.3, 4.2.1 and 5.0.1), documents opens without any problem. Could you try opening this file using built-in |
@barteksc Thank you .I have update to 1.1.2,there is no problem in my nexus 5,but still have the problem in 魅蓝note2 |
@macjay So, now we have serious problem. I cannot reproduce and therefore debug this issue. Please check if my previous post (with |
@barteksc, thank you for your fix. |
@Miha-x64 Not good. It looks like pdfium itself may have some strange bugs... |
@barteksc Thanks for the new update it fixed my issues, good going ;P Cheers |
@hashtaag-vinay-sasalatti Yay, finally it works for someone ;) |
yes it worked for me and m one happy guy now , haha ;P hey @barteksc i have observed one problem now (just want to improve) OnLoadCompleteListener is not giving me a correct callback after load complete (OR) maybe its displaying a white blank screen before the pdf is drawn , now here i need some inputs please and one more thing is since i have 20 views in view pager and when i scroll back from 3rd to 1st position, again the pdf loads with a blink , how can i change it such that its already there .. if any updates on my query please hit me back , but btw thats one awesome lib there . Cheers , |
@hashtaag-vinay-sasalatti OnLoadCompleteListener is called after PDF file is loaded and ready to render on view, so you see white page for a while. |
@barteksc Ok thanks
it won't load pdf sometimes , am i using it wrong ? sorry m troubling u many times :) |
@barteksc The document attached to my first post works with pdf Renderer. Therefor this one his limited to Lollipop. To open "pdfSample.pdf" I'm doing
EDIT: EDIT 2: |
@barteksc, with new version of the library there is no crash anymore. Thank you! :) 👍 |
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x94 in tid 11169 (package_name)
How can I fix it? Help I try to find answer on the Internent but I didn't find. Help me to fix this problem, it is on Android studio |
Trace your steps back.... |
Sounds like a fragment issue.... |
07-31 01:08:32.486 28994-28994/io.indoorlocation.navisens.demoapp A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 28994 (avisens.demoapp) |
Check last version guys. It fixed! |
Did you check manifest file
it should be true to fix
|
I got a Fatal error with the attached pdf, do you know why?
pdfSample.pdf
The text was updated successfully, but these errors were encountered: