Gambas Closing - Error Message

Post your Gambas programming questions here.
Post Reply
bug_report_01
Posts: 4
Joined: Sunday 17th March 2024 5:22pm

Gambas Closing - Error Message

Post by bug_report_01 »

**
** OOPS! INTERNAL ERROR. Program aborting, sorry! :-(
** Unable to load JIT library: /tmp/gambas.1000/18796/jit/gb.form.terminal.so: failed to map segment from shared object
**
** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2].
** [1] http://gambaswiki.org/bugtracker
** [2] https://lists.gambas-basic.org/listinfo/user
**
We tried to get into bugtracker but the message came "unable to create account" and the 2nd address was dead. It took us two days ans three people from the club to get into here. The security in use today does not cater to the disabled. We have a new account so no one but us can use it.

It is ourr hope that someone who is an expert can help us. using kubuntu 22.04-4 and Gambas 19.4. Our compiled programs run normally. The ide has not been used in quite a while so we do not know how long this started.

What we have tried
-purging Gambas and reloading 3 times
-erasing gambas.1000

This program ide was last used long ago. We have some programs runing and they run good. The problem is to get the Gambas building program working.

Anyone who can help?
User avatar
BruceSteers
Posts: 1580
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Gambas Closing - Error Message

Post by BruceSteers »

Gambas 19.4 ?? currently latest version is 3.17.1

is it gambas2 ?

Maybe fully uninstall and reinstall gambas.

After uninstall do the following in a terminal..

sudo rm /usr/bin/gambas*
sudo rm /usr/bin/gb*3

sudo rm $HOME/.config/gambas3/gambas* # kill gambas ide settings to refresh

sudo rm -rf /usr/lib/gambas3
sudo rm -rf /usr/share/gambas3
sudo rm -rf $HOME/.local/share/gambas3

then install all of gambas

sudo apt install gambas3*
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1580
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Gambas Closing - Error Message

Post by BruceSteers »

Ps change the url of the bugtracker link form http:// to https:// then it might work.

https://gambaswiki.org/bugtracker

But it seems more like a bug in your system or your old gambas setup , not a bug in gambas itself.
If at first you don't succeed , try doing something differently.
BruceS
bug_report_01
Posts: 4
Joined: Sunday 17th March 2024 5:22pm

Re: Gambas Closing - Error Message

Post by bug_report_01 »

Thank you Bruce Steers for your help.

We tried your suggestion twice but the results were the same.

We made a mistake taking a guess at the version number. I is Gambas 3.19.1 with a upgrade to current.

Someone here may hav -probably- messed with this machine and took something out that counted. There is no way to find out what so we will wait until April for the next kubuntu version or reinstall the whole lot.

Again thank you
User avatar
BruceSteers
Posts: 1580
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Gambas Closing - Error Message

Post by BruceSteers »

hmm, most likely a system problem then if gambas is fresh install

you could try making sure all dependencies are installed.
I only know of the dependency list that is required to compile gambas...

Code: Select all

sudo apt-get update && sudo apt-get install -y build-essential git g++ automake autoconf libtool libbz2-dev libzstd-dev libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-private-dev libpoppler-glib-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-3.0-dev llvm-dev llvm libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libssl-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev qtwebengine5-dev libwebkit2gtk-4.0-dev libfribidi-dev
you should most definitely have all the dependencies if you ensure all the above is installed.
probably will need to re-install gambas after.

sudo apt reinstall gambas3*

Or if that still fails maybe try to run the IDE without JIT enabled,, try this in a terminal...

env GB_JIT_ENABLED=0 gambas3

Good luck
If at first you don't succeed , try doing something differently.
BruceS
bug_report_01
Posts: 4
Joined: Sunday 17th March 2024 5:22pm

Re: Gambas Closing - Error Message

Post by bug_report_01 »

first, thank you BruceSteers for your help, we very much appreciate it.

You help got us 95 percent success

The dependency list was long. We downloaded the files and restarted the computer but the same result happened.

but with the env GB_JIT_ENABLED=0 gambas3 the gambas3 ide started up immediately after we pressed enter. Total success

Unfortunately the successs was short lived. starting Gambas3 from an icon resulted in the same not started.

again thank you, your expertise is very helpful.
User avatar
BruceSteers
Posts: 1580
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Gambas Closing - Error Message

Post by BruceSteers »

bug_report_01 wrote: Monday 18th March 2024 2:01pm first, thank you BruceSteers for your help, we very much appreciate it.

You help got us 95 percent success

The dependency list was long. We downloaded the files and restarted the computer but the same result happened.

but with the env GB_JIT_ENABLED=0 gambas3 the gambas3 ide started up immediately after we pressed enter. Total success

Unfortunately the successs was short lived. starting Gambas3 from an icon resulted in the same not started.

again thank you, your expertise is very helpful.
hmm well it's a shame we could not fix your system but glad you got it working.

The gambas3.desktop icon you click has a line in it like this...

Exec=gambas3

you have to edit the icon to have the same "env GB_JIT_ENABLED=0 gambas3" text for the command.
if it is on the desktop or in a panel you can probably right click it and select properties
if it's in the menu you must open the desktops menu editor. (usually an option if you right click the main desktop menu)

or use a text editor and edit the gambas3.desktop file manually.
Try opening kedit and then drag the gambas icon into the editor, that should open the gambas3.desktop file, change the "Exec=gambas3" line and save.

PS, are you sure you have gambas 3.19.1 ?

ubuntu jammy only has 3.16.3 in it's repository unless you add the launchpad PPA with the following commands...

Code: Select all

sudo add-apt-repository ppa:gambas-team/gambas3
sudo apt update
sudo apt upgrade
If at first you don't succeed , try doing something differently.
BruceS
bug_report_01
Posts: 4
Joined: Sunday 17th March 2024 5:22pm

Re: Gambas Closing - Error Message

Post by bug_report_01 »

sorry to take so long to reply but we were having a serious discussion about this problem.

We do have the latest gambas3 from the gambas ppa.

We tried the exec=gambas3 but it gave us nothing except the right click menu on the icon chnaged.

Our small group has decided that there is something realy wrong with this computer so we have decided to reload the os. Since we are the only ones that has this problem then a complete install again is need.

We cannot say that the problem is solved so we will quietly leave.

thank you again BruceS for your invaluable attempted help.
User avatar
BruceSteers
Posts: 1580
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Gambas Closing - Error Message

Post by BruceSteers »

bug_report_01 wrote: Saturday 23rd March 2024 1:04am sorry to take so long to reply but we were having a serious discussion about this problem.

We do have the latest gambas3 from the gambas ppa.

We tried the exec=gambas3 but it gave us nothing except the right click menu on the icon chnaged.

Our small group has decided that there is something realy wrong with this computer so we have decided to reload the os. Since we are the only ones that has this problem then a complete install again is need.

We cannot say that the problem is solved so we will quietly leave.

thank you again BruceS for your invaluable attempted help.
You're welcome.

Sorry i wonder if I may not have been clear so one last try .

You should have changed the following in the file
Exec=gambas3
changed to this..
Exec=env GB_JIT_ENABLED=0 gambas3

also there can be more than one .desktop file.
kedit /$HOME/.local/share/applications/gambas3.desktop
or
kedit /usr/local/share/applications/gambas3.desktop
or
kedit /usr/share/applications/gambas3.desktop

The file should look like this after editing the Exec fields...

Code: Select all

[Desktop Entry]
Name=Gambas 3
Exec=env GB_JIT_ENABLED=0 gambas3
GenericName=Gambas 3 IDE
GenericName[fr]=EDI Gambas 3
GenericName[ru]=Gambas 3 IDE(ИСР)
GenericName[nl]=Gambas 3 IDE
Comment=Gambas3 Integrated Development Environment
Comment[fr]=Environnement de développement intégré Gambas3
Comment[ru]=Gambas3 IDE(ИСР) - альтернатива для Visual Basic
Comment[nl]=Gambas3 Geïntegreerde Ontwikkel Omgeving
Icon=gambas3
Terminal=false
Type=Application
Categories=Development;IDE;
StartupNotify=true
Actions=QT4;QT5;GTK3

[Desktop Action QT4]
Name=Run with QT 4
Name[fr]=Exécuter avec QT 4
Name[nl]=Uitvoeren met QT 4
Exec=env GB_JIT_ENABLED=0 GB_GUI=gb.qt4 gambas3

[Desktop Action QT5]
Name=Run with QT 5
Name[fr]=Exécuter avec QT 5
Name[nl]=Uitvoeren met QT 5
Exec=env GB_JIT_ENABLED=0 GB_GUI=gb.qt5 gambas3

[Desktop Action GTK3]
Name=Run with GTK+ 3
Name[fr]=Exécuter avec GTK+ 3
Name[nl]=Uitvoeren met GTK+ 3
Exec=env GB_JIT_ENABLED=0 GB_GUI=gb.gtk3 gambas3
i've also attached it.
you can unpack the attached gambas3.desktop to any of the above mentioned folders where there is a gambas3.desktop file

But then again, reinstalling the system should fix things.

good luck either way.
Attachments
gambas3.desktop.tar.gz
(580 Bytes) Downloaded 27 times
If at first you don't succeed , try doing something differently.
BruceS
Post Reply