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 270750

Summary: Moving across source file cause sync to disc (this is not even editing!!)
Product: editor Reporter: gavenkoa
Component: NavigationAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description gavenkoa 2017-05-26 21:14:03 UTC
Moving across source file cause sync to disc (this is not even editing!!).

I hate annoying sound from my hard drive.

Application shouldn't call sync on UP/DOWN key movement.

I run strace and it shown:

$ strace  -o nb.log -f /opt/netbeans-8.2/bin/netbeans

27796 open("/home/user/.netbeans/8.2/var/log/uigestures", O_WRONLY|O_CREAT|O_APPEND, 0666) = 160
...
27798 write(160, "<record>\n  <date>2017-05-27T00:0"..., 1934 <unfinished ...>
27798 <... write resumed> )             = 1934
27798 fsync(160 <unfinished ...>

on each key press in editor buffer.

Please disable logging of user actions and never force sync in production builds!
Comment 1 gavenkoa 2017-05-26 21:21:24 UTC
Just installed latest NB and have the same behavior.
Comment 2 gavenkoa 2017-05-26 21:22:06 UTC
Linux kernel sync FS by default each 5 sec. No need for sync at all!
Comment 3 gavenkoa 2017-05-26 21:39:28 UTC
I believe that this crap is responsible for irrelevant `sync` syscall:

http://wiki.netbeans.org/UIGesturesCollector

As this report says: https://netbeans.org/bugzilla/show_bug.cgi?id=219302

***The only way to really disable uigesture recording is to disable the IDE Branding plugin.***

Thanks God for good people!