Linux, PB IDE, process does not stop when window is closed

Post bugs related to the IDE here
Taz
User
User
Posts: 52
Joined: Sat Jan 20, 2018 5:28 pm
Location: Germany

Linux, PB IDE, process does not stop when window is closed

Post by Taz »

Hi all, I have the problem when I close the PureBasic IDE (OS: Debian / Lubuntu / Ubuntu, all x64), the processes are not closed from the IDE.
(no difference if i quit via menu, or click on the X from the window)

It does not matter if I start the IDE by * .desktop file, or simply double-click on the "compiler/purebasic", or start the IDE in the console.

Every time I start the PureBasic IDE again, a new process is created :shock:
The "checkinstall.sh" says that everything is ok.

Example:
For testing, I installed a fresh Ubuntu 17.10.1 in Virtualbox, and then:

Code: Select all

sudo apt update
sudo apt upgrade
sudo apt install gcc make perl htop
sudo /media/taz/VBox_GAs_5.2.8/VBoxLinuxAdditions.run
init 6
wget https://www.purebasic.com/download/purebasic-demo_x64.tar.gz
tar -xapPvf ./purebasic-demo_x64.tar.gz
sudo apt update
sudo apt install gcc g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libgnome2-dev libxine2-dev libwebkitgtk-3.0-dev libxxf86vm-dev libwebkitgtk-dev libwebkitgtk-3.0-dev
init 6
./checkinstall.sh
Everything seems correctly setup for PureBasic !

1: Double-click on "compilers/purebasic", close the demo dialog, wait a moment and close the main window.
2: Double-click on "compilers/purebasic", close the demo dialog, wait a moment and close the main window.
3: Double-click on "compilers/purebasic", close the demo dialog, wait a moment and close the main window.

Result:
Image
Taz
User
User
Posts: 52
Joined: Sat Jan 20, 2018 5:28 pm
Location: Germany

Re: Linux, PB IDE, process does not stop when window is clos

Post by Taz »

Simpel/fast example with Debain. Download debian-testing-amd64-xfce-CD-1.iso (640MB)
Create new VM (debian 64) with VirtualBox, mount the iso, run the vm and install debian. (DE: XFCE, create user "test")

login as root:

Code: Select all

apt update && apt install sudo
adduser test sudo
init 6
login as test

Code: Select all

wget https://www.purebasic.com/download/purebasic-demo_x64.tar.gz
tar -xapPvf ./purebasic-demo_x64.tar.gz
sudo apt update
sudo apt install gcc g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libgnome2-dev libxine2-dev libwebkitgtk-3.0-dev libxxf86vm-dev libwebkitgtk-dev libwebkitgtk-3.0-dev
cd ./purebasic_demo/
./checkinstall.sh
(Everything seems correctly setup for PureBasic !, close terminal)

1: Double-click on "compilers/purebasic", close the demo dialog, wait a moment and close the main window.
2: Double-click on "compilers/purebasic", close the demo dialog, wait a moment and close the main window.
3: Double-click on "compilers/purebasic", close the demo dialog, wait a moment and close the main window.

Menu -> System -> Taskmanager

and now you can see, there are 3 processe: "purebasic_demo/compilers/purebasic"
User avatar
mk-soft
Always Here
Always Here
Posts: 5406
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Linux, PB IDE, process does not stop when window is clos

Post by mk-soft »

Confirm on Ubuntu 17.10 (VM) and PB v5.62 (x64)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Linux, PB IDE, process does not stop when window is clos

Post by uwekel »

Confirmed on Antergos with Gnome-Desktop and Wayland-Displayserver.
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Marc56us
Addict
Addict
Posts: 1479
Joined: Sat Feb 08, 2014 3:26 pm

Re: Linux, PB IDE, process does not stop when window is clos

Post by Marc56us »

xfce 4.12
Linux X64 on VirtualBox 5.2

- Confirmed on Slackware 14.2
(PB 5.61 x64 Launched and closed 3 times)

Code: Select all

root:~ # ps aux | grep purebasic
marc      7164  1.5  1.9 574356 39736 tty1     Sl   08:46   0:01 /home/marc/Documents/purebasic/compilers/purebasic
marc      7203  1.4  1.9 499064 39000 tty1     Sl   08:46   0:00 /home/marc/Documents/purebasic/compilers/purebasic
marc      7228  7.6  1.9 499068 38940 tty1     Sl   08:47   0:00 /home/marc/Documents/purebasic/compilers/purebasic
root      7248  0.0  0.1   9760  2092 pts/0    S+   08:47   0:00 grep purebasic
While waiting to find a solution, you just have to make a script to launch PB, with as first line "killall purebasic".

Code: Select all

root:~ # killall purebasic
root:~ # ps aux | grep purebasic
root      7254  0.0  0.0   9760  2012 pts/0    S+   08:48   0:00 grep purebasic
root:~ # 
:!: Not confirmed on Debian 9.3: PB frees memory on its own

:arrow: So problem is on Linux configuration (but where?) and not in PB

:wink:
Taz
User
User
Posts: 52
Joined: Sat Jan 20, 2018 5:28 pm
Location: Germany

Re: Linux, PB IDE, process does not stop when window is clos

Post by Taz »

Problem also exists on: manjaro-xfce-17.1.6-stable-x86_64


This is interesting, confirmed on Debian testing, but not on 9.3/4
Marc56us wrote: :arrow: So problem is on Linux configuration (but where?) and not in PB
But why ONLY purebasic has the problem? All other programs close correctly.
Post Reply