Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

"Fatal Signal 11" after Document.GetPage(int)

More
11 years 1 month ago - 11 years 1 month ago #8590 by alexander.gustke
Hello everybody,

i've got the problem, that when i call
Code:
Document.GetPage(pageno)
(pageno >= 0 && pageno < Document.GetPageCount()) my app crashes with this message:
Code:
A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x0000001c (code=1), thread 6396

The error is not reproducible for a single pdf - it happens from time to time.

There are another topics related to the same error message, but non of them happened by a call to GetPage().

Does anybody have suggestions?

Thanks, Alex
Last edit: 11 years 1 month ago by alexander.gustke.
More
11 years 1 month ago #8591 by support
Dear Alexander, may you include some more details about your code?
Information you're giving are really poor and we can't do good evaluation on that.

Some questions:
Are you experiencing the issue within the demo project too?
Are you experiencing the issue with your own pdf file? May you provide us some?
More
11 years 1 month ago #8592 by gtoldosProton
I also get those in several places. Both in iOS and Android. It comes from a segmentation faults, as long as I know (or think to know). It also happens from time to time, and not always under the same context. And it rises from different places of the lib. Not with GetPage... though... yet.
More
11 years 1 month ago - 11 years 1 month ago #8593 by support
There are only two reasons I could think about:
- some uncommon datas in your PDF file: I invite you to open a trouble ticket about bug and send us a sample file
- some wrong code in your source: let's us get some more example about your own code

Are you experiencing the same within the demo app?
If so I suggest you to start from the first step.

The only doubt is about the randomic way crashes are happening.
Last edit: 11 years 1 month ago by support.
More
11 years 3 weeks ago - 11 years 3 weeks ago #8601 by alexander.gustke
I figured out the source of the crash: i opened the same page in a Document instance twice (in different theads).

Solution: Don't open the same page twice... - resolves the crashes in my app.
Last edit: 11 years 3 weeks ago by alexander.gustke.
More
11 years 3 weeks ago #8602 by support
Thank you for your feedback.
Time to create page: 0.435 seconds
Powered by Kunena Forum