Golly bugs

Has something gone haywire? Let us know about it!
Post Reply
User avatar
EvinZL
Posts: 597
Joined: November 8th, 2018, 4:15 pm
Location: A tungsten pool travelling towards the sun
Contact:

Golly bugs

Post by EvinZL » May 20th, 2021, 9:40 am

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: 276
Joined: April 11th, 2021, 12:54 pm
Location: Falls Church, VA

Re: Golly bugs

Post by ihatecorderships » May 20th, 2021, 10:11 am

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
Notable Discoveries: none as of yet :(

User avatar
ihatecorderships
Posts: 276
Joined: April 11th, 2021, 12:54 pm
Location: Falls Church, VA

Re: Golly bugs

Post by ihatecorderships » June 21st, 2021, 6:31 pm

(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
Notable Discoveries: none as of yet :(

User avatar
Freywa
Posts: 862
Joined: June 23rd, 2011, 3:20 am
Location: Singapore
Contact:

Re: Golly bugs

Post by Freywa » 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. 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: 8920
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Golly bugs

Post by dvgrn » September 20th, 2021, 4:46 pm

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: 241
Joined: August 28th, 2021, 2:38 pm
Location: California
Contact:

Re: Golly bugs

Post by Book » December 16th, 2021, 8:53 pm

(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" ]]

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

Re: Golly bugs

Post by dvgrn » December 16th, 2021, 9:49 pm

Book wrote:
December 16th, 2021, 8:53 pm
The 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: 1819
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: Golly bugs

Post by LaundryPizza03 » February 4th, 2022, 2:10 am

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 567 times

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia

The latest edition of new-gliders.db.txt and oscillators.db.txt have 35296 spaceships and 1451 oscillators from outer-totalistic rules. You are invited to help!

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

Re: Golly bugs

Post by Andrew » 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.

User avatar
LaundryPizza03
Posts: 1819
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: Golly bugs

Post by LaundryPizza03 » February 7th, 2022, 5:24 am

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

The latest edition of new-gliders.db.txt and oscillators.db.txt have 35296 spaceships and 1451 oscillators from outer-totalistic rules. You are invited to help!

User avatar
LaundryPizza03
Posts: 1819
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: Golly bugs

Post by LaundryPizza03 » 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!

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia

The latest edition of new-gliders.db.txt and oscillators.db.txt have 35296 spaceships and 1451 oscillators from outer-totalistic rules. You are invited to help!

User avatar
GUYTU6J
Posts: 1850
Joined: August 5th, 2016, 10:27 am
Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
Contact:

Re: Golly bugs

Post by GUYTU6J » May 8th, 2022, 11:47 pm

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.
Why do most natural OCA rules tend to get a diminishing span of interest and go into oblivion, like a lost civilization leaving little records for its beauty and power?

I have been focusing on this rule, now in industrial era:

熠熠种花 - Glimmering Garden

User avatar
pzq_alex
Posts: 403
Joined: May 1st, 2021, 9:00 pm
Location: in the life universe

Re: Golly bugs

Post by pzq_alex » May 8th, 2022, 11:54 pm

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.
Make b38s23/C1 great again!
https://catagolue.hatsya.com/census/b3a ... a4ity6c/C1
救救kench
Working on a spaceship search program…
Stop turning this forum into a place for politics. Please.

Code: Select all

x=4,y=3,rule=B3S2-i3-a4ciz5j6c8
bo$3o$ob2o!

legomiku
Posts: 1
Joined: May 12th, 2022, 7:28 pm

Golly bug?

Post by legomiku » 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?

User avatar
dani
Posts: 1154
Joined: October 27th, 2017, 3:43 pm
Location: Somewhere in a Sparse Life soup, forming into a giant space-clearing replicator.
Contact:

Re: Golly bug?

Post by dani » May 13th, 2022, 9:40 am

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.
i am danielle
#1 switch engine fan

User avatar
wirehead
Posts: 25
Joined: June 18th, 2022, 2:37 pm
Location: Somewhere else.
Contact:

Re: Golly bugs

Post by wirehead » June 18th, 2022, 2:57 pm

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.

Post Reply