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.
When running out of disk space and running background scanning, the IDE opens a lot of/seemingly infinite number of warning dialogs. I couldn't see what the warning is about because I have to kill the JVM in order to make my system usable again. It would be useful if the IDE could check whether another dialog is already display notifying about the issue.
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)