Golly bugs
- EvinZL
- Posts: 889
- Joined: November 8th, 2018, 4:15 pm
- Location: A tungsten pool travelling towards the sun
- Contact:
Golly bugs
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.
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.
- ihatecorderships
- Posts: 309
- Joined: April 11th, 2021, 12:54 pm
- Location: Falls Church, VA
Re: Golly bugs
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.
Don't drink and drive, think and derive.
- ihatecorderships
- Posts: 309
- Joined: April 11th, 2021, 12:54 pm
- Location: Falls Church, VA
Re: Golly bugs
(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.
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.
Don't drink and drive, think and derive.
Re: Golly bugs
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:
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.
Code: Select all
import golly as g
g.putcells(g.parse("bo!"))
g.putcells(g.parse("ob!"), 0, 0, 1, 0, 0, 1, "copy")
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!
Re: Golly bugs
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:Freywa wrote: ↑September 20th, 2021, 9:08 amThe 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:Running this in an empty universe gives a pattern with 2 cells instead of the expected 1.Code: Select all
import golly as g g.putcells(g.parse("bo!")) g.putcells(g.parse("ob!"), 0, 0, 1, 0, 0, 1, "copy")
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")
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.
Re: Golly bugs
(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" ]]
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
Re: Golly bugs
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.
- LaundryPizza03
- Posts: 2425
- Joined: December 15th, 2017, 12:05 am
- Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"
Re: Golly bugs
Why did the dock icon for Golly 4.1 suddenly change from yellow to green?
Code: Select all
x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
Re: Golly bugs
Not sure. Maybe Big Sur automatically changes the icon color to help distinguish different versions of the same app.LaundryPizza03 wrote: ↑February 4th, 2022, 2:10 amWhy did the dock icon for Golly 4.1 suddenly change from yellow to green?
- LaundryPizza03
- Posts: 2425
- Joined: December 15th, 2017, 12:05 am
- Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"
Re: Golly bugs
No, it appeared suddenly well after I had opened it and went away when I restarted the computer (for unrelated reasons).Andrew wrote: ↑February 4th, 2022, 7:33 amNot sure. Maybe Big Sur automatically changes the icon color to help distinguish different versions of the same app.LaundryPizza03 wrote: ↑February 4th, 2022, 2:10 amWhy did the dock icon for Golly 4.1 suddenly change from yellow to green?
Code: Select all
x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
- LaundryPizza03
- Posts: 2425
- Joined: December 15th, 2017, 12:05 am
- Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"
Re: Golly bugs
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!
-
- Posts: 2200
- Joined: August 5th, 2016, 10:27 am
- Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
- Contact:
Re: Golly bugs
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
But the correct syntax is either
or the shorter
A quick scan suggests that this error appears in credits.html and refs.html.
Code: Select all
http://www.conwaylife.com/wiki/index.php?title=Main_Page
Code: Select all
https://conwaylife.com/w/index.php?title=Main_Page
Code: Select all
https://conwaylife.com/wiki/Main_Page
熠熠种花 - Glimmering Garden
Harvest Moon
2-engine p45 gliderless HWSS gun
Small p2070 glider gun
Forgive me if I withhold my enthusiasm.
Harvest Moon
2-engine p45 gliderless HWSS gun
Small p2070 glider gun
Forgive me if I withhold my enthusiasm.
Re: Golly bugs
Easy fix: turn that B0 rule into an alternating ruletable.LaundryPizza03 wrote: ↑April 2nd, 2022, 11:32 pmIs 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!
\sum_{n=1}^\infty H_n/n^2 = \zeta(3)
How much of current CA technology can I redevelop "on a desert island"?
How much of current CA technology can I redevelop "on a desert island"?
Golly bug?
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?
Re: Golly bug?
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.
Re: Golly bugs
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.
-
- Posts: 2200
- Joined: August 5th, 2016, 10:27 am
- Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
- Contact:
Re: Golly bugs
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".dvgrn wrote: ↑August 9th, 2020, 6:45 amThere 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?
The site can be reached in browser, but then none of the listed links reacts to clicking.
熠熠种花 - Glimmering Garden
Harvest Moon
2-engine p45 gliderless HWSS gun
Small p2070 glider gun
Forgive me if I withhold my enthusiasm.
Harvest Moon
2-engine p45 gliderless HWSS gun
Small p2070 glider gun
Forgive me if I withhold my enthusiasm.
- LaundryPizza03
- Posts: 2425
- Joined: December 15th, 2017, 12:05 am
- Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"
Re: Golly bugs
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:
- Create a B.py script that contains an easy to identify error on one line.
- Create an A.py script which calls the bugged function in B.py.
- Run A.py in Golly 4.1.
- Fix the error B.py.
- Rerun A.py in Golly 4.1.
- There should be an error message about the line that was just fixed, but with the corrected syntax.
Code: Select all
x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
Re: Golly bugs
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.LaundryPizza03 wrote: ↑August 3rd, 2022, 6:24 amI 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: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.
- Create a B.py script that contains an easy to identify error on one line.
- Create an A.py script which calls the bugged function in B.py.
- Run A.py in Golly 4.1.
- Fix the error B.py.
- Rerun A.py in Golly 4.1.
- There should be an error message about the line that was just fixed, but with the corrected syntax.
Re: Golly bugs
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.
Re: Golly bugs
See item #2 in Help > Python Scripting > Potential problems.LaundryPizza03 wrote: ↑August 3rd, 2022, 6:24 amI 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.
-
- Posts: 1482
- Joined: January 28th, 2022, 7:18 pm
- Location: Planet Z
Re: Golly bugs
I left golly running overnight and this is what happened:
Pasting and selecting have a white tint, you can’t scroll in or out, and left clicking doesn’t work.
Re: Golly bugs
Quit and restart. That usually works for everything in my experience.
Re: Golly bugs
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).AlbertArmStain wrote: ↑August 16th, 2022, 5:33 pmI left golly running overnight and this is what happened: ...
-
- Posts: 1482
- Joined: January 28th, 2022, 7:18 pm
- Location: Planet Z
Re: Golly bugs
Nope, still broken.
I’m using google, not Safari.Andrew wrote: ↑August 16th, 2022, 7:10 pmLooks 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).AlbertArmStain wrote: ↑August 16th, 2022, 5:33 pmI left golly running overnight and this is what happened: ...