Applications fail to render under VirtualBox

Bug #1129061 reported by Alan Pope 🍺🐧🐱 🦄
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Invalid
High
Unassigned
qtdeclarative-opensource-src (Ubuntu)
Fix Released
Medium
Timo Jyrinki

Bug Description

Install Ubuntu 12.04 in VirtualBox and install the necessary extensions to enable 3d accelerated desktop.
Install the toolkit and the notepad-qml (and qtdeclarative5-localstorage-plugin as per bug 1119730) inside the VM

Run the notepad-qml demo application in a terminal

Observe the following messages, and the window doesn't render correctly.

alan@amd64vm:~$ notepad-qml
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: QMYSQL QMYSQL3
QSqlQuery::prepare: database not open
file:///usr/share/notepad-qml/Models/DataModel.qml:103: Error: Driver not loaded Driver not loaded
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2186850
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2186850
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2186850
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x2186850, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2186850
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x2186850, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2186850
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x2186850, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2186850
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x2186850, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2186850
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x2186850, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2186850
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x2186850, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2186850
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x2186850, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2186850
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x2186850, failed to get XVisualInfo
Unrecognized OpenGL version
Unrecognized OpenGL version
OpenGL Warning: glXChooseFBConfig returning NULL, due to attrib=0xc, next=0x18
OpenGL Warning: glXChooseFBConfig returning NULL, due to attrib=0xc, next=0x18
Unrecognized OpenGL version
Unrecognized OpenGL version

Tags: qt5.2
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Revision history for this message
David Planella (dpm) wrote :

I'm not sure what actually causes the failure, but the "Error: Driver not loaded" part is also reported as bug 1119749

Revision history for this message
Juhapekka Piiroinen (juhapekka-piiroinen) wrote :

I do not think that this is a bug of the Ubuntu UI Toolkit.

Changed in ubuntu-ui-toolkit:
status: New → Incomplete
Revision history for this message
Florian Boucault (fboucault) wrote :

Can you paste the output of 'glxinfo'?

Changed in ubuntu-ui-toolkit:
importance: Undecided → High
Revision history for this message
David Anderson (dga) wrote :
Download full text (3.6 KiB)

I have the above problem too, running 12.04 in VirtualBox. I installed the Ubuntu UI toolkit per the standard instructions. It happens with the standard 'Hello World' program provided in QT Creator too.
As requested, the (first part of) the output of glxinfo is:

name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: Chromium
server glx version string: 1.3 Chromium
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_texture_from_pixmap, GLX_SGIX_fbconfig,
    GLX_ARB_get_proc_address
client glx vendor string: Chromium
client glx version string: 1.3 Chromium
client glx extensions:
    GLX_ARB_multisample, GLX_EXT_texture_from_pixmap, GLX_SGIX_fbconfig,
    GLX_ARB_get_proc_address
GLX version: 1.3
GLX extensions:
    GLX_ARB_multisample, GLX_EXT_texture_from_pixmap, GLX_SGIX_fbconfig,
    GLX_ARB_get_proc_address
OpenGL vendor string: Humper
OpenGL renderer string: Chromium
OpenGL version string: 2.1 Chromium 1.9
OpenGL shading language version string: 4.20
OpenGL extensions:
    GL_EXT_texture_compression_s3tc, GL_EXT_draw_range_elements,
    GL_EXT_framebuffer_object, GL_EXT_compiled_vertex_array,
    GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_multisample,
    GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_point_parameters,
    GL_ARB_point_sprite, GL_ARB_shadow, GL_ARB_shadow_ambient,
    GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_EXT_texture_env_combine,
    GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
    GL_EXT_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
    GL_IBM_texture_mirrored_repeat, GL_ATI_texture_mirror_once,
    GL_ARB_texture_non_power_of_two, GL_ARB_transpose_matrix,
    GL_ARB_vertex_buffer_object, GL_ARB_pixel_buffer_object,
    GL_ARB_vertex_program, GL_ARB_window_pos, GL_EXT_blend_color,
    GL_EXT_blend_minmax, GL_EXT_blend_func_separate, GL_EXT_blend_subtract,
    GL_EXT_texture_env_add, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
    GL_EXT_secondary_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap,
    GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,
    GL_EXT_texture_object, GL_EXT_texture3D, GL_NV_texgen_reflection,
    GL_EXT_texture_rectangle, GL_ARB_texture_rectangle,
    GL_SGIS_generate_mipmap, GL_SGIS_texture_edge_clamp,
    GL_ARB_shading_language_100, GL_ARB_shader_objects, GL_ARB_vertex_shader,
    GL_ARB_fragment_shader, GL_EXT_texture_sRGB, GL_EXT_framebuffer_blit,
    GL_EXT_blend_equation_separate, GL_CR_state_parameter,
    GL_CR_cursor_position, GL_CR_bounding_box, GL_CR_print_string,
    GL_CR_tilesort_info, GL_CR_synchronization, GL_CR_head_spu_name,
    GL_CR_performance_info, GL_CR_window_size, GL_CR_tile_info,
    GL_CR_saveframe, GL_CR_readback_barrier_size, GL_CR_server_id_sharing,
    GL_CR_server_matrix, GL_EXT_stencil_two_side

96 GLX Visuals
    visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav
  id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat
-------------------------------...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ubuntu UI Toolkit because there has been no activity for 60 days.]

Changed in ubuntu-ui-toolkit:
status: Incomplete → Expired
Revision history for this message
mdalacu (mdalacu) wrote :
Download full text (3.7 KiB)

I have the same porblem on 13.10. Every app renders black.

Starting /usr/lib/i386-linux-gnu/qt5/bin/qmlscene -I /home/mdalacu/QML/CurrencyConvertor_DM -I /usr/bin -I /usr/lib/i386-linux-gnu/qt5/qml /home/mdalacu/QML/CurrencyConvertor_DM/CurrencyConvertor_DM.qml
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x918bb68
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x918bb68
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x918bb68
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x918bb68, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x918bb68
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x918bb68, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x918bb68
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x918bb68, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x918bb68
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x918bb68, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x918bb68
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x918bb68, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x918bb68
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x918bb68, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x918bb68
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfig...

Read more...

Changed in ubuntu-ui-toolkit:
status: Expired → Confirmed
Revision history for this message
Mike McCracken (mikemc) wrote :

I have basically the same problem testing with qmlscene - loading some qml files causes a core dump. others do not crash, but nothing renders correctly.

This is with virtualbox 4.2.14 on a mac os host and raring guest.

I agree that this is probably not a ui-toolkit bug, but this is the only place I found with exactly this issue. I plan to try to reduce a failing .qml file and report it to virtualbox's bug tracker. I will link to that here when I can.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Suspect this may be a qt bug so filed a bug upstream https://bugreports.qt-project.org/browse/QTBUG-32225

Revision history for this message
Berat Alp Erbil (beratalp) wrote :

Any hopes for fixing?

Revision history for this message
Dinko Osmankovic (dinko-metalac) wrote :

It works fine with VM Player. I suspect this has something to do with graphics driver VirtualBox, not with Qt nor with SDK.

Revision history for this message
Nicolas Muthelet (muthelet) wrote :

Same errors using Qt5.
glxgears works as expected...
When I disable 3D acceleration, it works.

I have the seem feeling as Dinko, it seems to be a Virtualbox driver problem.

NM

Revision history for this message
Florian Boucault (fboucault) wrote :

This limitation of virtualbox was workarounded upstream in Qt5.2

tags: added: qt5.2
Changed in ubuntu-ui-toolkit:
status: Confirmed → In Progress
Revision history for this message
Albert Astals Cid (aacid) wrote :

Florian do you have a like to the upstream bug or gerrit request?

Revision history for this message
Florian Boucault (fboucault) wrote :
Bill Filler (bfiller)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Florian Boucault (fboucault)
Changed in ubuntu-ui-toolkit:
assignee: Florian Boucault (fboucault) → nobody
Changed in qtdeclarative-opensource-src (Ubuntu):
status: New → Confirmed
Changed in ubuntu-ui-toolkit:
status: In Progress → Invalid
Changed in qtdeclarative-opensource-src (Ubuntu):
assignee: nobody → miRv (mirv)
importance: Undecided → Medium
Changed in qtdeclarative-opensource-src (Ubuntu):
assignee: miRv (mirv) → Timo Jyrinki (timo-jyrinki)
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Can this be retested with Qt 5.2.1, https://bugreports.qt-project.org/browse/QTBUG-32225 was closed as DONE for 5.2.0?

https://codereview.qt-project.org/#change,69368

Changed in qtdeclarative-opensource-src (Ubuntu):
status: Confirmed → Fix Committed
Changed in qtdeclarative-opensource-src (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :
Download full text (9.1 KiB)

Hi,

I am having this problem on Ubuntu utopic. I installed Virtualbox 4.3.14 and its extension. I am now developing scope apps on Utopic. Can someone look into this problem? many thanks!

Starting /usr/bin/unity-scope-tool...
libGL error: pci id for fd 16: 80ee:beef, driver (null)
scoperegistry: unity::ResourceException: cannot open scope installation directory "/custom/lib/x86_64-linux-gnu/unity-scopes": No such file or directory
scoperegistry: could not open OEM installation directory, ignoring OEM scopes
scoperegistry: unity::ResourceException: cannot open scope installation directory "/home/liuxg/.local/share/unity-scopes/": No such file or directory
scoperegistry: could not open Click installation directory, ignoring Click scopes
scoperegistry: no remote registry configured, only local scopes will be available
ScopesWatcher::add_install_dir(): install dir watch: unity::ResourceException: DirWatcher::add_watch(): failed to add watch for path: "/custom/lib/x86_64-linux-gnu/unity-scopes". inotify_add_watch() failed. (fd = 14, path = /custom/lib/x86_64-linux-gnu/unity-scopes)
ScopesWatcher::add_install_dir(): install dir watch: unity::ResourceException: DirWatcher::add_watch(): failed to add watch for path: "/home/liuxg/.local/share/unity-scopes/". inotify_add_watch() failed. (fd = 15, path = /home/liuxg/.local/share/unity-scopes/)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
OpenGL Warning: glXCreatePbuffer not implemented by Chromium
file:///usr/share/unity8/ScopeTool.qml:139:23: Unable to assign null to QString
OpenGL Warning: Assertion failed: crPackGetContext() == (curThread ? curThread->packer : NULL), file /mnt/tinderbox/add-4.3/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c, line 263
The program has unexpectedly fin...

Read more...

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.