Golly bugs

Has something gone haywire? Let us know about it!
User avatar
Katrina
Posts: 161
Joined: September 26th, 2024, 3:23 am

Re: Golly bugs

Post by Katrina »

Golly really likes to save 50+MB temporary pattern files whenever I run an infinite growth simulation for long enough. Is there a way to prevent this from happening so I don't get slowdowns?
Attachments
bad_golly.png
bad_golly.png (23.25 KiB) Viewed 4893 times
User avatar
Andrew
Moderator
Posts: 1038
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly bugs

Post by Andrew »

Sylvani wrote: December 1st, 2025, 1:34 pm Golly really likes to save 50+MB temporary pattern files whenever I run an infinite growth simulation for long enough. Is there a way to prevent this from happening so I don't get slowdowns?
For the particular rule in your example, use the HashLife algorithm rather than QuickLife. QuickLife saves temporary patterns in .rle files whereas HashLife saves .mc files which are typically much smaller and faster to write.

If you don't want Golly to save *any* temporary patterns then tick the "Disable Undo/Redo" option in the Edit menu. It's then your responsibility to save any patterns you don't want to lose.
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife
User avatar
b-engine
Posts: 3762
Joined: October 26th, 2023, 4:11 am
Location: Somewhere on where Earth At
Contact:

Re: Golly bugs

Post by b-engine »

I get this error whenever I try to open Golly 5.0, even on Xorg.

Code: Select all

./golly: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
User avatar
Andrew
Moderator
Posts: 1038
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly bugs

Post by Andrew »

b-engine wrote: December 3rd, 2025, 12:44 am I get this error whenever I try to open Golly 5.0, even on Xorg. ...
Sorry, but it seems very difficult (impossible?) to create a binary that will run on all flavors of Linux. You'll have to download the source code and follow the instructions in docs/Build.html. EDIT: Or maybe just install that missing library.
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: September 30th, 2025, 11:31 pm
LaundryPizza03 wrote: September 5th, 2025, 3:22 pm On macOS 15.6.1 with Apple M2, Golly occasionally freezes while opening the menu bar.
I'm pretty sure this is a bug in macOS. I've seen the same issue happen occasionally in Terminal.app. Never seen it happen in Golly so far. Let me know if you manage to find steps to reproduce the problem in Golly.
In v4.3, it sometimes happens while attempting to open the rule dialog.

EDIT: Also v 5.0 under similar circumstances. Is macOS 26 known to experience this issue?

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: January 7th, 2026, 1:34 am EDIT: Also v 5.0 under similar circumstances. Is macOS 26 known to experience this issue?
What is macOS 26?
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife
User avatar
b-engine
Posts: 3762
Joined: October 26th, 2023, 4:11 am
Location: Somewhere on where Earth At
Contact:

Re: Golly bugs

Post by b-engine »

Andrew wrote: January 8th, 2026, 8:41 pm What is macOS 26?
The newest version of macOS, and Apple changed the version to sync with the year.
The entire UI switched to "Liquid Glass" design language, but we won't have Liquid Glass on Golly anyway.
User avatar
Mr. T
Posts: 714
Joined: March 24th, 2016, 2:55 pm
Location: Bavaria (local group)

Re: Golly bugs

Post by Mr. T »

Linux-User here. I want suggest, that Golly only in X11 works (on my computer). All my tries with Wayland shipwrecked.I am able to open the load-window ONE time, Then all of Golly freezes. For Information: I use NixOS. Golly starts in Arch-Linux using Distrobox. What went wrong? Any Idea?
Christoph Reinthaler (Who has this weird c/10-fetish)
User avatar
Andrew
Moderator
Posts: 1038
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly bugs

Post by Andrew »

Mr. T wrote: January 18th, 2026, 12:38 pm Linux-User here. I want suggest, that Golly only in X11 works (on my computer).
Sorry, but we dropped support for X11 many years ago (too many bugs and limitations in the wxWidgets X11 libs). Golly 1.4 was the last release that had an X11 build (available on sourceforge if you wanted to try it).

To run (or build) Golly on Linux you need GTK2 installed. I suspect to get it running on NixOS you'll need to download the source tar ball and follow the instructions in docs/Build.html.
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife
User avatar
Mr. T
Posts: 714
Joined: March 24th, 2016, 2:55 pm
Location: Bavaria (local group)

Re: Golly bugs

Post by Mr. T »

Andrew wrote: January 18th, 2026, 4:34 pm
Mr. T wrote: January 18th, 2026, 12:38 pm Linux-User here. I want suggest, that Golly only in X11 works (on my computer).
Sorry, but we dropped support for X11 many years ago (too many bugs and limitations in the wxWidgets X11 libs). Golly 1.4 was the last release that had an X11 build (available on sourceforge if you wanted to try it).

To run (or build) Golly on Linux you need GTK2 installed. I suspect to get it running on NixOS you'll need to download the source tar ball and follow the instructions in docs/Build.html.
The Problem lies at NixOS, I think. I tried COSMIC and KDE Plasma in its Wayland-form. Both fail! Only Plasma X11 works. Problem: NixOS has Wayland as default. To smuggle X11 in, you have to define the X-Server in detail. In one of its X11-options NixOS must present the correct gtk-library. Nor gtk as package nor Xwayland work.
Christoph Reinthaler (Who has this weird c/10-fetish)
User avatar
Aleph
Posts: 2275
Joined: February 18th, 2021, 11:18 am

Re: Golly bugs

Post by Aleph »

Andrew wrote: January 18th, 2026, 4:34 pm To run (or build) Golly on Linux you need GTK2 installed. I suspect to get it running on NixOS you'll need to download the source tar ball and follow the instructions in docs/Build.html.
Is there any plan to support GTK3? I believe that a lot of GNU+Linux distributions use GTK3 instead of GTK2 these days.
User avatar
Andrew
Moderator
Posts: 1038
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly bugs

Post by Andrew »

wwei47 wrote: January 24th, 2026, 10:28 pm Is there any plan to support GTK3?
It should be possible to build a GTK3 version of Golly using the current source code, but I wasn't able to get it working for some reason. I first installed the GTK3 headers and libraries via "sudo apt install libgtk-3-dev". Then I rebuilt the wxWidgets libs using these commands:

Code: Select all

cd ~/Downloads/wxWidgets-3.2.9
mkdir build-gtk
cd build-gtk
../configure --with-gtk=3 --disable-shared --enable-unicode --with-opengl
make
sudo make install
sudo ldconfig
Then did a cd to Golly's gui-wx folder, followed by a "make clean" and make. Everything seemed to compile and link ok but when I tried to run golly it failed to start up. All I got was a "Terminated" message. I don't know enough about Linux to debug what has gone wrong. Maybe my Mint 20 system is too old? I'd be interested to see if you or any other Linux users can use the above steps to successfully build a GTK3 version.
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife
User avatar
qqd
Posts: 611
Joined: September 10th, 2022, 4:24 pm
Location: In a superposition of multiple different locations.

Re: Golly bugs

Post by qqd »

While experimenting with rule files, I stumbled upon this minor but weird bug when defining a variable with a comma (which would normally be considered a syntax error) in a rule file for Golly's RuleLoader algorithm to use (note that this has only been tested on 64-bit Windows 11):
Firstly, copy the following code and paste it in Golly (alternatively you can use 'Run Clipboard'):

Code: Select all

@RULE OneD4stateAdjustableRakesBugDemo

This is a 4-state 1D rule having adjustable rakes using 3 on states in a sea of off states
It may be possible to modify the rule to make it more interesting without changing the number of states

state 0 - black  - off
state 1 - yellow - still life
state 2 - red    - left moving photon
state 3 - green  - right moving photon

@TABLE
n_states:4
neighborhood:oneDimensional
symmetries:none
var any,0={0}
any,0,0,2,2
0,1,2,3
0,2,2,3
0,3,0,3
0,3,1,3
0,3,2,1
1,2,0,0
1,0,3,0
1,0,1,2
1,1,0,3
1,3,0,3
2,0,0,0
2,0,3,0
2,0,1,3
2,2,0,1
2,2,2,0
2,3,0,3
3,0,0,0
3,1,1,2
3,2,0,1
3,3,0,0
3,0,1,2
3,0,2,0
3,0,3,1

@NAMES

0 empty
1 dot
2 left photon
3 right photon

@COLORS

0   0   0   0
1 255 255   0
2 255   0   0
3   0 255   0
I was unable to isolate this bug in spite of several attempts to do so, so I am posting the full rule table that I modified rather than a simplified version. Strangely, Golly does not throw an error that the rule file is invalid for the above table with "any,0", but does throw an error for the simplified rules I attempted to create.
Second, paste this sample pattern to Golly and run the pattern in the new rule above (WARNING: FLASHING LIGHTS):

Code: Select all

x = 1, y = 1, rule = OneD4stateAdjustableRakesBugDemo
A!
The rule defined above uses a oneDimensional neighborhood. Yet it explodes in both the horizontal and vertical directions. Moreover, the rate at which it explodes increases in an exponential manner.
Since this has only occurred in the rule mentioned above, it might not be a very concerning bug, but it is worth investigating.
Currently writing a utility in Lua that may be helpful for faster manual pattern manipulation.
User avatar
Andrew
Moderator
Posts: 1038
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly bugs

Post by Andrew »

qqd wrote: March 1st, 2026, 2:26 pm While experimenting with rule files, I stumbled upon this minor but weird bug when defining a variable with a comma ...
I've fixed that particular bug for the next release, and improved the error reporting. It's still possible to make syntax errors that won't be detected but I'm reluctant to make too many changes to the parsing code (not written by me). Thanks for the report.
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife
User avatar
SuperSupermario24
Posts: 127
Joined: July 22nd, 2014, 12:59 pm
Location: Within the infinite expanses of the Life universe

Re: Golly bugs

Post by SuperSupermario24 »

qqd wrote: March 1st, 2026, 2:26 pm The rule defined above uses a oneDimensional neighborhood. Yet it explodes in both the horizontal and vertical directions. Moreover, the rate at which it explodes increases in an exponential manner.
Since this has only occurred in the rule mentioned above, it might not be a very concerning bug, but it is worth investigating.
I think this is just how any rule table works if it has a B0 transition, they're not really supported very well.

Code: Select all

7b2o2bo4bobo$obob2o5bo2bo4bobo$2bo4bo2b2o3bo4b2o$2o2bobo3bob2obo3bo$ob
ob2obo3bobobob3obo$4bo6b2o3bobo2bo$2o2bo2b2o11bo!
hotdogPi
Moderator
Posts: 2257
Joined: August 12th, 2020, 8:22 pm

Re: Golly bugs

Post by hotdogPi »

SuperSupermario24 wrote: March 14th, 2026, 7:01 am
qqd wrote: March 1st, 2026, 2:26 pm The rule defined above uses a oneDimensional neighborhood. Yet it explodes in both the horizontal and vertical directions. Moreover, the rate at which it explodes increases in an exponential manner.
Since this has only occurred in the rule mentioned above, it might not be a very concerning bug, but it is worth investigating.
I think this is just how any rule table works if it has a B0 transition, they're not really supported very well.
No legitimate rule should have the bounding box increase more than linearly (per direction) or quadratically (total). Exponential growth sounds like a HashLife error.
User:HotdogPi/My discoveries

Periods discovered:

All evens ≤128 except 52,58,78,82,92,94,98,104,118,122

5-15,㉕-㉛,㉟㊺,51,63,65,73,75
1㊳㊵㊹㊼㊽,54,56,72,74,80,90,92
217,240,300,486,576

Guns: 20,21,32,54,55,57,114,117,124,126
SKOPs: 32,74,76,102,196
User avatar
Katrina
Posts: 161
Joined: September 26th, 2024, 3:23 am

Re: Golly bugs

Post by Katrina »

Headerless extended RLEs (like of the form 9.3A2.$9.3A2.$8.4A2.$A7.B5A$A6.A2CBA2.$7.AC3A2.$6.3A.2A2.$6.BADBA3.$8.A5.!) do not get pasted properly, instead treated like a 1-dimensional bitmap with dots as 0s and everything else as 1.
Crossposted from Discord.
User avatar
Katrina
Posts: 161
Joined: September 26th, 2024, 3:23 am

Re: Golly bugs

Post by Katrina »

The rule "R1,C3,S2-5,B6,8,NW111101111,110" and similar rules are completely broken, acting as if they were somehow B0 Generations rules.
All the cells within the bounding box of the pattern within the unbounded universe are flipped when running a pattern in the rule, as well. It does behave somewhat more normally in bounded universes, but still with strobing.
Attachments
R1,C3,S2,B4,8,NW111101111,110
R1,C3,S2,B4,8,NW111101111,110
normal_golly_behavior.gif (1.62 MiB) Viewed 3956 times
R1,C3,S2-5,B6,8,NW111101111,110
R1,C3,S2-5,B6,8,NW111101111,110
normal_golly_behavior2.gif (446.48 KiB) Viewed 3956 times
User avatar
I6_I6
Posts: 999
Joined: July 26th, 2025, 8:44 pm
Location: Here, there, somewhere, anywhere, everywhere.
Contact:

Re: Golly bugs

Post by I6_I6 »

600th post!!
This is also a problem in LifeViewer.
In @TABLE in a .rule file, if I name a variable "var", and use it at the start of a transition line, it doesn't behave as expected.
For example, this rule should be B2/S012345678:

Code: Select all

x = 0, y = 0, rule = test
!
@RULE test
@TABLE
n_states:2
neighborhood:Moore
symmetries:permute
var var={0,1}
var,1,1,0,0,0,0,0,0,1
But it behaves like B/S012345678 instead.
Simply renaming the variable to something else fixes this:

Code: Select all

x = 0, y = 0, rule = test
!
@RULE test
@TABLE
n_states:2
neighborhood:Moore
symmetries:permute
var a={0,1}
a,1,1,0,0,0,0,0,0,1
I think it's because Golly treats any line in @TABLE that starts with "var" as a variable definition line. I don't know why anyone would name a variable "var", but I think it should still be fixed.

Code: Select all

#C [[ THEME Golly ]]
x = 27, y = 15, rule = LifeHistory
8.A$A6.A.A$3A4.BA2B.B2D$3.A4.2B.2B2DB$2.2A2.3B.6B2.3B$2.20B$4.19B$4.2B
C10BD4B$4.2B2C10BD4B$4.B2C11B2D3B$4.13B2D4B$5.12BD3B.B2A$6.13B3.BA.A$
6.3B.B3.B10.A$25.2A!
RuleEdit: A .rule file editing tool
User avatar
rowett
Moderator
Posts: 4586
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Golly bugs

Post by rowett »

Sylvani wrote: March 28th, 2026, 12:26 am The rule "R1,C3,S2-5,B6,8,NW111101111,110" and similar rules are completely broken, acting as if they were somehow B0 Generations rules.
Thanks for the report.

The algo shouldn't allow a non-zero dead state weight (i.e. the first digit of ,110) since this leads to B0-type behaviour which is not supported.

I'll fix it in due course.
User avatar
Mr. T
Posts: 714
Joined: March 24th, 2016, 2:55 pm
Location: Bavaria (local group)

Re: Golly bugs

Post by Mr. T »

Linux

Problems with Wayland still exist. This time the system is: Cachy Os with plasma + Wayland. Same crab as with NixOS (Plasma and Cosmic). If you want load a pattern into Golly, Golly freezes and you can get it from the system only with some form of kill.

Thence here my appeal. Test your Linux-system and submit the result. Perhaps the bug is solvable, whether in Golly or Wayland or it is a me-problen.

Thank you for your cooperation.
Christoph Reinthaler (Who has this weird c/10-fetish)
Antonin Duda
Posts: 168
Joined: October 19th, 2023, 10:23 am
Location: 404 not found

Re: Golly bugs

Post by Antonin Duda »

I don't know if this is the fault of golly, or python itself, but file paths containing characters not within UTF-8 aren't read properly.
In case you're wondering, the folder with the question mark character is named "Antonín", which my local account name my laptop vendor set up.
Attachments
Snímek obrazovky 2026-06-28 153607.png
Snímek obrazovky 2026-06-28 153607.png (11.38 KiB) Viewed 250 times
hotdogPi
Moderator
Posts: 2257
Joined: August 12th, 2020, 8:22 pm

Re: Golly bugs

Post by hotdogPi »

In hex rules, LifeHistory gray cells can still kill cells that are adjacent in Moore but not hexagonal.
User:HotdogPi/My discoveries

Periods discovered:

All evens ≤128 except 52,58,78,82,92,94,98,104,118,122

5-15,㉕-㉛,㉟㊺,51,63,65,73,75
1㊳㊵㊹㊼㊽,54,56,72,74,80,90,92
217,240,300,486,576

Guns: 20,21,32,54,55,57,114,117,124,126
SKOPs: 32,74,76,102,196
aengmore
Posts: 28
Joined: June 24th, 2026, 11:11 pm

Re: Golly bugs

Post by aengmore »

Seems Windows Golly cannot run properly in Winlator (a Windows emulator on Android). A dialog box says “Failed to create a temporary file name (error 267: The directory name is invalid.)” and the display area is completely black, rendering no grid, no cells, no graphic.

Winlator: https://github.com/brunodev85/winlator

Android Golly lacks so many functions compared with the desktop version :| So I try to use the Windows version on my phone, and it failed :cry:
Failed to create a temporary file name (error 267: 目录名无效。)
Failed to create a temporary file name (error 267: 目录名无效。)
Screenshot_2026-06-30-10-07-55-65_b6022cb7d1a61f21e4fe914c8728a54c.jpg (169.42 KiB) Viewed 215 times
User avatar
NNlk05
Posts: 576
Joined: January 14th, 2026, 8:42 pm
Location: Exploring in the Jungle of the INT Rulespace
Contact:

Re: Golly bugs

Post by NNlk05 »

aengmore wrote: June 29th, 2026, 10:12 pm *snip*
Android Golly lacks so many functions compared with the desktop version :| So I try to use the Windows version on my phone, and it failed :cry:
*snip*
Since Android is a version of Linux, maybe running the Linux version will be smoother.
Feci quod potui, faciant meliora potentes.

Code: Select all

x = 10, y = 3, rule = B34twz/S23
b2o4b2o$obo4bobo$2bo4bo!
[[ AUTOSTART AUTOHIDEGUI TRACK 0 -47/270 ZOOM 4 GPS 45 STEP 3 THEME BOOK ]]
https://nnlk05.github.io

=3
Post Reply