Bug reports
by ubeefx
Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins
Re: Bug reports
by Lodici » 06 Feb 2014, 12:13
Sorry, I work in Windows but that looks like what I would do. You will know if it has worked since the game log will be completely blank (including no titlebar).muaddib wrote:exec java -Xms256M -Xmx256M -jar Magarena.exe disableLogViewer
You might also want to try setting the -Xmx argument to -Xmx512M.
Re: Bug reports
by ShawnieBoy » 06 Feb 2014, 19:36
Created Insight and discovered that the AI then really dislikes playing green cards, to the point of preferring to discard a game-winning Cytospawn Shambler. I'm not sure how the AI scores making your opponent draw.
-
ShawnieBoy - Programmer
- Posts: 601
- Joined: 02 Apr 2012, 22:42
- Location: UK
- Has thanked: 80 times
- Been thanked: 50 times
Re: Bug reports
by Lodici » 07 Feb 2014, 06:05
I have added memory utilization stats to the About dialog (https://buildhive.cloudbees.com/job/mel ... arena/712/). When Magarena starts becoming sluggish please can you open the About dialog by clicking on the wizard icon in any options menu screen and let me know the figures displayed.muaddib wrote:exec java -Xms256M -Xmx256M -jar Magarena.exe disableLogViewer
Re: Bug reports
by TheNyGuy » 10 Feb 2014, 04:58
Thanks for an excellent UI and AI!
Hitting spacebar to pass is not recognized unless I first go to the Options/Settings menu by clicking on the Black and White book icon. Once I close the pop-up window, the spacebar is recognized. (Windows 8.1)
Hitting spacebar to pass is not recognized unless I first go to the Options/Settings menu by clicking on the Black and White book icon. Once I close the pop-up window, the spacebar is recognized. (Windows 8.1)
Re: Bug reports
by Lodici » 10 Feb 2014, 12:11
Thanks - tracking at http://code.google.com/p/magarena/issues/detail?id=481.TheNyGuy wrote:Thanks for an excellent UI and AI!
Hitting spacebar to pass is not recognized unless I first go to the Options/Settings menu by clicking on the Black and White book icon. Once I close the pop-up window, the spacebar is recognized. (Windows 8.1)
Re: Bug reports
by hong yie » 15 Feb 2014, 14:07
Ai may choose "No" when playing "Farhaven Elf".
While in most cases, more lands should be better, need to fix the heuristic search, i think.
when i click undo & play it again, the Ai might change its decision to search. what cause it choose yes / no ?
this Ai bug may cause decks using "search land" ability lost its strength when played in "firemind.ch"
While in most cases, more lands should be better, need to fix the heuristic search, i think.

when i click undo & play it again, the Ai might change its decision to search. what cause it choose yes / no ?
this Ai bug may cause decks using "search land" ability lost its strength when played in "firemind.ch"
-
hong yie - Programmer
- Posts: 216
- Joined: 10 Mar 2013, 06:44
- Location: Jakarta
- Has thanked: 75 times
- Been thanked: 9 times
Re: Bug reports
by ShawnieBoy » 15 Feb 2014, 15:12
I've noticed this occasionally with Solemn Simulacrum too - A MagicSimpleMayChoice.SEARCH_LAND would fix it, unless you can assign defaults to MagicMayChoice?
-
ShawnieBoy - Programmer
- Posts: 601
- Joined: 02 Apr 2012, 22:42
- Location: UK
- Has thanked: 80 times
- Been thanked: 50 times
Re: Bug reports
by hong yie » 16 Feb 2014, 05:54
is this mean we need to change the "timing" property in the card script?ShawnieBoy wrote:I've noticed this occasionally with Solemn Simulacrum too - A MagicSimpleMayChoice.SEARCH_LAND would fix it, unless you can assign defaults to MagicMayChoice?
i think putting "yes" as default value is a good way to fix it, as long as nothing in the card script is effected.
-
hong yie - Programmer
- Posts: 216
- Joined: 10 Mar 2013, 06:44
- Location: Jakarta
- Has thanked: 75 times
- Been thanked: 9 times
Re: Bug reports
by Lodici » 16 Feb 2014, 14:10
The jvm ran out of memory. Assuming you are using Windows, in the same folder as magarena.exe, create a new text file and name it "Magarena.l4j.ini". Open the file in notepad, add "-Xmx512m" and save. This will increase the memory available to the jvm from 256M to 512M. You can check this in the latest 1.47 snapshot build by clicking on the wizard image to open the About dialog which now displays memory usage.hong yie wrote:i found a crash.
don't understand what happened here.
Re: Bug reports
by hong yie » 17 Feb 2014, 01:39
This update is available in next version?Lodici wrote:The jvm ran out of memory. Assuming you are using Windows, in the same folder as magarena.exe, create a new text file and name it "Magarena.l4j.ini". Open the file in notepad, add "-Xmx512m" and save. This will increase the memory available to the jvm from 256M to 512M. You can check this in the latest 1.47 snapshot build by clicking on the wizard image to open the About dialog which now displays memory usage.
if its already set for next version, i'll consider it solved then.
i'm sure all players would like to have more stable Magarena and most of us have more than 2GB RAM in their system already, it should be set as default (i think).

-
hong yie - Programmer
- Posts: 216
- Joined: 10 Mar 2013, 06:44
- Location: Jakarta
- Has thanked: 75 times
- Been thanked: 9 times
Re: Bug reports
by Lodici » 18 Feb 2014, 00:01
No, the INI fix is something you have to do manually and this only applies to Windows. I agree the default 256M is too low but to set the default "-Xmx" consistently across all platforms will require an update to the central CI build process I think. Which means more work for @melvin.hong yie wrote:This update is available in next version?

-
ShawnieBoy - Programmer
- Posts: 601
- Joined: 02 Apr 2012, 22:42
- Location: UK
- Has thanked: 80 times
- Been thanked: 50 times
Re: Bug reports
by melvin » 18 Feb 2014, 01:46
Increased maximum heap size from 256M to 512M, https://code.google.com/p/magarena/sour ... ae15e698db
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Who is online
Users browsing this forum: No registered users and 0 guests