Golly bugs

Has something gone haywire? Let us know about it!
Post Reply
User avatar
EvinZL
Posts: 1067
Joined: November 8th, 2018, 4:15 pm
Location: here

Golly bugs

Post by EvinZL »

Since there seems to be way too many golly bug threads, I decided to make a unified thread for golly bugs.

For me, If Golly's stored rule or whatever has the wrong case, then it refuses to open. I can't seem to wipe it either, the layer with that rule had rule changed, I saved a pattern in another rule, I closed that layer, I made a new layer in a different rule, did another rule change, but it still has the same stored rule. Due to Golly's layer limit, this makes me unable to do stuff.
User avatar
ihatecorderships
Posts: 309
Joined: April 11th, 2021, 12:54 pm
Location: Falls Church, VA

Re: Golly bugs

Post by ihatecorderships »

Renaming a rule of your own is sometimes buggy. For example, I name another OCA X, but then I delete the X name and add the name Y. It sometimes will still show the X name.
-- Kalan Warusa
Don't drink and drive, think and derive.
User avatar
ihatecorderships
Posts: 309
Joined: April 11th, 2021, 12:54 pm
Location: Falls Church, VA

Re: Golly bugs

Post by ihatecorderships »

(Double post cuz unrelated)

Why is switch engine ping pong in Life/Breeders and not the Hashlife folder? Catacryst, Gotts-dots and wedge grow are all there.
-- Kalan Warusa
Don't drink and drive, think and derive.
User avatar
Freywa
Posts: 878
Joined: June 23rd, 2011, 3:20 am
Location: Singapore
Contact:

Re: Golly bugs

Post by Freywa »

The putcells() Python command is broken with respect to its "copy" mode; specifying it does not change the paste behaviour from the default "or". To illustrate:

Code: Select all

import golly as g

g.putcells(g.parse("bo!"))
g.putcells(g.parse("ob!"), 0, 0, 1, 0, 0, 1, "copy")
Running this in an empty universe gives a pattern with 2 cells instead of the expected 1. putcells() should also take keyword arguments as per the documentation – g.putcells(clist, mode="copy") should work, for example.

The "and" mode of the same function is also broken: it doesn't do anything at all. There should be documentation about how the different paste modes work, especially with respect to multi-state rules (the "not" paste mode of putcells() is not available in the GUI, and does an ANDNOT function apparently).

There should also be "add" and "subtract" paste modes. If a is the cell state already there, b is the cell state pasted in and n is the number of states in the current rule, the cell state after the paste should be (a+b) mod n for add and (a-b) mod n for subtract. This would allow arbitrary regions to be replaced with arbitrary other regions.
Princess of Science, Parcly Taxel

Code: Select all

x = 31, y = 5, rule = B2-a/S12
3bo23bo$2obo4bo13bo4bob2o$3bo4bo13bo4bo$2bo4bobo11bobo4bo$2bo25bo!
User avatar
dvgrn
Moderator
Posts: 12022
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Golly bugs

Post by dvgrn »

Freywa wrote: September 20th, 2021, 9:08 am The putcells() Python command is broken with respect to its "copy" mode; specifying it does not change the paste behaviour from the default "or". To illustrate:

Code: Select all

import golly as g

g.putcells(g.parse("bo!"))
g.putcells(g.parse("ob!"), 0, 0, 1, 0, 0, 1, "copy")
Running this in an empty universe gives a pattern with 2 cells instead of the expected 1.
This is a common problem to run into, but it isn't quite true that "copy" has the same behavior as "or". The problem is more that the parse() command doesn't work the way you expect. If parse() by default produced a multistate list of every cell in the bounding box, listing the OFF cells as state 0 and the ON cells as state 1, then the "copy" command would do as you expect. For example:

Code: Select all

import golly as g

bo = [0,0,0,1,0,1,0]
ob = [0,0,1,1,0,0,0]
# ob! overlays bo! in "copy" mode, leaving just one cell
g.putcells(bo)
g.putcells(ob, 0, 0, 1, 0, 0, 1, "copy")

# ob! adds a cell to bo! in "or" mode, producing two cells
g.putcells(bo,0,10)
g.putcells(ob, 0, 10, 1, 0, 0, 1, "or")
It's generally not workable to include a whole pile of useless state-0 cells in a cell list, just because they happen to be in the bounding box -- so that is not the way parse() works. parse() only makes a two-state list of the ON cells described by the parsed RLE. This is a lot faster and takes much less memory, and 99% of the time it's exactly what is needed for scripting purposes.

This means that if you want to use the "copy" option, you'll have to build your own state-0 cell list, or a function that makes the multistate list of state-0 cells and state-1 cells for you.
Book
Posts: 385
Joined: August 28th, 2021, 2:38 pm
Location: California
Contact:

Re: Golly bugs

Post by Book »

(pardon me if this has already been reported)

The Golly "basic rakes" pattern has a bug, per LifeViewer. Discovered this while scrolling through thumbnails in PatMan 1.2 (a feature not yet released).

The last label has an extra parameter. I believe it should read:

#C [[ LABEL 60 20 7 "sample higher-period forerake (p240),\nbased on a repeatably ignited blinker fuse" ]]
Phil Bookman
User avatar
dvgrn
Moderator
Posts: 12022
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Golly bugs

Post by dvgrn »

Book wrote: December 16th, 2021, 8:53 pmThe Golly "basic rakes" pattern has a bug, per LifeViewer... The last label has an extra parameter.
Oops, looks like we missed that one -- LifeViewer label syntax underwent some simplification a while back, so that's notation that used to work but now isn't needed. Chris Rowett actually noticed the problem back on July 25th, but I forgot to fix it for Golly 4.1. The change is checked in now.
User avatar
LaundryPizza03
Posts: 2623
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: Golly bugs

Post by LaundryPizza03 »

Why did the dock icon for Golly 4.1 suddenly change from yellow to green?
Left is Golly 3.4, right is Golly 4.1. I also have Golly 4.0.1, but it's not in my dock. macOS Big Sur 11.6.
Left is Golly 3.4, right is Golly 4.1. I also have Golly 4.0.1, but it's not in my dock. macOS Big Sur 11.6.
weird_golly_icons.png (36.72 KiB) Viewed 24962 times

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia
User avatar
Andrew
Moderator
Posts: 1038
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly bugs

Post by Andrew »

LaundryPizza03 wrote: February 4th, 2022, 2:10 am Why did the dock icon for Golly 4.1 suddenly change from yellow to green?
Not sure. Maybe Big Sur automatically changes the icon color to help distinguish different versions of the same app.
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife
User avatar
LaundryPizza03
Posts: 2623
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: Golly bugs

Post by LaundryPizza03 »

Andrew wrote: February 4th, 2022, 7:33 am
LaundryPizza03 wrote: February 4th, 2022, 2:10 am Why did the dock icon for Golly 4.1 suddenly change from yellow to green?
Not sure. Maybe Big Sur automatically changes the icon color to help distinguish different versions of the same app.
No, it appeared suddenly well after I had opened it and went away when I restarted the computer (for unrelated reasons).

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia
User avatar
LaundryPizza03
Posts: 2623
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: Golly bugs

Post by LaundryPizza03 »

Is this the correct place to report bugs in Golly scripts? oscar.lua misidentifies the period and speed of B0 patterns where an odd phase has the same shape as an even phase. For example, this 2c/6d is misidentified as co:

Code: Select all

x = 3, y = 2, rule = B012c3acinq4inqwyz5ejny6i78/S01e2aek4ceijty5eny6eik
obo$2bo!

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia
GUYTU6J
Posts: 2200
Joined: August 5th, 2016, 10:27 am
Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
Contact:

Re: Golly bugs

Post by GUYTU6J »

Last year a new LifeWiki page named "index.php" was created for no clear reason, and was soon deleted (see User talk:JsfasdF248). Just now I found the unexplained reason: it was linked to in Golly's Help documents, where the URL is written as

Code: Select all

http://www.conwaylife.com/wiki/index.php?title=Main_Page
But the correct syntax is either

Code: Select all

https://conwaylife.com/w/index.php?title=Main_Page
or the shorter

Code: Select all

https://conwaylife.com/wiki/Main_Page
A quick scan suggests that this error appears in credits.html and refs.html.
User avatar
pzq_alex
Posts: 801
Joined: May 1st, 2021, 9:00 pm
Location: tell me if you know

Re: Golly bugs

Post by pzq_alex »

LaundryPizza03 wrote: April 2nd, 2022, 11:32 pm Is this the correct place to report bugs in Golly scripts? oscar.lua misidentifies the period and speed of B0 patterns where an odd phase has the same shape as an even phase. For example, this 2c/6d is misidentified as co:

Code: Select all

x = 3, y = 2, rule = B012c3acinq4inqwyz5ejny6i78/S01e2aek4ceijty5eny6eik
obo$2bo!
Easy fix: turn that B0 rule into an alternating ruletable.
\sum_{n=1}^\infty H_n/n^2 = \zeta(3)

How much of current CA technology can I redevelop "on a desert island"?
legomiku
Posts: 1
Joined: May 12th, 2022, 7:28 pm

Golly bug?

Post by legomiku »

Hi there, I'm quite a golly noob, and I'm really fascinated with Cellular autonoma. I have a pretty good pc, yet it stutters sometimes. This does not happen with the computers at my high school. Am i supposed to set a priority for golly to fix this?
dani
Posts: 1221
Joined: October 27th, 2017, 3:43 pm

Re: Golly bug?

Post by dani »

legomiku wrote: May 12th, 2022, 7:31 pm Hi there, I'm quite a golly noob, and I'm really fascinated with Cellular autonoma. I have a pretty good pc, yet it stutters sometimes. This does not happen with the computers at my high school. Am i supposed to set a priority for golly to fix this?
It might be your refresh rate. My monitor is 144Hz and the population count stutters a lot. I'm not sure how to fix it.
User avatar
wirehead
Posts: 304
Joined: June 18th, 2022, 2:37 pm
Location: /dev/full
Contact:

Re: Golly bugs

Post by wirehead »

How do I compile Golly 3.4 on a Raspberry Pi (32-bit)? I tried downloading the Linux tar file from Sourceforge, but apparently that was compiled for x86, not ARM. 3.3 has a few bugs, but that is the latest version in the apt repos. I am a Python3/Javascript guy and know nothing about C++ or compiling stuff.
Langton's ant: Can't play the drums, can be taught.
GUYTU6J
Posts: 2200
Joined: August 5th, 2016, 10:27 am
Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
Contact:

Re: Golly bugs

Post by GUYTU6J »

dvgrn wrote: August 9th, 2020, 6:45 am There has been a working link to "Gliders in Life-Like Cellular Automata" in Golly's Online Archives for a while now, I think since May or so. I haven't checked, but I'm guessing Andrew Trevorrow didn't know where to get an updated database from, so most likely he just used a version that David Eppstein supplied. Time to improve on that, maybe?
Is it down for improvement now? It gives a "301 Moved Permanently" message and points to this link, but when trying to access that site in Golly, an error pops up: "Unable to open requested HTML document: file://https/gliders/golly_index.html".

The site can be reached in browser, but then none of the listed links reacts to clicking.
User avatar
LaundryPizza03
Posts: 2623
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: Golly bugs

Post by LaundryPizza03 »

I discovered in 4.1 on macOS 11.6 that if a Python script calls a function in a separate script, Golly will not recompile the separate script if it is updated and the script which calls it is rerun. Steps to reproduce:
  1. Create a B.py script that contains an easy to identify error on one line.
  2. Create an A.py script which calls the bugged function in B.py.
  3. Run A.py in Golly 4.1.
  4. Fix the error B.py.
  5. Rerun A.py in Golly 4.1.
  6. There should be an error message about the line that was just fixed, but with the corrected syntax.
The only remedy is to quit and restart Golly. I do not know if this happens in Lua as well, or if it also happens in macOS 12.

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia
User avatar
wirehead
Posts: 304
Joined: June 18th, 2022, 2:37 pm
Location: /dev/full
Contact:

Re: Golly bugs

Post by wirehead »

LaundryPizza03 wrote: August 3rd, 2022, 6:24 am I discovered in 4.1 on macOS 11.6 that if a Python script calls a function in a separate script, Golly will not recompile the separate script if it is updated and the script which calls it is rerun. Steps to reproduce:
  1. Create a B.py script that contains an easy to identify error on one line.
  2. Create an A.py script which calls the bugged function in B.py.
  3. Run A.py in Golly 4.1.
  4. Fix the error B.py.
  5. Rerun A.py in Golly 4.1.
  6. There should be an error message about the line that was just fixed, but with the corrected syntax.
The only remedy is to quit and restart Golly. I do not know if this happens in Lua as well, or if it also happens in macOS 12.
For the inexperienced programmer that I am, this sounds more like a bug in Python than a bug in Golly. What Python version are you using? I am using 3.10.5 and have never noticed a bug like this.
Langton's ant: Can't play the drums, can be taught.
User avatar
Andrew
Moderator
Posts: 1038
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly bugs

Post by Andrew »

GUYTU6J wrote: August 3rd, 2022, 5:51 am Is it down for improvement now? It gives a "301 Moved Permanently" message and points to this link, but when trying to access that site in Golly, an error pops up: "Unable to open requested HTML document: file://https/gliders/golly_index.html".
Works fine in Golly 4.2b1 (which now supports https links when accessing the online archives). You must be using an older version of Golly.
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife
User avatar
Andrew
Moderator
Posts: 1038
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly bugs

Post by Andrew »

LaundryPizza03 wrote: August 3rd, 2022, 6:24 am I discovered in 4.1 on macOS 11.6 that if a Python script calls a function in a separate script, Golly will not recompile the separate script if it is updated and the script which calls it is rerun.
See item #2 in Help > Python Scripting > Potential problems.
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife
User avatar
Anivec
Posts: 1977
Joined: January 28th, 2022, 7:18 pm
Location: In 4.3 miles, take a right onto Exit 54

Re: Golly bugs

Post by Anivec »

I left golly running overnight and this is what happened:
Screen Shot 2022-08-16 at 5.32.56 PM.png
Screen Shot 2022-08-16 at 5.32.56 PM.png (545.61 KiB) Viewed 24263 times
Pasting and selecting have a white tint, you can’t scroll in or out, and left clicking doesn’t work.
User avatar
wirehead
Posts: 304
Joined: June 18th, 2022, 2:37 pm
Location: /dev/full
Contact:

Re: Golly bugs

Post by wirehead »

AlbertArmStain wrote: August 16th, 2022, 5:33 pm I left golly running overnight.
Quit and restart. That usually works for everything in my experience.
Langton's ant: Can't play the drums, can be taught.
User avatar
Andrew
Moderator
Posts: 1038
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly bugs

Post by Andrew »

AlbertArmStain wrote: August 16th, 2022, 5:33 pm I left golly running overnight and this is what happened: ...
Looks like you used an experimental build of web Golly 4.2 we're currently testing. Unfortunately it has a few bugs so I've reverted to the old version. You'll probably need to force your browser to reload the page. In Safari hold down the option key while opening its View menu (you might also need to select Develop > Empty Caches).
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife
User avatar
Anivec
Posts: 1977
Joined: January 28th, 2022, 7:18 pm
Location: In 4.3 miles, take a right onto Exit 54

Re: Golly bugs

Post by Anivec »

wirehead wrote: August 16th, 2022, 6:34 pm
AlbertArmStain wrote: August 16th, 2022, 5:33 pm I left golly running overnight.
Quit and restart. That usually works for everything in my experience.
Nope, still broken.
Andrew wrote: August 16th, 2022, 7:10 pm
AlbertArmStain wrote: August 16th, 2022, 5:33 pm I left golly running overnight and this is what happened: ...
Looks like you used an experimental build of web Golly 4.2 we're currently testing. Unfortunately it has a few bugs so I've reverted to the old version. You'll probably need to force your browser to reload the page. In Safari hold down the option key while opening its View menu (you might also need to select Develop > Empty Caches).
I’m using google, not Safari.
Post Reply