You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Pat Deegan (JIRA)" <ji...@apache.org> on 2016/09/24 00:01:46 UTC

[jira] [Comment Edited] (CB-11870) Unable to drive display on Ubuntu 16.04 (black window)

    [ https://issues.apache.org/jira/browse/CB-11870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15517940#comment-15517940 ] 

Pat Deegan edited comment on CB-11870 at 9/24/16 12:00 AM:
-----------------------------------------------------------

Still no resolution of the issue but I'll document what I've attempted to date, here.

Since the problem isn't happening on another Ubuntu 16.04 system, I've been looking into the display and associated drivers (on the Asus X556UA, with on-board Intel HD Graphics 520).

I have:

 * created a /usr/share/X11/xorg.conf.d/20-intel.conf and to disable acceleration/DRI, like so
Section "Device"
	Identifier  "Intel Graphics"
	Driver      "intel"
	Option		"DRI"		"false"
	Option 		"NoAccel" 	"True"
EndSection

   and combinations thereof.

 * disabled OpenGL with the LIBGL_ALWAYS_SOFTWARE=1 

 * tried the 
	** intel X11 driver, the 
	** fbdev driver and the 
	** modesetting driver,
  in turn

 * installed the Intel Graphics For Linux, using the Intel Graphics Update Tool 2.0.2 for Ubuntu 16.04, 64-bit from https://01.org/linuxgraphics/

 * I've run the cordova app on the "good" system, and used X11 Forwarding... that works.  Running on the X556UA and forwarding to the other system displays the black window.

 * I've run the cordova-ubuntu program with every debug flag I could find in the QT modules:

LIBQML_DUMP_ERRORS=1 QML_XHR_DUMP=1 QML_CHECK_TYPES=1 QML_DEBUGGER_VERBOSE=1 MALIIT_DEBUG=1 \
  QT_QPA_EVDEV_DEBUG=1 QT_QPA_EGLFS_DEBUG=1 QT_QPA_EVDEV_DEBUG=1 QT_DEBUG_BACKINGSTORE=1 \
  QT_DEBUG_PLUGINS=1 DEBUG=1 ./cordova-ubuntu www/

which produces lots of output but doesn't actually report any problems.

Now, I'm about ready to declare myself officially stumped and can't proceed with development until I can see the app (and know this won't happen to users)...  Any ideas what else I can check?


For reference, the system's current graphics setup is:
 Card: Intel Sky Lake Integrated Graphics
 Display Server: X.Org 1.18.3 
 driver: intel 
 Resolution: 1920x1080@60.00hz
 GLX Renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2) 
 GLX Version: 3.0 Mesa 11.2.2




was (Author: psychogenic):
Still no resolution of the issue but I'll document what I've attempted to date, here.

Since the problem isn't happening on another Ubuntu 16.04 system, I've been looking into the display and associated drivers (on the Asus X556UA, with on-board Intel HD Graphics 520).

I have:

 * created a /usr/share/X11/xorg.conf.d/20-intel.conf and to disable acceleration/DRI, like so
Section "Device"
	Identifier  "Intel Graphics"
	Driver      "intel"
	Option		"DRI"		"false"
	Option 		"NoAccel" 	"True"
EndSection

   and combinations thereof.

 * disabled OpenGL with the LIBGL_ALWAYS_SOFTWARE=1 

 * tried the 
	- intel X11 driver, the 
	- fbdev driver and the 
	- modesetting driver,
  in turn

 * installed the Intel Graphics For Linux, using the Intel Graphics Update Tool 2.0.2 for Ubuntu 16.04, 64-bit from https://01.org/linuxgraphics/

 * I've run the cordova app on the "good" system, and used X11 Forwarding... that works.  Running on the X556UA and forwarding to the other system displays the black window.

 * I've run the cordova-ubuntu program with every debug flag I could find in the QT modules:

LIBQML_DUMP_ERRORS=1 QML_XHR_DUMP=1 QML_CHECK_TYPES=1 QML_DEBUGGER_VERBOSE=1 MALIIT_DEBUG=1 \
  QT_QPA_EVDEV_DEBUG=1 QT_QPA_EGLFS_DEBUG=1 QT_QPA_EVDEV_DEBUG=1 QT_DEBUG_BACKINGSTORE=1 \
  QT_DEBUG_PLUGINS=1 DEBUG=1 ./cordova-ubuntu www/

which produces lots of output but doesn't actually report any problems.

Now, I'm about ready to declare myself officially stumped and can't proceed with development until I can see the app (and know this won't happen to users)...  Any ideas what else I can check?


For reference, the system's current graphics setup is:
 Card: Intel Sky Lake Integrated Graphics
 Display Server: X.Org 1.18.3 
 driver: intel 
 Resolution: 1920x1080@60.00hz
 GLX Renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2) 
 GLX Version: 3.0 Mesa 11.2.2



> Unable to drive display on Ubuntu 16.04 (black window)
> ------------------------------------------------------
>
>                 Key: CB-11870
>                 URL: https://issues.apache.org/jira/browse/CB-11870
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Ubuntu
>    Affects Versions: 6.3.1
>         Environment: Node version: v6.6.0
> Cordova version: 6.3.1
> Ubuntu: 16.04
> Compiz/Unity plugins: 'core', 'composite', 'opengl', 'regex', 'resize', 'commands', 'animation', 'snap', 'wall', 'place', 'compiztoolbox', 'imgpng', 'mousepoll', 'grid', 'unitymtgrabhandles', 'vpswitch', 'copytex', 'move', 'workarounds', 'session', 'fade', 'scale', 'expo', 'ezoom', 'unityshell'
>            Reporter: Pat Deegan
>            Assignee: Maxim Ermilov
>              Labels: blackwindow, ubuntu
>
> On a fresh install of both Ubuntu (16.04) and node/cordova, doing a standard "hello world" create/build/run:
> $ cordova create hello com.example.hello HelloWorld
> $ cd hello/
> $ cordova platforms add ubuntu
> $ cordova build ubuntu
> $ cordova run ubuntu
> yields a black screen.  Checking debug console (using chromium) seems to show the program is running correctly.  
> However, an strace of the process shows that the program starts up and then goes into a tight loop of polling on the /tmp/.X11-unix/X0 which gives a series of EAGAIN (resource unavailable) messages, e.g.
> recvmsg(6, 0x7ffe56802b20, 0)           = -1 EAGAIN (Resource temporarily unavailable)
> recvmsg(6, 0x7ffe56802b20, 0)           = -1 EAGAIN (Resource temporarily unavailable)
> Quick demo of entire process and result uploaded to
> https://youtu.be/dmsCJvHKyOs



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org