It is currently 15 Dec 2017, 19:59
   
Text Size

Bug Reports for Magarena 1.85

Moderators: melvin, beholder, ubeefx, ShawnieBoy, Lodici, CCGHQ Admins

Bug Reports for Magarena 1.85

Postby melvin » 28 May 2017, 13:35

To help us in addressing bugs, the best way is to create an issue on the issue tracker. This lets us keep track each report separately and ensures it doesn't get lost.
https://github.com/magarena/magarena/issues (requires github account)

For game play bugs, please include a gameplay report zip file. You can create a gameplay report by opening the options menu (press Esc during a duel) and selecting the "Gameplay Report" menu item.

Less preferred is to post your report in this thread. (requires forum account)

You can report anonymously via gitreports, note that name/email if provided will be listed on the issue tracker.
https://gitreports.com/issue/magarena/magarena (no sign-up required, name/email optional)
User avatar
melvin
AI Programmer
 
Posts: 1017
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 439 times

Re: Bug Reports for Magarena 1.85

Postby kannikkiy » 29 May 2017, 20:02

After running the application translated UI is not loaded. The program is crashed at attempt to edit translation file.
Attachments
crash.log
(7.11 KiB) Downloaded 24 times
kannikkiy
 
Posts: 48
Joined: 21 Apr 2013, 19:05
Has thanked: 3 times
Been thanked: 8 times

Re: Bug Reports for Magarena 1.85

Postby Lodici » 29 May 2017, 20:23

Possibly something to do with the encoding of the translation file. What makes me think that is the "crash.log" file you attached is not formatted correctly -
Code: Select all
       CRASH REPORT FOR MAGARENA THREAD Thread[AWT-EventQueue-0,6,main]       CREATED ON 2017/05/29 22:56:52       MAGARENA VERSION 1.85, JRE 1.8.0_121, OS Windows 7_6.1 x86       ================================
       Used Memory: 96M       Free Memory: 150M       Total Memory: 247M       Max Memory: 494M       ================================       -Xms256m       -Xmx512m       -Xverify:none                     Exception from controller.runGame: For input string: "?1033268948"       java.lang.NumberFormatException: For input string: "?1033268948"
...
and the "?1033268948" input string error described is actually the first entry in the file (there are only 3 new translations) -
1033268948 = ▫Layout
4068251502 = ▫Style
0763824768 = ▫Scale
0233421099 = Популярные колоды
0439905227 = Выигрышные колоды
...
So I am assuming it may be something similar with the translation file. To check, please can you attach the translation file you are trying to edit. You can open the folder containing it from the translation menu in the preferences dialog.
User avatar
Lodici
Programmer
 
Posts: 399
Joined: 13 Oct 2013, 09:44
Has thanked: 29 times
Been thanked: 71 times

Re: Bug Reports for Magarena 1.85

Postby Lodici » 29 May 2017, 20:42

I have managed to replicate by trying to edit the file using Notepad.

CRASH REPORT FOR MAGARENA THREAD Thread[AWT-EventQueue-0,6,main]
CREATED ON 2017/05/29 21:38:50
MAGARENA VERSION 1.85, JRE 1.8.0_121, OS Windows 7_6.1 x86
================================
Used Memory: 89M
Free Memory: 158M
Total Memory: 247M
Max Memory: 494M
================================
-Xms256m
-Xmx512m
-Xverify:none


Exception from controller.runGame: For input string: "?1033268948"
java.lang.NumberFormatException: For input string: "?1033268948"
at java.lang.NumberFormatException.forInputString(Unknown Source)
It is very important that the file is encoded as UTF-8 without BOM. Magarena will automatically do this for you when it creates the file. However because you will be editing the file using your preferred text editor, on saving your changes it is possible that an old or badly behaved editor (like Notepad) will change the file to a different encoding. If this happens then Magarena will not be able to load the translation file.

I use Notepad++ but Notepad2 is also very good if you prefer something closer to Notepad.
User avatar
Lodici
Programmer
 
Posts: 399
Joined: 13 Oct 2013, 09:44
Has thanked: 29 times
Been thanked: 71 times

Re: Bug Reports for Magarena 1.85

Postby kannikkiy » 31 May 2017, 16:44

Thank you!
Yes, the problem is illegal encoding.
kannikkiy
 
Posts: 48
Joined: 21 Apr 2013, 19:05
Has thanked: 3 times
Been thanked: 8 times

Re: Bug Reports for Magarena 1.85

Postby jerichopumpkin » 03 Jun 2017, 18:43

Quest for the Nihil Stone doesn't do the 5 damage if the opponent has a empty hand and it has 2 or more counters on it
jerichopumpkin
 
Posts: 201
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Bug Reports for Magarena 1.85

Postby jerichopumpkin » 03 Jun 2017, 18:57

crash report.
The game slowed down a lot, then the crash popup appeared. It was during the AI turn, and the game progressed even if the popup was there, as you can see from game.log
Attachments
crash.png
game.log
(38.25 KiB) Downloaded 22 times
crash.log
(86.86 KiB) Downloaded 20 times
jerichopumpkin
 
Posts: 201
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Bug Reports for Magarena 1.85

Postby Lodici » 03 Jun 2017, 20:13

jerichopumpkin wrote:crash report.
The game slowed down a lot, then the crash popup appeared. It was during the AI turn, and the game progressed even if the popup was there, as you can see from game.log
Thanks for the logs and screenshot, very helpful. The battlefield does not look particularly busy but looking at the crash.log, the VM memory allocation looks suspect. Max Memory should be at least 512M which launch4j should be setting. Are you running Magarena.exe or the Magarena.jar directly?

Used Memory: 241M
Free Memory: 6M
Total Memory: 247M
Max Memory: 247M
User avatar
Lodici
Programmer
 
Posts: 399
Joined: 13 Oct 2013, 09:44
Has thanked: 29 times
Been thanked: 71 times

Re: Bug Reports for Magarena 1.85

Postby Lodici » 03 Jun 2017, 20:20

If you open the About screen by clicking on the M logo in any screen you can see the current memory usage. For example you would expect to see something like the following usage just after the main menu is shown on starting Magarena,
ScreenShot00617.jpg
User avatar
Lodici
Programmer
 
Posts: 399
Joined: 13 Oct 2013, 09:44
Has thanked: 29 times
Been thanked: 71 times

Re: Bug Reports for Magarena 1.85

Postby jerichopumpkin » 04 Jun 2017, 10:59

Lodici wrote:
jerichopumpkin wrote:crash report.
The game slowed down a lot, then the crash popup appeared. It was during the AI turn, and the game progressed even if the popup was there, as you can see from game.log
Thanks for the logs and screenshot, very helpful. The battlefield does not look particularly busy but looking at the crash.log, the VM memory allocation looks suspect. Max Memory should be at least 512M which launch4j should be setting. Are you running Magarena.exe or the Magarena.jar directly?

Used Memory: 241M
Free Memory: 6M
Total Memory: 247M
Max Memory: 247M
I must use the magarena.jar file, as running Magarena.exe gives me this error: "Launch4j The registry refers to a nonexistent Java Runtime Enviroment installation or the runtime is corrupted. Impossibile trovare il file specificato(impossible to find the specified file)".

It started to show with build 1.82 I think. I've tried to reinstall Java on my machine, but other than that I did nothing before or after the error.
jerichopumpkin
 
Posts: 201
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Bug Reports for Magarena 1.85

Postby jerichopumpkin » 04 Jun 2017, 11:04

checked the memory values running Magarena.jar
Max: 247,5 Totalt: 126,8 Used:63,3 Free 63,5
but used kept raising and free going down as I watched them. I tried closing Magarena and restarting it and I had
Total: 121,1 Used: 110,2 Free: 9,9
and again used memory kept raising
jerichopumpkin
 
Posts: 201
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Bug Reports for Magarena 1.85

Postby jerichopumpkin » 04 Jun 2017, 11:23

I found a old post on a minecraft forum about the same error. Turned out that I had instaslled 32bit Java on a 64bit OS. Thanks Oracle for being more user-friendly...
Installed with the manual download Java 64bit and now Magarena.exe works again, I'm sorry I wasted your time :oops:
jerichopumpkin
 
Posts: 201
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Bug Reports for Magarena 1.85

Postby Lodici » 04 Jun 2017, 11:40

jerichopumpkin wrote:I found a old post on a minecraft forum about the same error. Turned out that I had instaslled 32bit Java on a 64bit OS. Thanks Oracle for being more user-friendly...
Installed with the manual download Java 64bit and now Magarena.exe works again, I'm sorry I wasted your time :oops:
No problem, I am glad you were able to sort it. I googled "Launch4j The registry refers to a nonexistent Java Runtime Enviroment installation" and it is obviously a common problem but was unable to find a definitive solution.

I actually run Windows 7 64-Bit with a 32-bit version of java so I am not sure it was specifically to do with that but I think maybe when you installed the 64-bit java it restored and fixed any corrupted settings. You might want to check Control Panel -> Java which opens the Java Control Panel, then click on the Java tab and click the View button. If it displays more than one version of java installed I would recommend uninstalling all versions via Control Panel -> Programs and Features and then re-installing the 64 bit version again. Finally, open a command line terminal and type "java -version" to ensure java can be found and it is the correct version.
User avatar
Lodici
Programmer
 
Posts: 399
Joined: 13 Oct 2013, 09:44
Has thanked: 29 times
Been thanked: 71 times

Re: Bug Reports for Magarena 1.85

Postby jerichopumpkin » 04 Jun 2017, 22:42

I run Win10, already checked if there where other java versions on my machine, and the command line prompts the right info.
I don't know, since I did try reinstalling Java before to solve the problem. What I actually did was uninstall it, then go to Oracle website and reinstall from there, thus getting the online version.
This time I downloaded the 64bit installer, run it, then it prompet me to remove older versions still present on the system.
I guess you also have the offline version, from what I've understood, the problem lies in the offline version
jerichopumpkin
 
Posts: 201
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Bug Reports for Magarena 1.85

Postby jerichopumpkin » 13 Jun 2017, 22:49

Cipher does not let you exile the spell encoded on a creature, at least for Stolen Identity
jerichopumpkin
 
Posts: 201
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Next

Return to Magarena

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 2 guests

Login Form