# One button in the gui tracer has stopped working

**URL:** <https://swi-prolog.discourse.group/t/one-button-in-the-gui-tracer-has-stopped-working/9299>\
**Category:** General\
**Tags:** bug\
**Created:** [September 18, 2025, 10:13pm UTC](https://swi-prolog.discourse.group/t/one-button-in-the-gui-tracer-has-stopped-working/9299 "2025-09-18T22:13:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@martin](https://swi-prolog.discourse.group/u/martin)\
**Post date:** [September 18, 2025, 10:13pm UTC](https://swi-prolog.discourse.group/t/one-button-in-the-gui-tracer-has-stopped-working/9299/1 "2025-09-18T22:13:10Z")

</div>

There is one button in the gui tracer that doesn’t do anything.

Its the button with the label “Enter a query (in new thread) (B)”.

I am using Swipl 9.3.30, on Linux Mint 22.1.

This button used to work. I am not sure, but I think it stopped working when I upgraded Linux to Linux Mint Cinnamon 22.1.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [September 19, 2025, 7:10am UTC](https://swi-prolog.discourse.group/t/one-button-in-the-gui-tracer-has-stopped-working/9299/2 "2025-09-19T07:10:31Z")

</div>

> [@martin](#):
>
> Its the button with the label “Enter a query (in new thread) (B)”.

Thanks for reporting. library(threadutil) needs to be cleaned. Note that if you run from `swipl-win`, you can split the console using Shift-Ctrl-O.

In the new setup, I tend to run `swipl-win arg ...` rather than `swipl arg ...` for interactive usage. The options are the same. The `swipl-win` creates an _Epilog_ console that is a fairly decent terminal that provides some menu actions, can be split and turns messages linked to a source location into clickable links.

---

<div class="post-metadata">

**Author:** ![martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@martin](https://swi-prolog.discourse.group/u/martin)\
**Post date:** [September 19, 2025, 7:51am UTC](https://swi-prolog.discourse.group/t/one-button-in-the-gui-tracer-has-stopped-working/9299/3 "2025-09-19T07:51:24Z")

</div>

$ swipl-win  
swipl-win: command not found

$

I don’t have “swipl-win”.

But I can start the Swi console using a command like “/usr/bin/flatpack …”.

Jan wrote:

> Note that if you run from `swipl-win`, you can split the console using Shift-Ctrl-O.”.

That looks really useful.

Is there also a key to unsplit the console?

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [September 19, 2025, 3:04pm UTC](https://swi-prolog.discourse.group/t/one-button-in-the-gui-tracer-has-stopped-working/9299/4 "2025-09-19T15:04:43Z")

</div>

> [@martin](#):
>
> swipl-win: command not found

Did it not install the GUI? Traditionally, that is a package called swi-prolog-x, I think. It may not be there yet though as it depends on SDL3 and this library is not yet mainstream. Only the latest version of a couple of pretty up-to-date distributions have it. If it installed the gui and the command is still missing, this should be fixed. You can check by running

```
 ?- epilog.

```

Otherwise, `swipl-win` is the same as `swipl -Depilog`

> [@martin](#):
>
> Is there also a key to unsplit the console?

Just enter Ctrl-D for end-of-file.

---

<div class="post-metadata">

**Author:** ![martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@martin](https://swi-prolog.discourse.group/u/martin)\
**Post date:** [September 19, 2025, 6:30pm UTC](https://swi-prolog.discourse.group/t/one-button-in-the-gui-tracer-has-stopped-working/9299/5 "2025-09-19T18:30:04Z")

</div>

I have epilog, but I can’t start it with “$ swipl-win”.

$ swipl -Depilog

swipl: Usage:

1. swipl [options] prolog-file … [– arg …]
2. swipl [options] [-o executable] -c prolog-file …
3. swipl --help Display this message

…

That is an old version of Swipl, its 9.0.4 . I recently installed a newer version of Swipl from the Software Manager, a flatpack. I think it was version 9.3.29 initially. I later updated it to version 9.3.30.

This newer version can be started from the Start Menu, its starts the prolog console.

I didn’t uninstall the old version of Swipl first, so the command “$ swipl” still starts up version 9.0.4.

By looking at the Linux menu, the menu similar to what Microsoft calls the “Start Menu”, I can see that when I start Swi Prolog from the menu, it runs this linux command:

/usr/bin/flatpak run --branch=stable --arch=x86\_64 --command=swipl-win --file-forwarding org.swi\_prolog.swipl @@u %U @@

So I can start epilog from the menu, or by typing that command into the Linux Terminal.

Once I have started Swi prolog from the menu, i.e. the prolog console, if I enter “?- epilog.” then it opens an identical window.

I don’t know why “$ swipl-win” doesn’t work.

About splitting windows in the prolog console, epilog. I have just discovered that when I right-click in the Swi console window, its shows a menu, that I can use to split the window, and to unsplit it by closing one of the sub-windows. This menu is good, its easy to understand. But not easy to find.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [September 20, 2025, 11:23am UTC](https://swi-prolog.discourse.group/t/one-button-in-the-gui-tracer-has-stopped-working/9299/6 "2025-09-20T11:23:21Z")

</div>

> [@martin](#):
>
> I don’t know why “$ swipl-win” doesn’t work.

Because the binaries in /usr/bin are old. You can run both swipl-win and swipl using flatpak using the `--comand=` option. That recognizes both `swipl` and `swipl-win`. Eventually, Linux will get updated, but before this happens for most distros we need to release stable 9.4.0 and the distro needs to provide the SDL3 dependency. For short, that may take a while ☹ Before than, the flatpak or compiling from source are your only options.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [September 21, 2025, 3:00pm UTC](https://swi-prolog.discourse.group/t/one-button-in-the-gui-tracer-has-stopped-working/9299/7 "2025-09-21T15:00:28Z")

</div>

> [@martin](#):
>
> There is one button in the gui tracer that doesn’t do anything.
> 
> Its the button with the label “Enter a query (in new thread) (B)”.

Pushed several fixes that replace the xterm, Qt or Windows-code implementation for this by the new xpce based Epilog Prolog console. These patches also remove the old interfaces from the source code.
