Leela

Discussion of chess software programming and technical issues.

Moderators: Harvey Williamson, Dann Corbit, hgm

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
phhnguyen
Posts: 865
Joined: Wed Apr 21, 2010 2:58 am
Location: Australia
Full name: Nguyen Hong Pham
Contact:

Re: Leela

Post by phhnguyen » Fri Dec 06, 2019 2:23 pm

I may understand your issue. Look like you attempted to run Banksia (the console app) with Lc0. Sorry to make you ambiguous since there are two different Banksia apps. Now instead of one we have 3 apps involving ;)

Let me explain:

- Leela Chess Zero (Lc0) is a console (Command Line Interface - CLI) chess engine. It runs without any graphics. If you are not a chess developer you should not play directly with it since command lines for it (a UCI protocol engine) are usually very long (and boring). Instead, a normal user should use a chess GUI to play with it.

As I said in an above post, you should run Lc0 directly for the first time only right after downloading, mainly to give it and its libraries permissions to run (to run, go to lc0 folder and click on file "lc0")

- Banksia (download from github.com) is a console app too. The purpose of that app is to help users make tournaments between chess engines but not human players. Don't use that app if you want to play vs Lc0 as a human

- Banksia GUI (Banksia + Graphical User Interface) is a chess GUI. It is what you need to vs Lc0.

Steps:

1) Download and run BanksiaGUI
- Download BanksiaGUI (temporary download page: https://banksiagui.com/preview-versions/)
- From Finder, go to download folder, click on the download zip file to unzip it. You will see the file "BanksiaGui.app"
- Control-click (click when holding Control key) to that app to popup a dialog -> click button Open to allow the app running

You should see the bellow screen of Banksia GUI:
Image

2) Integrate Lc0 to BankisiaGUI
- open menu File->Preferences to open Settings Dialog->Engines tab
- Click + button (button with image of plus) and follow its instruction to add Lc0

3) Create a game to vs Lc0
- open menu File -> Game setup. Select the first box as Human and Lc0 for the second one -> OK
Now you can play white side vs Lc0 black side

Hope it helps :)
https://banksiagui.com
A freeware chess GUI, based on opensource Banksia - the chess tournament manager

smcracraft
Posts: 717
Joined: Wed Mar 08, 2006 7:08 pm
Location: Orange County California
Full name: Stuart Cracraft
Contact:

Re: Leela

Post by smcracraft » Sat Dec 14, 2019 4:07 pm

Thanks - the Banksia GUI for playing against lc0 works perfectly on Catalina.

You are to be congratulated for having built this and hats off to you.

smcracraft
Posts: 717
Joined: Wed Mar 08, 2006 7:08 pm
Location: Orange County California
Full name: Stuart Cracraft
Contact:

Re: Leela

Post by smcracraft » Sat Dec 14, 2019 5:05 pm

Bad news.

BanksiaGUI with lc0 crashed after I played e4, lc0 played e5.

Here's the dump...

Process: BanksiaGui [971]
Path: /private/var/folders/*/BanksiaGui.app/Contents/MacOS/BanksiaGui
Identifier: BanksiaGui
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: BanksiaGui [971]
User ID: 501

Date/Time: 2019-12-14 08:26:32.279 -0800
OS Version: Mac OS X 10.15.1 (19B88)
Report Version: 12
Bridge OS Version: 3.0 (14Y906)
Anonymous UUID: F2D41196-2284-E454-CC3E-4EE3897D7BEE


Time Awake Since Boot: 4300 seconds

System Integrity Protection: enabled

Crashed Thread: 1

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_MEMORY_ERROR at 0x0000000101d371c0
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Bus error: 10
Termination Reason: Namespace SIGNAL, Code 0xa
Terminating Process: exc handler [971]

VM Regions Near 0x101d371c0:
--> mapped file 0000000101c40000-0000000102cf1000 [ 16.7M] r-x/r-x SM=COW Object_id=1c8525b9
mapped file 0000000102cf1000-0000000102d12000 [ 132K] rw-/rw- SM=COW Object_id=40c313b9

Thread 0:
0 ??? 0x00007fff63a4c166 0 + 140734865129830
1 ??? 0x00007fff63a4c6cc 0 + 140734865131212
2 ??? 0x00007fff2c5c336b 0 + 140733937628011
3 ??? 0x00007fff2c5c2907 0 + 140733937625351
4 ??? 0x00007fff2c5c1fe3 0 + 140733937623011
5 ??? 0x00007fff2b14967d 0 + 140733916157565
6 ??? 0x00007fff2b1493bd 0 + 140733916156861
7 ??? 0x00007fff2b149147 0 + 140733916156231
8 ??? 0x00007fff297ce864 0 + 140733889439844
9 ??? 0x00007fff297cd5d4 0 + 140733889435092
10 ??? 0x00007fff297c7d76 0 + 140733889412470
11 ??? 0x0000000105da0ccb 0 + 4393143499
12 ??? 0x0000000103d4150f 0 + 4359197967
13 ??? 0x0000000103d46452 0 + 4359218258
14 ??? 0x0000000101c59bde 0 + 4324695006
15 ??? 0x00007fff639032e5 0 + 140734863782629

Thread 1 Crashed:
0 ??? 0x0000000101d371c0 0 + 4325601728
1 ??? 0x0000000101d36e5d 0 + 4325600861
2 ??? 0x00007fff63b0fd36 0 + 140734865931574
3 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 2:
0 ??? 0x00007fff63a4f916 0 + 140734865144086
1 ??? 0x00007fff60a3381a 0 + 140734814697498
2 ??? 0x0000000101d36fbd 0 + 4325601213
3 ??? 0x0000000101d36e5d 0 + 4325600861
4 ??? 0x00007fff63b0fd36 0 + 140734865931574
5 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 3:: Qt bearer thread
0 ??? 0x00007fff63a545be 0 + 140734865163710
1 ??? 0x0000000103d9d897 0 + 4359575703
2 ??? 0x0000000103d4150f 0 + 4359197967
3 ??? 0x0000000103b7e0fc 0 + 4357349628
4 ??? 0x0000000103b7f073 0 + 4357353587
5 ??? 0x00007fff63b0fd36 0 + 140734865931574
6 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 4:: com.apple.NSEventThread
0 ??? 0x00007fff63a4c166 0 + 140734865129830
1 ??? 0x00007fff63a4c6cc 0 + 140734865131212
2 ??? 0x00007fff2c5c336b 0 + 140733937628011
3 ??? 0x00007fff2c5c2907 0 + 140733937625351
4 ??? 0x00007fff2c5c1fe3 0 + 140733937623011
5 ??? 0x00007fff297d5dba 0 + 140733889469882
6 ??? 0x00007fff63b0fd36 0 + 140734865931574
7 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 5:
0 ??? 0x00007fff63a514a2 0 + 140734865151138
1 ??? 0x0000000101d4d44a 0 + 4325692490
2 ??? 0x00007fff63b0fd36 0 + 140734865931574
3 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 6:
0 ??? 0x00007fff63a545be 0 + 140734865163710
1 ??? 0x00007fff63b0fd36 0 + 140734865931574
2 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 7:: AMCP Logging Spool
0 ??? 0x00007fff63a4c1a2 0 + 140734865129890
1 ??? 0x00007fff5fb02ec6 0 + 140734798769862
2 ??? 0x00007fff5fafe442 0 + 140734798750786
3 ??? 0x00007fff5fb01a14 0 + 140734798764564
4 ??? 0x00007fff5fb01b64 0 + 140734798764900
5 ??? 0x00007fff63b0fd36 0 + 140734865931574
6 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 8:
0 ??? 0x00007fff63a4c1a2 0 + 140734865129890
1 ??? 0x00007fff5fb02ec6 0 + 140734798769862
2 ??? 0x00007fff5fafe442 0 + 140734798750786
3 ??? 0x00007fff5fb01a14 0 + 140734798764564
4 ??? 0x00007fff5fb01b64 0 + 140734798764900
5 ??? 0x00007fff63b0fd36 0 + 140734865931574
6 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 9:: com.apple.coreaudio.AQClient
0 ??? 0x00007fff63a4c166 0 + 140734865129830
1 ??? 0x00007fff63a4c6cc 0 + 140734865131212
2 ??? 0x00007fff2c5c336b 0 + 140733937628011
3 ??? 0x00007fff2c5c2907 0 + 140733937625351
4 ??? 0x00007fff2c5c1fe3 0 + 140733937623011
5 ??? 0x00007fff2a8f852a 0 + 140733907436842
6 ??? 0x00007fff60188f5d 0 + 140734805610333
7 ??? 0x00007fff63b0fd36 0 + 140734865931574
8 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 10:: com.apple.coremedia.audioqueue.source
0 ??? 0x00007fff63a4f916 0 + 140734865144086
1 ??? 0x00007fff2d7d7418 0 + 140733956584472
2 ??? 0x00007fff2d7c4b00 0 + 140733956508416
3 ??? 0x00007fff3132e29e 0 + 140734018806430
4 ??? 0x00007fff2d7c1e38 0 + 140733956496952
5 ??? 0x00007fff63b0fd36 0 + 140734865931574
6 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 11:: com.apple.coremedia.audiomentor
0 ??? 0x00007fff63a4f916 0 + 140734865144086
1 ??? 0x00007fff2d7d7418 0 + 140733956584472
2 ??? 0x00007fff2d7c4b00 0 + 140733956508416
3 ??? 0x00007fff314058c2 0 + 140734019688642
4 ??? 0x00007fff2d7c1e38 0 + 140733956496952
5 ??? 0x00007fff63b0fd36 0 + 140734865931574
6 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 12:: AQConverterThread
0 ??? 0x00007fff63a4f916 0 + 140734865144086
1 ??? 0x00007fff601a9208 0 + 140734805742088
2 ??? 0x00007fff2a91cbf3 0 + 140733907586035
3 ??? 0x00007fff60188f5d 0 + 140734805610333
4 ??? 0x00007fff63b0fd36 0 + 140734865931574
5 ??? 0x00007fff63b0c58f 0 + 140734865917327

Thread 13:
0 ??? 0x00007fff63b0c56c 0 + 140734865917292

Thread 1 crashed with X86 Thread State (64-bit):
rax: 0x000000000000003c rbx: 0x0000000102d44d18 rcx: 0x0000000000000000 rdx: 0x0000000102d44c98
rdi: 0x0000000102d44c78 rsi: 0x0000000000000000 rbp: 0x0000700008f6cf80 rsp: 0x0000700008f6cf00
r8: 0x0000000000009d1b r9: 0xffffffff00000000 r10: 0x0000000102d44c90 r11: 0x0000000102d44cd4
r12: 0x000000001dc85fe8 r13: 0x0000000000000000 r14: 0x000000000007a120 r15: 0x0000000102d44c78
rip: 0x0000000101d371c0 rfl: 0x0000000000010206 cr2: 0x0000000101d371c0

Logical CPU: 0
Error Code: 0x00000014 (no mapping for user instruction write)
Trap Number: 14


Binary Images:
0 - 0xffffffffffffffff +BanksiaGui (???) /private/var/folders/*/BanksiaGui.app/Contents/MacOS/BanksiaGui
0x111a87000 - 0x111b17b5f dyld (733.6) <DAFEA246-2F9A-3DCB-A37C-4246D4F92770> /usr/lib/dyld

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 4
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 2915
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=804K resident=0K(0%) swapped_out_or_unallocated=804K(100%)
Writable regions: Total=642.0M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=642.0M(100%)

VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 384K 3
Activity Tracing 256K 1
CG backing stores 440K 2
CG image 168K 19
CoreAnimation 96K 17
CoreGraphics 8K 1
CoreImage 12K 3
CoreUI image data 1000K 18
Foundation 4K 1
Kernel Alloc Once 8K 1
MALLOC 241.2M 139
MALLOC guard page 32K 7
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
Memory Tag 242 12K 1
STACK GUARD 56.1M 14
Stack 14.6M 14
VM_ALLOCATE 688K 26
__DATA 216K 2
__DATA_CONST 20K 1
__LINKEDIT 224K 1
__TEXT 580K 1
dylib 44K 4
dylib (reserved) 12K 2 reserved VM address space (unallocated)
mapped file 109.4M 122
shared memory 648K 17
=========== ======= =======
TOTAL 810.0M 418
TOTAL, minus reserved VM space 426.0M 418

Model: MacBookPro14,3, BootROM 202.0.0.0.0, 4 processors, Quad-Core Intel Core i7, 3.1 GHz, 16 GB, SMC 2.45f1
Graphics: kHW_IntelHDGraphics630Item, Intel HD Graphics 630, spdisplays_builtin
Graphics: kHW_AMDRadeonPro560Item, Radeon Pro 560, spdisplays_pcie_device, 4 GB
Memory Module: BANK 0/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
Memory Module: BANK 1/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x173), Broadcom BCM43xx 1.0 (7.77.106.3 AirPortDriverBrcmNIC-1435.3)
Bluetooth: Version 7.0.1f1, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: Backup+ Desk
USB Device: USB3.0 Hub
USB Device: USB 3.0 Bus
USB Device: USB2.0 Hub
USB Device: USB Keyboard
USB Device: USB-C Digital AV Multiport Adapter
USB Device: Apple T1 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.3
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.3

smcracraft
Posts: 717
Joined: Wed Mar 08, 2006 7:08 pm
Location: Orange County California
Full name: Stuart Cracraft
Contact:

Re: Leela

Post by smcracraft » Sat Dec 14, 2019 5:10 pm

The good news is, however, upon restart, Banksia restarted lc0 at the previous position and the game has continued.

Still, the crash concerns...

This is with all the default settings, no time changes, etc.

I was away from the playing area for about an hour when I came back and saw the crash.

Have played a couple moves in the Ruy Lopez further.

Sequence:

Stuart vs. Leela at default BanksiaGUI time controls

e4 e5
Nf3 Nc6 <=== crash occurred a some point after the computer's Nc6
Bb5 a6
Bxc6 dc

smcracraft
Posts: 717
Joined: Wed Mar 08, 2006 7:08 pm
Location: Orange County California
Full name: Stuart Cracraft
Contact:

Re: Leela

Post by smcracraft » Sat Dec 14, 2019 5:10 pm

By the way, the interface is wonderful.

Very happy to see BanksiaGUI on Apple Catalina working.

User avatar
musketeerchess
Posts: 161
Joined: Sun Apr 21, 2013 12:02 pm
Location: Paris, France
Contact:

Re: Leela

Post by musketeerchess » Tue Dec 17, 2019 1:20 pm

Hi
Looking for someone to program chess variants using LC0 programming architecture

MAIL ME TO musketeerchess @. Gmail.com
inventor of Musketeer Chess. A modern commercial chess variant.

www.musketeerchess.net

Pieces are available on Houseofstaunton.com or Paypal

smcracraft
Posts: 717
Joined: Wed Mar 08, 2006 7:08 pm
Location: Orange County California
Full name: Stuart Cracraft
Contact:

Re: Leela

Post by smcracraft » Wed Dec 25, 2019 12:59 am

All of this is solved here.

Have latest Leela with a recently network 1 up on two Mac's running Catalina.

One is the 2017 Mac 13" and the other is the 109 Mac 16".

So now I have some good sparring partners as I am doing an enormous amount of travel and there's nothing like killing time than chess.

--Stuart

P.S. Thanks to Banksia author and the Leela community and this board for the various assistance. The program has an entertaining playing style
and I have renewed my membership in USCF with the thought that, perhaps, some day, I'll play another rated game...

Post Reply