Unhandled event loop exception

Added by R P about 1 year ago

Hello,

I am just starting to learn both Eclipse and CUTE, so I'm following the instructions here:
http://cute-test.com/projects/cute/wiki/Using_the_CUTE_Eclipse_Plugin

When I run the example CUTE project as a "Local C/C++ Application" (Run As -> 2 Local C/C++ Application), it seems to run fine. I get the following output in the console which shows the test failing, as expected:

#beginning AllTests 1

#starting thisIsATest

#failure thisIsATest ../src/Test.cpp:7 thisIsATest: start writing tests

#ending AllTests

However, when I run the example as a "CUTE Test" (Run As -> 1 CUTE Test), I don't see the CUTE "Test Results" console.

A "Progress Information" dialog box briefly flashes on screen, then disappears, and then I get a link to optionally submit an error for something to do with an unhandled exception.

This is the link:

https://dev.eclipse.org/recommenders/community/aeri/v2/#!/submissions/MBXO4s4hKkSTIvgOmEI5uU2KanR4Vcd7BoUyqePr4kV8fSQrayUUGOU9ZhCrfBqX

I am on 64-bit Linux Mint, running this Eclipse version:
Version: Neon Release (4.6.0)
Build id: 20160613-1800

What am I doing wrong?

Thank you,
RP


Replies (5)

RE: Unhandled event loop exception - Added by Mario Meili 12 months ago

Dear RP,

I will gladly look into the problem you stated above. However, I need a bit more information from your side.

Can you please specify which menu you use for running the test? Do you right-click on the project and run from the menu appearing there or do you run the test from the menu bar in CDT?

Best regards,
Mario

RE: Unhandled event loop exception - Added by R P 10 months ago

Mario,

Per the user guide (http://cute-test.com/projects/cute/wiki/Using_the_CUTE_Eclipse_Plugin), I right-click on the project (in the Project Explorer view on the left hand side), then click "Run As" -> "1 CUTE Test," and I see the error described in the original post.

If I try running from the top menu bar in CDT (Click "Run" -> "Run As" -> "1 CUTE Test"), I see the same error.

I also tried running using the green Play button just under the top menu bar. I click on the black down arrow to show the Play button's drop down menu, then in the drop-down menu I click "Run As" -> "1 CUTE Test", and an error dialog box pops up. The error dialog box has the title "Application Launcher" and has the message "Launch Failed. Binary Not Found."

Thank you for any help you can provide,
RP

RE: Unhandled event loop exception - Added by R P 10 months ago

Mario,

Never mind, I got it working by following the instructions within Eclipse's internal help pages.

In Eclipse's top menu, I clicked Help -> CUTE Help -> Getting Started.

Those instructions are slightly different than the instructions given on the online guide (http://cute-test.com/projects/cute/wiki/Using_the_CUTE_Eclipse_Plugin).

In particular, in the internal Help page, there is a step (Step 3) that says to create a new "CUTE Test" Run Configuration. This step is not in the online guide.

Anyway, with that extra step, I am now able to see the Cute Test Results console with the green/red bar indicating test success/failure.

So it's working now.

Thank you for your help,
RP.

RE: Unhandled event loop exception - Added by Mario Meili 10 months ago

Hi RP

It is true that the above mentioned step about the run configuration is missing in the wiki description. However, if you run your project as a CUTE test and there is no existing "CUTE Test" run configuration, one should be created automatically. I think the problem could be that the "CUTE Test Results" view just did not open.

To verify, you could try to open the view manually by clicking "Window" -> "Show View" -> "Other...". This opens a windows of all available views. Under "C/C++" you can find the "Test Results" view. Click on it and you should be able to see the results of your test run.

Please let me know if you have any further questions.

BR
Mario

RE: Unhandled event loop exception - Added by R P 10 months ago

Mario,

To try out what you said, I first deleted the "CUTE Test" run configuration that I previously created manually.

Then I tried what you said: I clicked "Window" -> "Show View" -> "Other..." -> "Test Results". This shows the "Test Results" view, but it was already being shown anyway. So I closed it manually, then re-tried (clicked "Window" -> "Show View" -> "Other..." -> "Test Results"), and the "Tests Results" console re-appears at the bottom of the app window.

But then when I try to run the CUTE Test app (on the top menu bar, I click "Run" -> "Run As" -> "1 CUTE Test"), I am back to the original problem in the original post in this thread: I see an error popup box in the bottom right corner of the screen about an "Unhandled event loop exception." See attached screenshot.

So it seems that in my case, for some reason, that step of manually creating the CUTE Test run configuration is required.

RP

CUTE_error screenshot_2016-12-07_23-59-23.jpg - Unhandled event loop exception (119 KB)

(1-5/5)