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

Crash when exporting document - likely heap memory corruption #1723

Open
adamwulf opened this issue Dec 28, 2016 · 0 comments
Open

Crash when exporting document - likely heap memory corruption #1723

adamwulf opened this issue Dec 28, 2016 · 0 comments
Labels
Milestone

Comments

@adamwulf
Copy link
Owner

This bug is sometimes difficult to reproduce, but at other times is extremely consistent. It seems to depend on the number of documents that the user has in their Loose Leaf, and also may depend on the content of the exported document.

To repro (rough steps):

  1. Import moderately long PDF (at least 20 pages) about 10 times so that at least 10 documents exist
  2. Export a document that has > 20 pages

The error message will be some variation of "cannot realloc pointer that not allocated" or "attempting to free pointer that was not allocated with malloc"

It seems to me that the pointer in the error message is a red herring, and what's really happening is the heap is getting corrupted, which is messing up a pointer that's in use elsewhere in the app. The stack trace is not consistent, and often appears in plist read/write during page state loading and unloading.

@adamwulf adamwulf added the bug label Dec 28, 2016
@adamwulf adamwulf added this to the v3.1.0 milestone Dec 28, 2016
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

1 participant