Bug 236961 - Black screen in Embedded WebKit Browser in the simple HelloWorld app
Black screen in Embedded WebKit Browser in the simple HelloWorld app
Status: NEW
Product: platform
Classification: Unclassified
Component: Embedded Browser
7.4
PC Linux
: P3 with 2 votes (vote)
: TBD
Assigned To: Stanislav Aubrecht
issues@platform
:
: 243134 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-09 18:44 UTC by sealexer
Modified: 2014-03-30 15:32 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
:


Attachments
IDE log (63.10 KB, text/plain)
2013-10-09 18:44 UTC, sealexer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sealexer 2013-10-09 18:44:48 UTC
Steps to reproduce:
1. New Project - Java Web - Web Application
2. Specify bundled tomcat instance
3. After creation: Project properties - Run - Display Browser on Run - Select Embedded WebKit Browser
4. Just run the app

Result: black screen in the area purposed for the page


Product Version = NetBeans IDE 7.4 RC2 (Build 201309252201)
Operating System = Linux version 3.4.47-2.38-desktop running on amd64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Comment 1 sealexer 2013-10-09 18:44:56 UTC
Created attachment 140960 [details]
IDE log
Comment 2 Stanislav Aubrecht 2013-10-14 14:24:06 UTC
Cannot reproduce in 

Product Version: NetBeans IDE Dev (Build 20131009-59920d5335a3)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Linux version 3.8.0-29-generic running on amd64; UTF-8; en_US (nb)


Reporter, what flavor or Linux are you running?
Comment 3 sealexer 2013-10-14 21:00:18 UTC
OpenSuse 12.2 with KDE
Comment 4 chunkyks 2013-10-16 23:25:41 UTC
I'm observing the same thing, in the new version of netbeans [7.4 release]:

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Linux version 3.5.0-41-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/gbriggs/.netbeans/7.4
Cache directory: /home/gbriggs/.cache/netbeans/7.4

gbriggs@gbriggs-desktop:~/Downloads$ lsb_release -a
LSB Version:	core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 12.10
Release:	12.10
Codename:	quantal
gbriggs@gbriggs-desktop:~/Downloads$ 


I'm using LXDE as my desktop environment.
Comment 5 patkoscsaba 2013-10-20 11:38:58 UTC
Same problem here with a simple PHP project. The content appears for a fraction of a second, then the browser tab turns black. See the video below:

https://dl.dropboxusercontent.com/u/18447347/netbeans_black_preview.mkv

Operating system: Sabayon Linux 64 bits, running KDE 4.11
Linux Kernel: 3.11.0
Netbeans: 7.4 final.
Oracle JDK: 1.7.0_25
Comment 6 Stanislav Aubrecht 2013-10-29 13:49:12 UTC
JavaFX supports only Ubuntu 10.2 or better.
Comment 7 Stanislav Aubrecht 2013-10-29 13:49:49 UTC
(In reply to chunkyks from comment #4)

> I'm using LXDE as my desktop environment.

Reporter, does it make any difference when you switch your desktop environment?
Comment 8 patkoscsaba 2013-10-29 14:24:38 UTC
@Stanislav

>JavaFX supports only Ubuntu 10.2 or better.

Does this mean/imply that __ONLY__ Ubuntu users can use NetBeans' built-in browser?
Comment 9 patkoscsaba 2013-11-09 09:30:38 UTC
Updated to latest JDK. Still the same problem. There is some additional information in this other bug report. It seems to be NVidia graphics related: https://netbeans.org/bugzilla/show_bug.cgi?id=237691

System details:

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.11.0-sabayon running on amd64; UTF-8; en_US (nb)
User directory: /home/csaba/.netbeans/7.4
Cache directory: /home/csaba/.cache/netbeans/7.4
Comment 10 sealexer 2013-11-11 10:56:56 UTC
Yes, my graphics adapter is NVidia too.

# sudo lspci -v -s 02:00.0
02:00.0 VGA compatible controller: NVIDIA Corporation G96 [GeForce 9500 GT] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Device 82f1
        Flags: bus master, fast devsel, latency 0, IRQ 24
        Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at f8000000 (64-bit, non-prefetchable) [size=32M]
        I/O ports at ac00 [size=128]
        [virtual] Expansion ROM at fbb80000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia

(Using drivers downloaded from nvidia.com/drivers: NVIDIA-Linux-x86_64-319.60.run)
Comment 11 rmuller 2013-11-21 13:17:07 UTC
Same here, the content appears for a fraction of a second, then the browser tab turns black.

Ubuntu 12.04 LTS x64
Oracle Java 7u45
Netbeans 7.4
NVIDIA Corporation MCP78S [GeForce 8200]
02:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce G210] (rev a2) (prog-if 00 [VGA controller])
        Subsystem: Pegatron Device 9045
        Flags: bus master, fast devsel, latency 0, IRQ 19
        Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at de000000 (64-bit, prefetchable) [size=32M]
        I/O ports at ec00 [size=128]
        [virtual] Expansion ROM at feb80000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia_304, nouveau, nvidiafb
Comment 12 websafe 2013-12-19 16:35:38 UTC
I'm on Linux with Nvidia too, but I think this is not Nvidia related. The problem is caused by the canvas added at the end of the previewed html.

Currently I'm using a quick workaround, I' just added this code:

~~~~ html
<script>
    $(document).ready(function(){
        function hideNetbeansGlassPane() {
            $('#netbeans_glasspane').remove();
        }
        setTimeout(hideNetbeansGlassPane, 500);
    });
</script>
~~~~

at the end of HTML generated by the app I'm working on. It's basically about hiding `<canvas id="netbeans_glasspane" ...` which is added at the end of generated HTML (You can see this right click on browser -> dump document).
Canvas needs to be destroyed/hidden after a small delay. Directly on `.ready` without a delay will not work as expected.

http://devlog.websafe.pl/2013/12/19/black-screen-netbeans-embedded-webkit-browser-workaround/
Comment 13 Vladimir Riha 2014-02-05 09:14:23 UTC
Reproduced on Mac with Nvidia graphic card as well and it is caused by the canvas added to enable web inspection

Product Version: NetBeans IDE Dev (Build 201402050001)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b128
System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)
Comment 14 Vladimir Riha 2014-03-21 20:12:51 UTC
*** Bug 243134 has been marked as a duplicate of this bug. ***
Comment 15 Vladimir Riha 2014-03-21 20:13:22 UTC
reporter from issue 243134 has  ATI HD Radeon 5500 graphic card
Comment 16 MentatGilbertus 2014-03-30 15:32:02 UTC
(In reply to websafe from comment #12)

Thanks for workaround. You can compress it to:

$(document).ready(function() {
  setTimeout(function() { $('#netbeans_glasspane').remove(); }, 500);
});

Also clean javascript version:

setTimeout(function() {
  e = document.getElementById('netbeans_glasspane');
  e.parentNode.removeChild(e);
}, 500);

Anyone know how to permanently disable canvas inclusion?


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo