This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Something must crash (cannot use the IDE afterwards) | ||
---|---|---|---|
Product: | platform | Reporter: | davide_c |
Component: | Embedded Browser | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | dkonecny, mmirilovic, pjiricka, saubrecht, vriha |
Priority: | P3 | ||
Version: | 7.3.1 | ||
Hardware: | Macintosh (x86) | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
IDE profile snapshot
Log Screenshot - Before crash Screenshot - After Crash 1 Screenshot - After Crash 2 |
Description
davide_c
2013-08-29 15:47:21 UTC
Please provide the IDE log. A threaddump and a sampling snapshot (taken via JVisualVM) would also be useful for the diagnostics. Created attachment 139524 [details]
IDE profile snapshot
Uploaded IDE log (taken with NetBeans 7.4 Beta. Although, it happens on 7.3 as well).
IDE log can be accessed via top level menu View -> IDE Log. Could you attach it please? The profilling snapshot you've attached does not show anything unsual I think. I suspect that problem is directly in JavaFX implementation of embedded browser on your Mac platform. CCing PetrJ who has been running embedded browser on Mac without problems. Does embedded browser has problems rendering any html page or does it fail only on certain pages? After the crash happened, the menu is not available anymore, so I cannot access View->IDE Log. However, I've got good news. The issue is 100% reproducible. 1) Just create a new HTML5 project 2) In the index.html file add a simple select as follows: <!DOCTYPE html> <html> <head> <title>TODO supply a title</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width"> </head> <body> <div>TODO write content</div> <select> <option>abc1</option> <option>abc2</option> <option>abc3</option> </select> </body> </html> 3) Then select "Embedded Webkit Browser" and Run the application. 4) The page is shown correctly in the embedded browser. 5) Now click on Select (dropdown) and you'll see the crash. Please et me know if you have any problem in reproducing the issue. Thank for the steps, it works for me on linux. You can find IDE log file "manually", see [1] so please upload it here once the crash happens. It will also contain used JDK which could be important. Thank you [1] http://wiki.netbeans.org/FaqLogMessagesFile Created attachment 139610 [details]
Log
I noticed that at the moment I click on the dropdown (which is what triggers the issue) the following lines are added to the log (as you can see those are the last lines at the bottom of the attached log):
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.BrokenDataShadow@517b578b[MultiFileObject@68831113[Keymaps/NetBeans/D-BACK_QUOTE.shadow]]
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.BrokenDataShadow@517b578b[MultiFileObject@68831113[Keymaps/NetBeans/D-BACK_QUOTE.shadow]]
Please let me know if other information are needed (as said this is happening on Mac OS, 10.8.4)
Hi, I remember seeing problems like this before, when the main menu disappears. This is definitely a problem in JDK or JavaFX itself. I see you are using JDK 1.7.0_21, can you please try updating to the latest release? Currently version 1.7.0_25 is available. If that does not help, then a couple weeks the next update release (update 40) will be available, and this update fixes quite many bugs on Mac. You can download an "early access" build for this update at http://jdk7.java.net/download.html - that may also be worth trying? BTW, which model of Mac do you use? I know that some problems only affect some Mac models, e.g. Retina displays cause more problems than non-Retina. Log unfortunately does not contain anything relevant either. There is INFO [org.netbeans.core.browser.webview.ext.WebBrowserImpl] java.lang.Throwable: Connection refused by server [catch] at javafx.scene.web.WebEngine$LoadWorker.describeError(WebEngine.java:1147) ... but that could be a valid case of a typo in a resource URL or simply missing resource. Considering the simplicity of the test case this is likely a JDK or JavaFX issue. I'm using a Mac Book Pro, year 2008 (2.4GHz Core 2 Duo), so no retina display. I'll try to update from Java 1.7.0_21 to 1.7.0_25 as soon as possible, thanks. (In reply to Petr Jiricka from comment #7) > Hi, I remember seeing problems like this before, when the main menu > disappears. This is definitely a problem in JDK or JavaFX itself. > > I see you are using JDK 1.7.0_21, can you please try updating to the latest > release? Currently version 1.7.0_25 is available. > > If that does not help, then a couple weeks the next update release (update > 40) will be available, and this update fixes quite many bugs on Mac. You can > download an "early access" build for this update at > http://jdk7.java.net/download.html - that may also be worth trying? > > BTW, which model of Mac do you use? I know that some problems only affect > some Mac models, e.g. Retina displays cause more problems than non-Retina. Cc'ing Standa as the Swing guru who also implemented the embedded browser. Reporter, please attach a screen shot of the IDE main window when problem happens again, thanks. Created attachment 139705 [details]
Screenshot - Before crash
Created attachment 139706 [details]
Screenshot - After Crash 1
Created attachment 139707 [details]
Screenshot - After Crash 2
Added screeshots before and after as requested. Hope it helps. As said, on my Mac, the issue is 100% reproducible. Is that happening only on my machine or is anyone else able to reproduce it too (following the steps reported above)? This is very likely JavaFX WebKit browser issue and should be reported elsewhere. The steps from comment #4 work fine for me in Product Version: NetBeans IDE Dev (Build 20130916-c70779d8b4a6) 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: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb) Still cannot reproduce in Product Version: NetBeans IDE Dev (Build 20131125-5f4e1598a7f9) 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: Mac OS X version 10.9 running on x86_64; UTF-8; en_US (nb) Reporter, please reopen if the issue is still reproducible for you, thanks. |