It is currently 17 Oct 2019, 12:37
   
Text Size

Help with MageTests Project

Moderators: TheElk801, BetaSteward, LevelX, North, noxx, JayDi, jeffwadsworth, CCGHQ Admins

Help with MageTests Project

Postby mjpirez » 29 Jun 2016, 20:48

I'm trying to create/run tests for cards but keep getting Out of Memory errors:

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.mage.test.cards.mana.ManaSourceTest
INFO [2016-06-29 15:29 [32:310]] MageTestPlayerBase[main]: Loading game type: mage.game.TwoPlayerMatch
INFO [2016-06-29 15:29 [32:320]] MageTestPlayerBase[main]: Loading plugin: mage.game.TwoPlayerMatch
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.708 sec
org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null
Exception in thread "main"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 14.008s
Finished at: Wed Jun 29 15:29:43 BRT 2016
Final Memory: 35M/1963M
------------------------------------------------------------------------


As you can see in Final Memory report, already adjusted the project properties to up the memory to no use.
Working on a 16Gb RAM machine.

I am right clicking the class then run test.

Thanks.
mjpirez
 
Posts: 4
Joined: 15 Jun 2016, 18:20
Has thanked: 0 time
Been thanked: 0 time

Re: Help with MageTests Project

Postby escplan9 » 30 Jun 2016, 15:33

Not sure, try googling the message (Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main") and I see some StackOverflow posts like this:
http://stackoverflow.com/questions/2464 ... rom-the-un

With a suggested additional option that may help.
escplan9
 
Posts: 257
Joined: 10 Aug 2015, 22:38
Has thanked: 26 times
Been thanked: 39 times

Re: Help with MageTests Project

Postby LevelX » 04 Jul 2016, 20:55

Did you set the memory as written in step 5 of the "Steps to retrieve, build and run XMage" from https://github.com/magefree/mage/wiki/D ... ng-Started.

Because you have to raise the default memory used from the maven process.
User avatar
LevelX
DEVELOPER
 
Posts: 1677
Joined: 08 Dec 2011, 15:08
Has thanked: 174 times
Been thanked: 374 times

Re: Help with MageTests Project

Postby mjpirez » 15 Jul 2016, 17:37

I've tried both suggestions before post here in the forum.
I already set the memory up to no use.

Never developed in Netbeans so I'm a lit bit confused.

Thanks for the input though.
mjpirez
 
Posts: 4
Joined: 15 Jun 2016, 18:20
Has thanked: 0 time
Been thanked: 0 time


Return to Developers Talk

Who is online

Users browsing this forum: No registered users and 1 guest


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 287 on 31 Mar 2019, 04:11

Users browsing this forum: No registered users and 1 guest

Login Form