Page 1 of 1

[SOLVED] 2D Graphics issues on Ubuntu

Posted: 29. Dec 2015, 20:31
by hopda
Hello together,

I've got a Windows host with an Intel HD 5500 graphics card that runs an Ubuntu guest in VirtualBox.
I'm using the guest to develop C++ applications, the IDE I'm using is Code::Blocks.

My problem is, I constantly experience difficulties in using Code::Blocks because some windows do not render completely or some parts of the interface stop working.
An example is the tabs area, when I switch between source files it should show me all open source files and the current one, sometimes it just stops refreshing, so when I click it switches the editor view but the active tab shown is still the old one.
When I then open a new source file, the new file is not shown in the tabs.

Is there a solution to this problem or do I have to accept these type of problems when working in a VM?
(It's the first time that I actually work inside a VM, so I have no experience with these)

Thank you very much for your help!

Greetings,

Daniel

Re: 2D Graphics issues on Ubuntu

Posted: 29. Dec 2015, 21:01
by socratis
With the guest shutdown, if you have 3D enabled, disable it. See if that helps. If it doesn't post the log file of the machine. See Minimum information needed for assistance.

Re: 2D Graphics issues on Ubuntu

Posted: 30. Dec 2015, 23:08
by hopda
Hello socratis,

thank you very much for your answer.
I disabled 3D acceleration but sadly this did not remove the problem.

Here is the minimum information needed for assistance:

I run VirtualBox 5.0.10r104061, I have the guest additions installed on my Ubuntu guest.
My host is Windows 10, the guest is Ubuntu 15.10 (the problem is present in Ubuntu LTS 14.04.03 as well).
My host has 8GB of RAM available (64bit), the guest has 4GB of RAM available (64bit).

You can find the logs as attachments below this post.

Thank you very much! :)

Greetings,

Daniel

Re: 2D Graphics issues on Ubuntu

Posted: 31. Dec 2015, 13:59
by socratis
Several things from your logs:
VirtualBox VM 5.0.10 r104061 win.amd64 (Nov 10 2015 16:56:18) release log
00:00:02.251104   Oracle VM VirtualBox Extension Pack (Version: 5.0.12 r104815; VRDE Module: VBoxVRDP)
The ExtPack has to match the installed VirtualBox version. Upgrade your VirtualBox version to 5.0.12.
00:00:02.707882   NumCPUs           <integer> = 0x0000000000000002 (2)
00:00:03.148299 CPUM: Physical host cores: 2
You have two physical cores, you assigned both of them to your guest. Lower the virtual CPUs of your guest to 1.

But more importantly, you have not installed the Guest Additions in your guest. See Chapter 4.2.2 for more details. And then try different settings with the 3D acceleration.

Re: 2D Graphics issues on Ubuntu

Posted: 1. Jan 2016, 18:19
by hopda
Thank you very much for your answer socratis!

It seems that the problem is now solved.

I downloaded the most recent version of VirtualBox, created a new VM with the latest Ubuntu LTS version, installed the guest additions through the "Devices" menu and turned 3D acceleration on, I reduced the CPU to 1 and now everything seems to work fine.
There are some issues when switching to a tab does not refresh the screen or it just shows a part of the new tab and a part of the old tab but thats resolved by scrolling or switching again. The problem that it just ceases to work is gone.

Thank you very much again and I hope others that have this problem find their answer in this thread.

Greetings,

Daniel

Re: [SOLVED] 2D Graphics issues on Ubuntu

Posted: 1. Jan 2016, 18:33
by socratis
Glad you got it resolved.
Kudos for changing the title of your first post to reflect the resolution of your question!