QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: CBTJD on April 18, 2020, 04:00:28 pm

Title: Segementation Fault 11 on Mac running v1.4
Post by: CBTJD on April 18, 2020, 04:00:28 pm
Hello All,

Occasionally, I am unable to run QB64 on the Mac. It just throws out a quick "Segmentation Fault 11" error and refuses to run. Any ideas?

Thanks.
:@)
Title: Re: Segementation Fault 11 on Mac running v1.4
Post by: FellippeHeitor on April 18, 2020, 05:27:38 pm
Up until v1.3 QB64 would occasionally throw a segfault error if there was an image in memory (like copied with Command+C from another program), but that was fixed in 1.4 (at least I don't get those anymore - running Catalina here). Is it random or do you think there are steps to reproduce it?
Title: Re: Segementation Fault 11 on Mac running v1.4
Post by: CBTJD on April 18, 2020, 06:28:31 pm
Up until v1.3 QB64 would occasionally throw a segfault error if there was an image in memory (like copied with Command+C from another program), but that was fixed in 1.4 (at least I don't get those anymore - running Catalina here). Is it random or do you think there are steps to reproduce it?
I haven't seen a pattern to reproduce yet. I thought I had seen some connection with running Firefox browser, but that didn't pan out. It doesn't help that my daily driver is running Sierra. I'll poke around with the clipboard. Thanks!
Title: Re: Segementation Fault 11 on Mac running v1.4
Post by: CBTJD on April 18, 2020, 06:30:40 pm
Hey! That did the trick. I cleared my clipboard and it started up right away.
Thanks again!
Title: Re: Segementation Fault 11 on Mac running v1.4
Post by: FellippeHeitor on April 18, 2020, 06:41:24 pm
dang... I'm glad it did it for you but I could swear id fixed it... Maybe it was in the current dev build. I'll check.
Title: Re: Segementation Fault 11 on Mac running v1.4
Post by: CBTJD on April 18, 2020, 06:59:58 pm
I am able to easily replicate it just by putting an image in the clipboard. Removing it fixes the error straight away.
Title: Re: Segementation Fault 11 on Mac running v1.4
Post by: FellippeHeitor on April 18, 2020, 07:06:05 pm
Nevermind, I'm happy again. v1.4 is indeed still plagued, as the patch was applied after it was released. It's the current dev build that's already fixed.

The fix is as simple as you can see below:

  [ This attachment cannot be displayed inline in 'Print Page' view ]  

If you want to give it a try, just change libqb.cpp as above and run ./setup_osx.command to generate a new qb64 binary. Or get the dev build (https://www.qb64.org/portal/development-build/) anyway ;-)
Title: Re: Segementation Fault 11 on Mac running v1.4
Post by: CBTJD on April 18, 2020, 07:34:27 pm
That's awesome! Thank you. I'll do that.  :@)
Title: Re: Segementation Fault 11 on Mac running v1.4
Post by: CBTJD on April 18, 2020, 07:52:37 pm
Made the change and it did the trick! Thanks!
Title: Re: Segementation Fault 11 on Mac running v1.4
Post by: FellippeHeitor on April 18, 2020, 08:04:27 pm
My pleasure.