Skip to content

bisonw-darwin: Fix seg fault on window close - #3366

Merged
JoeGruffins merged 1 commit into
decred:masterfrom
martonp:darwinAppFix
Oct 15, 2025
Merged

bisonw-darwin: Fix seg fault on window close#3366
JoeGruffins merged 1 commit into
decred:masterfrom
martonp:darwinAppFix

Conversation

@martonp

@martonp martonp commented Oct 8, 2025

Copy link
Copy Markdown
Collaborator

Fixes a segmentation fault that occurs when web views are destroyed. Apperantly some memory is corrupted causing the seg fault. Web views are no longer destroyed, just hidden and reopened.

@JoeGruffins JoeGruffins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working well for me.

While you are here can you do a couple things? The install script isn't watching arguments like it should. If I build with TARGETS=darwin/arm64 ./pkg-darwin.sh it should only build the arm binary but it builds both. I had made a change for this locally before but I've lost it, it's a small change.

Also can you add a note in the README the go version used must be 1.24.8 or lower atm and the reason why?

Also, the README says you can do ./pkg/pkg-darwin.sh but you can't because you have to be in the ./pkg dir because it does some ../ thing

@martonp
martonp marked this pull request as ready for review October 10, 2025 15:04
@JoeGruffins

Copy link
Copy Markdown
Member

@martonp Do you want to put something in the readme about the mac go version?

@JoeGruffins

Copy link
Copy Markdown
Member

This still doesn't seem to work from the parent directory:

$ TARGETS=darwin/arm64 ./pkg/pkg-darwin.sh
./pkg/pkg-darwin.sh: line 87: pushd: ../../../webserver/site: No such file or directory

Fixes a segmentation fault that occurs when web views are destroyed.
Apperantly some memory is corrupted causing the seg fault. Web views
are no longer destroyed, just hidden and reopened.
@JoeGruffins
JoeGruffins merged commit 9559bf9 into decred:master Oct 15, 2025
5 checks passed
martonp added a commit to martonp/dcrdex that referenced this pull request Oct 15, 2025
Fixes a segmentation fault that occurs when web views are destroyed.
Apperantly some memory is corrupted causing the seg fault. Web views
are no longer destroyed, just hidden and reopened.
buck54321 pushed a commit that referenced this pull request Oct 17, 2025
Fixes a segmentation fault that occurs when web views are destroyed.
Apperantly some memory is corrupted causing the seg fault. Web views
are no longer destroyed, just hidden and reopened.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants