GeoDaCenter / GeoDaCenter/geoda

Save to PNG fails with large wxBitmap (high dpi file)

Open
#2,282 0 comments 0 reactions 1 assignee View on GitHub

@lixun910 is already working on this.

Since Nov 23, 2020.

Dominant language
C++
Stars
804
Forks
161
Avg merge
9d 21h
Merged PRs (30d)
2

Description

When saving a map to a large png file on a computer with limited memory (e.g. testing machine has 2GB memory, png file 21564x15855 at 300 dpi), wxWidget will raise assertion "could not allocate data for image" and crash GeoDa.

A check should be added to prevent a crash from wxWidget.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.