Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

"Fatal Signal 11" after Document.GetPage(int) 9 years 1 month ago #8590

  • alexander.gustke
  • alexander.gustke's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 1
Hello everybody,

i've got the problem, that when i call
Document.GetPage(pageno)
(pageno >= 0 && pageno < Document.GetPageCount()) my app crashes with this message:
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

Please Log in or Create an account to join the conversation.

Last edit: by alexander.gustke.

"Fatal Signal 11" after Document.GetPage(int) 9 years 1 month ago #8591

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
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?

Please Log in or Create an account to join the conversation.

"Fatal Signal 11" after Document.GetPage(int) 9 years 1 month ago #8592

  • gtoldosProton
  • gtoldosProton's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
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.

Please Log in or Create an account to join the conversation.

"Fatal Signal 11" after Document.GetPage(int) 9 years 1 month ago #8593

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
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.

Please Log in or Create an account to join the conversation.

Last edit: by support.

"Fatal Signal 11" after Document.GetPage(int) 9 years 1 month ago #8601

  • alexander.gustke
  • alexander.gustke's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 1
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.
The following user(s) said Thank You: support

Please Log in or Create an account to join the conversation.

Last edit: by alexander.gustke.

"Fatal Signal 11" after Document.GetPage(int) 9 years 1 month ago #8602

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Thank you for your feedback.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum