Bug 545535 - Autocomplete crashes sometimes
Summary: Autocomplete crashes sometimes
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.10   Edit
Hardware: PC Windows 10
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2019-03-19 05:20 EDT by Erich S. CLA
Modified: 2023-04-22 16:58 EDT (History)
3 users (show)

See Also:


Attachments
error logfile (313.12 KB, application/octet-stream)
2019-03-19 05:20 EDT, Erich S. CLA
no flags Details
Screenshot preferences (54.15 KB, image/png)
2019-04-30 02:29 EDT, Erich S. CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erich S. CLA 2019-03-19 05:20:14 EDT
Created attachment 277925 [details]
error logfile

From time to time Eclipse crashes after typing the Java object's point operator which calls the autocomplete function for methods, attributes etc.
Example: "myObject."
Unfortunately, I can't reproduce it. Sometimes Eclipse works several days without problems, sometimes it crashes 3 times per hour.

I already unsuccessfully tried the hint 
-Dorg.eclipse.swt.browser.DefaultType=mozilla

Some days ago I switched to openJDK. This had no (positive) effects, too.

This problem I got with Luna, Oxygen, Photon.

At this time I'm using:
Version: 2018-12 (4.10.0)
Build id: 20181214-0600
Comment 1 Andrey Loskutov CLA 2019-03-19 05:46:11 EDT
I believe this is a lucene/JDK issue with memory mapping via DirectByteBuffer.

See also https://www.google.com/search?q=java%20crash%20org.apache.lucene.store.DataInput.readVInt

I've seen EGit issues on Linux which caused crashes with memory mapping (bug 539918), I believe there were also few bug in JDK with memory mapped IO (http://www.mapdb.org/blog/mmap_files_alloc_and_jvm_crash/).

See also javadoc for MMapDirectory.

#  EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x0000000009cd88e3, pid=9852, tid=0x000000000000093c
#
# JRE version: OpenJDK Runtime Environment (8.0_201-b09) (build 1.8.0_201-1-ojdkbuild-b09)
# Java VM: OpenJDK 64-Bit Server VM (25.201-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# J 31270 C2 org.apache.lucene.store.DataInput.readVInt()I (132 bytes) @ 0x0000000009cd88e3 [0x0000000009cd8860+0x83]
#


Register to memory mapping:

RAX={method} {0x0000000038498208} 'readVInt' '()I' in 'org/apache/lucene/store/DataInput'
RBX={method} {0x0000000038498208} 'readVInt' '()I' in 'org/apache/lucene/store/DataInput'
RCX=0x00000000ce9abeb0 is an oop
org.apache.lucene.store.MMapDirectory$MMapIndexInput 
 - klass: 'org/apache/lucene/store/MMapDirectory$MMapIndexInput'
RDX=0x00000000ce9abeb0 is an oop
org.apache.lucene.store.MMapDirectory$MMapIndexInput 
 - klass: 'org/apache/lucene/store/MMapDirectory$MMapIndexInput'
RSP=0x00000000012fc460 is pointing into the stack for thread: 0x0000000004028000
RBP=0x000000000004fe1b is an unknown value
RSI=0x0000000000200020 is an unknown value
RDI=0x0000000000000002 is an unknown value
R8 =0x00000000000187c9 is an unknown value
R9 =0x00000000ce9abf10 is an oop
java.nio.DirectByteBufferR 
 - klass: 'java/nio/DirectByteBufferR'
Comment 2 Erich S. CLA 2019-04-30 02:26:48 EDT
After disabling some "proposal kinds" I could not observe any problems for the last days. :-o

See screenshot of my preferences ...
Comment 3 Erich S. CLA 2019-04-30 02:29:18 EDT
Created attachment 278439 [details]
Screenshot preferences
Comment 4 Vikas Chandra CLA 2019-04-30 05:24:29 EDT
I tried few things and not able to recreate. Perhaps comment#1
Comment 5 Vikas Chandra CLA 2019-04-30 05:25:18 EDT
Some steps that could help recreate this would help.
Comment 6 N247S - CLA 2019-05-06 16:16:21 EDT
I find that for me this is most likely to happen when my pc just woke up from sleep-mode or when my pc is just Idle for a while. I know that my laptop simply won't do data-access when in sleep-mode (at least not external via USB, hence why I regulary see 'failed to write to somefile.snap1 during auto-save' after which I usually restart eclipse).

Not sure if this is in any way connected, but at least a start for reproducing I hope.
Comment 7 Eclipse Genie CLA 2021-04-26 14:58:17 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 8 Eclipse Genie CLA 2023-04-22 16:58:21 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.