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: | Limit number of warning dialogs for missing disk space | ||
---|---|---|---|
Product: | platform | Reporter: | kalle1 |
Component: | Filesystems | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | REOPENED --- | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
screenshot of fresh 7.4 installation after opening geotools-git with 20 MB free disk space
Patch (Draft) |
Description
kalle1
2014-01-14 22:35:43 UTC
Please attach a screen shot of that warning dialog and reopen, thanks. Created attachment 143979 [details] screenshot of fresh 7.4 installation after opening geotools-git with 20 MB free disk space Hi, I attach a screenshot of fresh 7.4 installation after opening all required projects of geotools-git (https://github.com/geotools/geotools.git) with 20 MB free disk space I provide the following script to set the disk space to desired size in a linux VM (ajust the avail_result_kb parameter of the function): <code> #!/usr/bin/python import re import subprocess as sp import tempfile as tmp def netbeans(avail_result_kb=20000): o = sp.check_output(["df", "/dev/sda1"]) avail_kb = int(re.split("[\\s]+", o.split("\n")[1])[3]) print("%d KB available, limiting to %d KB" % (avail_kb, avail_result_kb)) tmp_file_path = tmp.mkstemp()[1] tmp_file = open(tmp_file_path, "rw+") i = 0 while i < avail_kb-avail_result_kb: tmp_file.write(1024*"a") # write 2048 bytes as utf-8 string i = i+1 tmp_file.flush() tmp_file.close() if __name__ == "__main__": netbeans() </code> The result is sometimes only 5 dialogs (which is also bad because it should be just one), but the worst has been opening dialogs for a minute (I can only imagine #dialogs > 10000) Hello, thank you for the screenshot. Unfortunately, I still don't know what module creates these dialogs (maybe filesystem or indexing). Can you please also attach your IDE Log? (http://wiki.netbeans.org/FaqLogMessagesFile) Reproduced. The dialogs are created in org.netbeans.core.NotifyExcPanel.notify(). (A dialog is created for every localized exception). It might be better to use NotificationDisplayer instead of DialogDisplayer. Attaching draft of a patch that might be applied in the future. Further evaluation and testing is needed. (But, in the case of a insufficient disk space, the IDE was unusable anyway.) Thank you for reporting. Created attachment 144254 [details]
Patch (Draft)
|