Bug 531383 - Variables view shows com.sun.jdi.InvocationException occurred invoking method
Summary: Variables view shows com.sun.jdi.InvocationException occurred invoking method
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-20 07:00 EST by Lars Vogel CLA
Modified: 2022-07-20 12:11 EDT (History)
2 users (show)

See Also:


Attachments
Screenshot (28.60 KB, image/png)
2018-02-20 07:00 EST, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2018-02-20 07:00:19 EST
Created attachment 272749 [details]
Screenshot

In I20180218-2000 I cannot view the values of variables anymore, I only see a com.sun.jdi.InvocationException, see screenshot.

Eclipse SDK
Version: Photon (4.8)
Build id: I20180218-2000
OS: Linux, v.4.13.0-32-generic, x86_64 / gtk 3.22.25, WebKit 2.18.6
Comment 1 Lars Vogel CLA 2018-02-20 07:08:37 EST
This seems not a general problem but related to certain elements. To test, put a breakpoint afgter CTabFolder line 2808 (ToolBar chevron = getChevron();) and try to see chevron in the Variable viewl
Comment 2 Andrey Loskutov CLA 2018-02-20 10:05:43 EST
Most likely you can't do this for all things running in UI thread, right? If so, this is because SWT has thread checks which do no tallow other threads to mess up with widgets.
Comment 3 Lars Vogel CLA 2018-02-20 11:29:20 EST
(In reply to Andrey Loskutov from comment #2)
> Most likely you can't do this for all things running in UI thread, right?

I have a hard time parsing that comment. I'm using the "Variables" view in the debugger. The display of this view always happens in the main thread. Also the code I'm debugging is in the main thread.
Comment 4 Andrey Loskutov CLA 2018-02-20 11:52:58 EST
The code evaluation in the debuggee is executed not in UI thread, but you most likely want to access something which can be accessed from UI thread only => exception. I wonder if the error log view doesn't show the original exception?
Comment 5 Eclipse Genie CLA 2020-07-28 17:04:05 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 6 Eclipse Genie CLA 2022-07-20 12:11:28 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.