It is currently Fri Jun 22, 2018 6:45 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Linux, PB IDE, process does not stop when window is closed
PostPosted: Sat Mar 10, 2018 6:42 am 
Offline
User
User

Joined: Sat Jan 20, 2018 5:28 pm
Posts: 27
Location: Germany
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:
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux, PB IDE, process does not stop when window is clos
PostPosted: Sat Mar 10, 2018 10:32 am 
Offline
User
User

Joined: Sat Jan 20, 2018 5:28 pm
Posts: 27
Location: Germany
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:
apt update && apt install sudo
adduser test sudo
init 6

login as test
Code:
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"


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux, PB IDE, process does not stop when window is clos
PostPosted: Sat Mar 10, 2018 9:30 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1255
Location: Germany
Confirm on Ubuntu 17.10 (VM) and PB v5.62 (x64)

_________________
My Projects OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer /
PB v3.30 / v5.60 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux, PB IDE, process does not stop when window is clos
PostPosted: Sun Mar 11, 2018 7:33 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 03, 2011 5:54 pm
Posts: 727
Location: Oldenburg (Germany)
Confirmed on Antergos with Gnome-Desktop and Wayland-Displayserver.

_________________
PB 5.62 - Antergos Linux 64-Bit, Wayland Display Server


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux, PB IDE, process does not stop when window is clos
PostPosted: Mon Mar 12, 2018 8:59 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Feb 08, 2014 3:26 pm
Posts: 396
Location: France
xfce 4.12
Linux X64 on VirtualBox 5.2

- Confirmed on Slackware 14.2
(PB 5.61 x64 Launched and closed 3 times)
Code:
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:
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:

_________________
(English is not my native language, I used an online translator)
Windows 10 x64 - CPU intel i3 - RAM 16Go - NVidia GT 620 - 1920x1080 - Linux Slackware, Debian - xfce - (VirtualBox 5) - raspberry pi


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux, PB IDE, process does not stop when window is clos
PostPosted: Mon Mar 12, 2018 11:51 am 
Offline
User
User

Joined: Sat Jan 20, 2018 5:28 pm
Posts: 27
Location: Germany
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye