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.

Bug 253802 - Code completion options: cursor flickers after saving options
Summary: Code completion options: cursor flickers after saving options
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-26 10:22 UTC by markiewb
Modified: 2015-09-01 14:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sampling snapshot (50.21 KB, application/octet-stream)
2015-07-26 10:22 UTC, markiewb
Details
Shows screenshot of the relevant part of the sampling (275.95 KB, image/png)
2015-07-26 10:23 UTC, markiewb
Details
Video of issue (412.89 KB, image/gif)
2015-07-26 10:45 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2015-07-26 10:22:46 UTC
Created attachment 154902 [details]
Sampling snapshot

* Open java file
* Open Options|Editor|Code Completion|Java
* Add space char in text field for "Auto popup triggers for java"
* Press OK to close the options
* Move mouse cursor to the java file 

ACTUAL:
* mouse cursor flickers >500ms (from Pointer- to Editor-cursor) -> NB seems to be very busy

Product Version: NetBeans IDE 8.1 Beta (Build 201507231027)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\markiewb\AppData\Roaming\NetBeans\8.1beta
Cache directory: C:\Users\markiewb\AppData\Local\NetBeans\Cache\8.1beta
Comment 1 markiewb 2015-07-26 10:23:20 UTC
Created attachment 154903 [details]
Shows screenshot of the relevant part of the sampling
Comment 2 markiewb 2015-07-26 10:45:31 UTC
Created attachment 154904 [details]
Video of issue
Comment 3 markiewb 2015-07-26 10:49:01 UTC
Update: The usage of the editor is blocked while flickering
Comment 4 Theofanis Oikonomou 2015-08-17 08:47:34 UTC
When hitting OK in options dialog then modified editor options are saved. From the snapshot it seems that the saving itself takes less than 500ms. I guess editor needs to update its status to depict the modified stuff and this is causing the freeze. Not sure though so reassigning for evaluation. Thank you
Comment 5 Milutin Kristofic 2015-08-17 15:17:22 UTC
I cannot reproduce this behaviour on linux. 

I don't see any cursor playing except of 748ms of org.netbeans.modules.options.OptionsPanel.clearSearchField() ... with many setVisible and updateCursors. 

Maybe if you can skip this step if search was not used, it would help with this issue. Sending back to Fanis for evaluation.
Comment 6 Theofanis Oikonomou 2015-08-18 09:04:53 UTC
Changeset: 2e1a80497c9f
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2015-08-18 12:03
Message:
Comment 7 Theofanis Oikonomou 2015-08-18 09:06:19 UTC
(In reply to Milutin Kristofic from comment #5)
> 
> Maybe if you can skip this step if search was not used, it would help with
> this issue. Sending back to Fanis for evaluation.

fair enough. done. Hopefully a few cycles are spared now.
Comment 8 Quality Engineering 2015-08-20 01:27:25 UTC
Integrated into 'main-silver', will be available in build *201508200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2e1a80497c9f
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #253802 - Code completion options: cursor flickers after saving options
Comment 9 markiewb 2015-09-01 14:39:29 UTC
(In reply to Quality Engineering from comment #8)
> Integrated into 'main-silver', will be available in build *201508200002* on
> http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
> 
> Changeset: http://hg.netbeans.org/main-silver/rev/2e1a80497c9f
> User: Theofanis Oikonomou <theofanis@netbeans.org>
> Log: Task #253802 - Code completion options: cursor flickers after saving
> options

Looks better now. Verified
Product Version: NetBeans IDE Dev (Build 201509010002)