Author Topic: Segementation Fault 11 on Mac running v1.4  (Read 3967 times)

0 Members and 1 Guest are viewing this topic.

Offline CBTJD

  • Newbie
  • Posts: 60
  • You're only as old as you feel. ...I'm screwed.
    • View Profile
Segementation Fault 11 on Mac running v1.4
« 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.
:@)
CBTJD: Coding BASIC Takes Judicious Dedication

FellippeHeitor

  • Guest
Re: Segementation Fault 11 on Mac running v1.4
« Reply #1 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?
« Last Edit: April 18, 2020, 05:40:16 pm by FellippeHeitor »

Offline CBTJD

  • Newbie
  • Posts: 60
  • You're only as old as you feel. ...I'm screwed.
    • View Profile
Re: Segementation Fault 11 on Mac running v1.4
« Reply #2 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!
CBTJD: Coding BASIC Takes Judicious Dedication

Offline CBTJD

  • Newbie
  • Posts: 60
  • You're only as old as you feel. ...I'm screwed.
    • View Profile
Re: Segementation Fault 11 on Mac running v1.4
« Reply #3 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!
CBTJD: Coding BASIC Takes Judicious Dedication

FellippeHeitor

  • Guest
Re: Segementation Fault 11 on Mac running v1.4
« Reply #4 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.

Offline CBTJD

  • Newbie
  • Posts: 60
  • You're only as old as you feel. ...I'm screwed.
    • View Profile
Re: Segementation Fault 11 on Mac running v1.4
« Reply #5 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.
CBTJD: Coding BASIC Takes Judicious Dedication

FellippeHeitor

  • Guest
Re: Segementation Fault 11 on Mac running v1.4
« Reply #6 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:

  [ You are not allowed to view this attachment ]  

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 anyway ;-)
« Last Edit: April 18, 2020, 07:07:25 pm by FellippeHeitor »

Offline CBTJD

  • Newbie
  • Posts: 60
  • You're only as old as you feel. ...I'm screwed.
    • View Profile
Re: Segementation Fault 11 on Mac running v1.4
« Reply #7 on: April 18, 2020, 07:34:27 pm »
That's awesome! Thank you. I'll do that.  :@)
CBTJD: Coding BASIC Takes Judicious Dedication

Offline CBTJD

  • Newbie
  • Posts: 60
  • You're only as old as you feel. ...I'm screwed.
    • View Profile
Re: Segementation Fault 11 on Mac running v1.4
« Reply #8 on: April 18, 2020, 07:52:37 pm »
Made the change and it did the trick! Thanks!
CBTJD: Coding BASIC Takes Judicious Dedication

FellippeHeitor

  • Guest
Re: Segementation Fault 11 on Mac running v1.4
« Reply #9 on: April 18, 2020, 08:04:27 pm »
My pleasure.