QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: samuele on March 30, 2019, 10:33:16 am

Title: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on March 30, 2019, 10:33:16 am
Hi everyone, I'm new here and tried to install QB64 on Xubuntu Linux virtualized with VirtualBox on macOS. I have found that by starting QB64 the Linux system becomes very slow and unstable with 100% CPU. Closing it all back to normal.
What could be the problem?

N.B.
I know I could try installing the MacOS version of QB64 but I need to use Linux.
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: Ashish on March 30, 2019, 11:08:10 am
Hi! I think in the settings of VM, you must provided half the number of cores you have. Also enable hardware acceleration. Also check that whether you are not giving more than half of RAM of your system.

Hope it helps.
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on March 30, 2019, 12:28:22 pm
My configuration is this:

Host system
macOS Mojave 10.14.4 on MacBook Pro 15 2018 TouchBar (6 core CPU, 16 GB RAM)

Guest system
Xubuntu on VirtualBox with this configuration:
RAM 1536 MB
CPU 2 of 12 Core
128 MB Video Memory
VMSVGA graphics card
3D acceleration enabled

There is something wrong? Do these settings seem to me to be enough to make everything work, or not?
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: johnno56 on April 02, 2019, 07:02:26 am
Ok. Correct me if I am wrong... I usually am most of the time so it's ok to tell me... lol

You are running Linux via a vitual box on your mac and running qb64 in Linux? Did I get that right?

If so, if I may ask, why? QB64 has both stable and development versions of qb64 for mac... Just curious. Unless qb64 does not run on your current mac machine?
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on April 03, 2019, 04:18:54 am
On my mac I have not tried. Currently, I'm learning Linux so I wanted to try QB64 on Xubuntu. That's all.

The IDE is starting up but lagging a lot. Same thing happens with Mint Xfce. It is impossible to write code in the QB64 window.

So I would like to report these issues to the developers.

Also I would like to ask which Linux distro works well with QB64? Or is it not stable on Linux?
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: johnno56 on April 03, 2019, 06:58:17 am
I am using the 64 bit version of Linux Mint (based on ubuntu) and QB64 runs perfectly.

My guess is that you are trying Xubuntu and Mint Xfce in an effort to improve performance as both are "lightweight" and suited for low resource machines.

Are you trying Linux on another PC/laptop? Just curious.

Linux can run on pretty much any machine without actually installing it. Download an ISO image of Linux and burn it to a DVD. Instructions here: https://linuxmint-installation-guide.readthedocs.io/en/latest/burn.html or https://tutorials.ubuntu.com/tutorial/try-ubuntu-before-you-install#0 then boot your pc/laptop using the DVD and choose "try" when asked to install. Do NOT install - only "try". The dvd will place the Linux system in memory only and you can "test it".

Make sure you have the most recent stable version of QB64  (https://www.qb64.org/) or check with the guys on this forum for the best advice...

As a side note: May I ask why you want to use Linux?
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: jack on April 03, 2019, 07:04:28 am
I suspect that the problem is not linux but VirtualBox combined with the high graphic demand of MacOS Mojave
I have a mid-2010 Mac Pro with High Sierra and I use Parallels Desktop for virtualization, Ubuntu 18.04 runs ok for the most part
but Ubuntu 16.04 ran faster and more responsive, my recommendation use Ubuntu 16.04 http://releases.ubuntu.com/16.04/
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: FellippeHeitor on April 03, 2019, 07:26:13 am
Hello all. I'm sorry I didn't take part in this discussion earlier.

I'm a macOS user myself. I do most of my coding in a Windows environment though by using virtualization. I also do some testing in Linux by using virtualization as well.

I'm on macOS 10.14.4 (Mojave), which is the first iteration of 10.14 that allows QB64 to run properly. Our latest dev build also brings some fixes to allow smoother operation. Version 1.3 will be tagged as compatible as well.

My virtual machine software is VirtualBox, which is free and performs quite well. I have a Mac Mini (Late 2012), 2,3 GHz Intel Core i7, 16 GB 1600 MHz DDR3, Intel HD Graphics 4000 1536 MB.

I have two Windows virtual machines, one running Windows XP - my main coding environment - and one running Windows 10, to test when people report issues on that.

I have three Linux virtual machines: 64bit Debian, 64bit Ubuntu, 32bit Mint 19.

Here are the settings I currently use:


All of that came to be by trial and error. Not saying it doesn't spin my fan sometimes when running QB64, but it works fine on all of them (only reason for me to have them after all).

Hope it helps.
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on April 03, 2019, 09:42:34 am
Are you trying Linux on another PC/laptop? Just curious.

I haven't tried Linux on other PCs. My computer is the MacBook Pro and I don't have the ability to use another PC.

Linux can run on pretty much any machine without actually installing it. Download an ISO image of Linux and burn it to a DVD. Instructions here: https://linuxmint-installation-guide.readthedocs.io/en/latest/burn.html or https://tutorials.ubuntu.com/tutorial/try-ubuntu-before-you-install#0 then boot your pc/laptop using the DVD and choose "try" when asked to install. Do NOT install - only "try". The dvd will place the Linux system in memory only and you can "test it".

Make sure you have the most recent stable version of QB64  (https://www.qb64.org/) or check with the guys on this forum for the best advice...

I'll try this too.

As a side note: May I ask why you want to use Linux?

Nothing fancy, I'm trying to learn Linux and BASIC programming.That's all.

Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on April 03, 2019, 09:43:33 am
Hello all. I'm sorry I didn't take part in this discussion earlier.

I'm a macOS user myself. I do most of my coding in a Windows environment though by using virtualization. I also do some testing in Linux by using virtualization as well.

I'm on macOS 10.14.4 (Mojave), which is the first iteration of 10.14 that allows QB64 to run properly. Our latest dev build also brings some fixes to allow smoother operation. Version 1.3 will be tagged as compatible as well.

My virtual machine software is VirtualBox, which is free and performs quite well. I have a Mac Mini (Late 2012), 2,3 GHz Intel Core i7, 16 GB 1600 MHz DDR3, Intel HD Graphics 4000 1536 MB.

I have two Windows virtual machines, one running Windows XP - my main coding environment - and one running Windows 10, to test when people report issues on that.

I have three Linux virtual machines: 64bit Debian, 64bit Ubuntu, 32bit Mint 19.

Here are the settings I currently use:

  • Windows XP machine: 32bit single processor, default paravirtualization, 2GB RAM, 128MB of video memory, 2D video acceleration only, CodeAudio ICH AC97, NAT Networking
  • Windows 10 machine: 64bit single processor, default paravirtualization, 6GB RAM, 256MB of video memory, both 2D and 3D acceleration, CodeAudio Intel HD, NAT Networking
  • Debian: 64bit single processor, default paravirtualization, 4GB RAM, 16MB of video memory, no 2D or 3D acceleration, CodeAudio ICH AC97, NAT Networking
  • Ubuntu: 64bit single processor, default paravirtualization, 4GB RAM, 128MB of video memory, 3D acceleration only, CodeAudio ICH AC97, NAT Networking
  • Mint 19: 32bit single processor, default paravirtualization, 2GB RAM, 128MB of video memory, 3D acceleration, CodeAudio ICH AC97, NAT Networking

All of that came to be by trial and error. Not saying it doesn't spin my fan sometimes when running QB64, but it works fine on all of them (only reason for me to have them after all).

Hope it helps.

Thanks, I'll do some tests and let you know if it works.



Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on April 03, 2019, 09:44:44 am
Can it be that I use 2 processors in VirtualBox?

What are the minimum system requirements to run QB64?
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: FellippeHeitor on April 03, 2019, 09:55:22 am
Maybe.
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on April 03, 2019, 10:43:18 am
Here are the settings I currently use:

  • Windows XP machine: 32bit single processor, default paravirtualization, 2GB RAM, 128MB of video memory, 2D video acceleration only, CodeAudio ICH AC97, NAT Networking
  • Windows 10 machine: 64bit single processor, default paravirtualization, 6GB RAM, 256MB of video memory, both 2D and 3D acceleration, CodeAudio Intel HD, NAT Networking
  • Debian: 64bit single processor, default paravirtualization, 4GB RAM, 16MB of video memory, no 2D or 3D acceleration, CodeAudio ICH AC97, NAT Networking
  • Ubuntu: 64bit single processor, default paravirtualization, 4GB RAM, 128MB of video memory, 3D acceleration only, CodeAudio ICH AC97, NAT Networking
  • Mint 19: 32bit single processor, default paravirtualization, 2GB RAM, 128MB of video memory, 3D acceleration, CodeAudio ICH AC97, NAT Networking

What graphic environment do you use?
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: FellippeHeitor on April 03, 2019, 11:15:37 am
What graphic environment do you use?

Hm?
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on April 03, 2019, 11:22:06 am
Hm?

Xfce, Cinnamon, Gnome, .....?
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: FellippeHeitor on April 03, 2019, 11:36:38 am
Ah, no idea. Whatever comes default.
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: johnno56 on April 03, 2019, 04:51:30 pm
I hope this helps...

https://help.ubuntu.com/community/Installation/SystemRequirements
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on April 04, 2019, 04:19:51 am
I hope this helps...

https://help.ubuntu.com/community/Installation/SystemRequirements

Thanks, but I meant the minimum requirements of QB64 and not Ubuntu.
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: johnno56 on April 05, 2019, 10:50:13 pm
My mistake for not sensing your need.

I do not know the system requirements but there is wiki that might help: https://qb64.org/wiki/QB64_FAQ

J
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: codeguy on April 06, 2019, 12:42:00 am
the problem with Mac hardware environments is that their GPUs are generally quite deficient to support demanding graphical applications on top of the usual system requirements. They just don't have the GPU horsepower. Even in native mode OSX, these do not have the requisite horsepower to run complex or demanding games and your ability to upgrade this hobbling factor may be next to zero.
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on April 06, 2019, 03:27:46 am
the problem with Mac hardware environments is that their GPUs are generally quite deficient to support demanding graphical applications on top of the usual system requirements. They just don't have the GPU horsepower. Even in native mode OSX, these do not have the requisite horsepower to run complex or demanding games and your ability to upgrade this hobbling factor may be next to zero.

My MacBook Pro has two video cards:
- Intel UHD Graphics 630
- Radeon Pro 555X 4GB

Do you think they are not powerful enough to run QB64 in a decent way?

Perhaps the problem is VirtualBox? Boh, I do not know.

I'm not starting games, I'm just trying to start the IDE and start writing some simple programs.

Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: Ashish on April 06, 2019, 05:15:51 am
@samuele
That video cards are enough to run QB64. QB64 just require OpenGL 1.1 (and some FBO extension) and you have much powerful video cards. For RAM, QB64 will use less than 200MB of RAM for simple program. Problem might be with Oracle's VB. Try to re-install it or check that you are running correct 32bit or 64bit latest version of it.
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on April 06, 2019, 05:56:29 am
@samuele
That video cards are enough to run QB64. QB64 just require OpenGL 1.1 (and some FBO extension) and you have much powerful video cards. For RAM, QB64 will use less than 200MB of RAM for simple program. Problem might be with Oracle's VB. Try to re-install it or check that you are running correct 32bit or 64bit latest version of it.

I've already tried. VirtualBox works well with everything else except when starting QB64. At this point I think maybe they are not compatible.
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: FellippeHeitor on April 06, 2019, 06:27:15 am
As I said it, I have a very similar setup and use VirtualBox with the exclusive purpose of running QB64. There is no incompatibility. What you have is either bad settings or a MacBook that's beginning to beg for mercy.

Either way, try using QB64 just as a compiler if you end up not figuring out the best settings for your VirtualBox machines: Use any other editor to code, then use ./qb64 -x file.bas to compile your programs in the virtual environment.
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: samuele on April 06, 2019, 09:19:57 am
As I said it, I have a very similar setup and use VirtualBox with the exclusive purpose of running QB64. There is no incompatibility. What you have is either bad settings or a MacBook that's beginning to beg for mercy.

Either way, try using QB64 just as a compiler if you end up not figuring out the best settings for your VirtualBox machines: Use any other editor to code, then use ./qb64 -x file.bas to compile your programs in the virtual environment.

My notebook is from 2018, so I think it's pretty powerful. Maybe it's some VirtualBox setup. Could you post some screenshots of your Virtualbox configuration so I try to replicate it on my computer?
Title: Re: QB64 problem with virtualized Xubuntu in Virtualbox
Post by: codeguy on April 07, 2019, 04:18:49 pm
Enjoy the OPENGL compatibility for a few more years as its support will be nullified, being replace by Apple Metal APIs. This process of eliminating OpenGL support has been ongoing and there is no support for the newest version. Perhaps it may be time to rethink strategy for keeping compatibility once OpenGL is entirely removed from the Apple ecosystem. Many game devs are unhappy about this and understandably so.