Golly 4.0b1

For general discussion about Conway's Game of Life.
User avatar
Andrew
Moderator
Posts: 919
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Golly 4.0b1

Post by Andrew » October 16th, 2020, 5:37 pm

EDIT: Golly 4.0 is now available from sourceforge:

https://sourceforge.net/projects/golly/ ... golly-4.0/
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
bubblegum
Posts: 959
Joined: August 25th, 2019, 11:59 pm
Location: click here to do nothing

Re: Golly 4.0b1

Post by bubblegum » October 16th, 2020, 6:42 pm

Why is there an "untitled" option in the Layers menu?
Each day is a hidden opportunity, a frozen waterfall that's waiting to be realised, and one that I'll probably be ignoring
sonata wrote:
July 2nd, 2020, 8:33 pm
conwaylife signatures are amazing[citation needed]
anything

User avatar
Andrew
Moderator
Posts: 919
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly 4.0b1

Post by Andrew » October 16th, 2020, 7:09 pm

bubblegum wrote:
October 16th, 2020, 6:42 pm
Why is there an "untitled" option in the Layers menu?
It's not an option. Just the name of the current layer. If there are multiple layers then it's useful to see a tick mark next to the current layer.
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
Saka
Posts: 3627
Joined: June 19th, 2015, 8:50 pm
Location: Indonesia
Contact:

Re: Golly 4.0b1

Post by Saka » October 17th, 2020, 12:36 am

Every time I click a link in the mini-help-menu in the set rule dialog, I get an error like this

Code: Select all

[Window Title]
Golly Error

[Content]
Unable to open requested HTML document: file:///D:/Saka/golly-4.0b1-win-64bit/golly-4.0b1-win-64bit/%23gaussian

[OK]
However they work fine in the main help menu (when accessed from the Help button in the top bar)

The "links" that set the rules are also fine.

User avatar
Andrew
Moderator
Posts: 919
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly 4.0b1

Post by Andrew » October 17th, 2020, 3:03 am

Saka wrote:
October 17th, 2020, 12:36 am
Every time I click a link in the mini-help-menu in the set rule dialog, I get an error like this ...
Yep, I see the same error, but only on Windows (the links work fine on Mac and Linux). I'll look into it but if it's caused by a bug in wxMSW then it might be hard to fix. Thanks for the report!

EDIT: Managed to fix the bug. Should be no problems in the final 4.0 release.
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
Saka
Posts: 3627
Joined: June 19th, 2015, 8:50 pm
Location: Indonesia
Contact:

Re: Golly 4.0b1

Post by Saka » October 18th, 2020, 12:47 am

Golly 4.0b1 "randomly" crashes for me. It seems to happen when switching between layers and then quickly doing an operation such as copying or pasting, however I haven't been able to reproduce it 100% reliably. User "bubblegum" has also confirmed this.

I am on Windows 10 version 1903.

User avatar
Andrew
Moderator
Posts: 919
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly 4.0b1

Post by Andrew » October 18th, 2020, 2:10 am

Saka wrote:
October 18th, 2020, 12:47 am
Golly 4.0b1 "randomly" crashes for me. It seems to happen when switching between layers and then quickly doing an operation such as copying or pasting, however I haven't been able to reproduce it 100% reliably. User "bubblegum" has also confirmed this.
Hmm, that's rather puzzling, given that the code for layer switching and copy/paste hasn't changed from Golly 3.4 to 4.0b1. Did you also get those random crashes when using 3.4?

To be able to fix this bug I'll need to reproduce the bug on my Win10 system. Even if not 100% reproducible, you'll need to provide me with more detailed information and steps:

Which algorithm and rule are you using?
Does it happen more often after loading a particular pattern?
(Preferably one of Golly's supplied patterns so I can easily load the same one.)

How exactly are you switching layers?
By selecting a layer at the bottom of the Layer menu?
Or by clicking a button in the layer bar?
Or by clicking in a tiled layer?

How exactly are you doing the copy or paste?
By selecting Copy/Paste from the Edit Menu?
Or by typing ctrl-C or ctrl-V (or just V)?

I'll need that level of detail to have any hope of fixing the bug.
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
Saka
Posts: 3627
Joined: June 19th, 2015, 8:50 pm
Location: Indonesia
Contact:

Re: Golly 4.0b1

Post by Saka » October 18th, 2020, 2:24 am

Andrew wrote:
October 18th, 2020, 2:10 am

Which algorithm and rule are you using?
Does it happen more often after loading a particular pattern?
(Preferably one of Golly's supplied patterns so I can easily load the same one.)

How exactly are you switching layers?
By selecting a layer at the bottom of the Layer menu?
Or by clicking a button in the layer bar?
Or by clicking in a tiled layer?

How exactly are you doing the copy or paste?
By selecting Copy/Paste from the Edit Menu?
Or by typing ctrl-C or ctrl-V (or just V)?

I'll need that level of detail to have any hope of fixing the bug.
Alright,
This random crashing has happened 4 times so far.

Which algorithm and rule are you using?
I was using the HROT algorithm at least 3 out of the 4 times, I forgot what I was using the first time it happened.
Does it happen more often after loading a particular pattern?
No, I was doing various things when the crash happened.

How exactly are you switching layers?
Clicking the layer tabs at the layer bar.

How exactly are you doing the copy or paste?
With the keyboard shortcuts, Ctrl+C and Ctrl+V

I'm not sure about what bubblegum did exactly to reproduce the bug.

I'm not sure if this is helpful, but Golly freezes for a bit before closing itself when this happens.

EDIT: I did not get these in Golly 3.4

User avatar
Andrew
Moderator
Posts: 919
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly 4.0b1

Post by Andrew » October 18th, 2020, 2:58 am

Saka wrote:
October 18th, 2020, 2:24 am
I was using the HROT algorithm at least 3 out of the 4 times...
Ok, I assume you meant you were using a HROT rule in the Larger than Life algorithm.
It would help to know *exactly* which HROT rule you're using.

HROT support is new in 4.0b1, so there might be a bug in that new code that is causing the crash. To rule that out, please quit Golly, restart and switch to an old algo like Generations and see if you can do similar layer switching etc to reproduce the crash. If not then it's strong evidence the bug is somewhere in the HROT code.
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
Saka
Posts: 3627
Joined: June 19th, 2015, 8:50 pm
Location: Indonesia
Contact:

Re: Golly 4.0b1

Post by Saka » October 18th, 2020, 3:14 am

Yes, I meant using an HROT rule with the Larger Than Life algorithm. I do not remember the exact ones now, but one of them was an "N2" neighborhood range 10 rule.

I haven't been able to reproduce the crash again, strangely (both in the LTL algorithm with an HROT rule and other algorithms), but I will get back to you if I do.

Also, another detail I just noticed: Every time golly 4.0b1 closes by crashing and I reopen it, it asks me for the path to the python DLL when I try to run a script. However if Golly closes normally it does not ask again for the path to the Python DLL.

I recently also just experienced 2 crashes. The first happened when I switched a layer via the layers bar. This time I wasn't doing any fast copying / actions. The second was when I ran a python script to test it. However, when I ran the same python script again, it did not crash and give a normal python error message.

My python version is 3.9, 64-bit. In the second crash I ran the script from the clipboard. Unfortunately I'm unable to give the exact python script that caused the crash.

User avatar
rowett
Moderator
Posts: 3776
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Golly 4.0b1

Post by rowett » October 18th, 2020, 5:19 am

Thanks for the information. The crash should now be fixed.

User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Re: Golly 4.0b1

Post by Scorbie » October 18th, 2020, 6:38 am

Wow, already done when I was offline, kudos!

User avatar
Andrew
Moderator
Posts: 919
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly 4.0b1

Post by Andrew » October 18th, 2020, 8:10 pm

I've updated the links in the top post to point to builds for Golly 4.0b2. This version should fix the HROT-related crashes.

I'm still worried by Saka's report of crashes when running Python scripts so if anybody can reproduce those crashes in 4.0b2 please let us know ASAP.
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
Saka
Posts: 3627
Joined: June 19th, 2015, 8:50 pm
Location: Indonesia
Contact:

Re: Golly 4.0b1

Post by Saka » October 18th, 2020, 10:46 pm

2 more crashes just happened in Golly 4.0b2 in similar circumstances. I forgot the second one but I can give a detailed account of the second.

I was in the set rule dialog. The mini-help-menu was open. The algorithm was set to Larger than Life, and I had this in the "Enter a new rule:" textbox
R2,C0,S,B,W9090901110910190111090909

Then I clicked between "B" and "," with my cursor and typed "3" on my keyboard, then Golly froze and quickly closed itself. I had 4 untitled layers open, all on an HROT rule.

The first crash was very similar and also happened while I was typing in the rule textbox. I am not sure how to reproduce it yet.

EDIT:
I've found it. The rulestring above is a bit wrong. Pasting this into the "Enter a new rule:" textbox crashes golly after a while (try running a pattern with the rule if it doesnt crash immediately):

Code: Select all

R2,C0,S2,3,18,27,B3,27,NW09000900090001010100090100010900010101000900090009

User avatar
bubblegum
Posts: 959
Joined: August 25th, 2019, 11:59 pm
Location: click here to do nothing

Re: Golly 4.0b1

Post by bubblegum » October 19th, 2020, 12:15 am

The Super algorithm's description should mention that state-6 cells kill neighbouring live cells, not just block them.
Each day is a hidden opportunity, a frozen waterfall that's waiting to be realised, and one that I'll probably be ignoring
sonata wrote:
July 2nd, 2020, 8:33 pm
conwaylife signatures are amazing[citation needed]
anything

User avatar
dvgrn
Moderator
Posts: 10612
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Golly 4.0b1

Post by dvgrn » October 19th, 2020, 12:50 am

bubblegum wrote:
October 19th, 2020, 12:15 am
The Super algorithm's description should mention that state-6 cells kill neighbouring live cells, not just block them.
Done, thanks!

User avatar
rowett
Moderator
Posts: 3776
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Golly 4.0b1

Post by rowett » October 19th, 2020, 1:12 am

Saka wrote:
October 18th, 2020, 10:46 pm
I've found it. The rulestring above is a bit wrong. Pasting this into the "Enter a new rule:" textbox crashes golly after a while (try running a pattern with the rule if it doesnt crash immediately):

Code: Select all

R2,C0,S2,3,18,27,B3,27,NW09000900090001010100090100010900010101000900090009
Fixed, thanks for the report!

wildmyron
Posts: 1542
Joined: August 9th, 2013, 12:45 am
Location: Western Australia

Re: Golly 4.0b1

Post by wildmyron » October 21st, 2020, 2:01 am

Thank you to Andrew, rowett, Scorbie, dvgrn, and everyone else involved for their great work on the next Golly release.

I'm trying out v4 on my MacBook at the moment and I've been unable to get Python working with HomeBrew's Python3. I'm using Golly v4.0b2 on MacOS Catalina v10.15.6 and HomeBrew's python3 v3.8.5. The path to the .dylib is "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/Python", but when I put this path in, the "Could not load the Python library" dialog just pops up again. There's also a link to this lib which is "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib" but using that instead doesn't help. I've also tried escaping the @ character but that doesn't seem to help either. Terminal reports my locale as "en_AU.UTF-8".

I don't really understand much about shared libs on MacOS, but stumbling about I came across some info about dylibs needing to have the correct information about where they are located. According to otool these don't match up for the Python dylib:

Code: Select all

$ pwd
/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8
$ file Python
Python: Mach-O 64-bit dynamically linked shared library x86_64
$ otool -L Python
Python:
	/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/Python (compatibility version 3.8.0, current version 3.8.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1675.129.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)
Stumbling further about I came across some information about install_name_tool and tried the following:

Code: Select all

$ install_name_tool -change /usr/local/Cellar/python\@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/Python /usr/local/opt/python\@3.8/Frameworks/Python.framework/Versions/3.8/Python /Users/<username>/golly-4.0b2-mac/Golly.app/Contents/MacOS/Golly
But that didn't seem to help/do anything at all. At this point I feel like I'm making things worse.
The 5S project (Smallest Spaceships Supporting Specific Speeds) is now maintained by AforAmpere. The latest collection is hosted on GitHub and contains well over 1,000,000 spaceships.

Semi-active here - recovering from a severe case of LWTDS.

User avatar
_zM
Posts: 186
Joined: June 26th, 2016, 3:07 pm

Re: Golly 4.0b1

Post by _zM » October 22nd, 2020, 1:24 pm

After updating my graphics drivers both Golly 3.4 and Golly 4.0b2 crash on startup with the following error messages:

4.0b2:

Code: Select all

The program 'golly' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 39834 error_code 2 request_code 151 minor_code 24)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
3.4:

Code: Select all

The program 'golly' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 39036 error_code 2 request_code 151 minor_code 24)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
moment

User avatar
Andrew
Moderator
Posts: 919
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly 4.0b1

Post by Andrew » October 22nd, 2020, 9:39 pm

wildmyron wrote:
October 21st, 2020, 2:01 am
I'm trying out v4 on my MacBook at the moment and I've been unable to get Python working with HomeBrew's Python3. ...
Try entering the path reported by otool:

Code: Select all

/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/Python
If that fails then I guess there is some incompatibility in the way the HomeBrew version was built (maybe they didn't use the Python stable ABI). I think you'll have better luck downloading the official 3.9 installer for macOS from python.org. That's what I used on my Catalina system. The path you'll need to enter is:

Code: Select all

/Library/Frameworks/Python.framework/Versions/3.9/Python
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
Andrew
Moderator
Posts: 919
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly 4.0b1

Post by Andrew » October 22nd, 2020, 9:46 pm

_zM wrote:
October 22nd, 2020, 1:24 pm
After updating my graphics drivers both Golly 3.4 and Golly 4.0b2 crash on startup with the following error messages: ...
Sorry, but I've really got no idea why you would get those errors. It looks like you're using Linux, so which flavor and version?

All I can suggest is reverting to your old drivers, or if that's not possible try building Golly using the src tar ball (follow the instructions in docs/Build.html).
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
Andrew
Moderator
Posts: 919
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly 4.0b1

Post by Andrew » October 23rd, 2020, 6:52 am

I've updated the links in the top post to point to builds for Golly 4.0b3. This fixes the crash Saka reported as well as a couple of other minor bugs. There are now some examples of Super algo patterns in Patterns/Super.

I'm hoping this will be the last beta release of Golly 4.0.
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
_zM
Posts: 186
Joined: June 26th, 2016, 3:07 pm

Re: Golly 4.0b1

Post by _zM » October 25th, 2020, 6:35 pm

_zM wrote:
October 22nd, 2020, 1:24 pm
After updating my graphics drivers both Golly 3.4 and Golly 4.0b2 crash on startup with the following error messages:
[snip...]
Update on this: 3.4 works again, as does 4.0b2 (which makes me assume that there was a bug in the updated driver that was quickly noted and fixed)
moment

User avatar
Andrew
Moderator
Posts: 919
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly 4.0b1

Post by Andrew » October 25th, 2020, 8:22 pm

_zM wrote:
October 25th, 2020, 6:35 pm
Update on this: 3.4 works again, as does 4.0b2 ...
Good to hear -- thanks for letting us know.
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Re: Golly 4.0b1

Post by Scorbie » October 27th, 2020, 9:36 pm

Re: Graphics drivers
It seems to work after rebooting (if you didn't after you updated your graphics driver)
Just for future reference, I had that one too.

Post Reply