[1.3.b89] Table double row on expanded dice roll macro

Confirmed bugs should get a single post here. Check the READ ME FIRST sticky thread for the format.

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice, MapTool BugReport Manager

Forum rules
Posts that do not conform to the READ ME FIRST sticky thread are subject to deletion.
Post Reply
Dracones
Cave Troll
Posts: 68
Joined: Mon Nov 14, 2011 8:04 pm
Location: Fort Pierce, FL

[1.3.b89] Table double row on expanded dice roll macro

Post by Dracones »

Basically create a simple macro like the below.

Code: Select all

<table border='1'>
<tr>
<td>Attack</td>
<td>Damage</td>
</tr>
<tr>
<td>[e:d20 + 1]</td>
<td>[e:1d4 + 2]</td>
</tr>
</table>
This will produce output like this:

Image

I'm seeing this with 1.6 and 1.7 Oracle Java on Ubuntu. Switching the [e to a [r fixes the issue.

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: [1.3.b89] Table double row on expanded dice roll macro

Post by wolph42 »

this error does NOT occur on win7, both j6 and j7. There is however another report from another linux user that also mentions double line output happening in b89 but NOT in b87.

Hence the question: could you try this also in build 87?

also: what happens when you remove the 'e:'
e.g try this

Code: Select all

<pre>
result
[r:1d10]
expanded
[e:1d10]
default
[1d10]
 

Dracones
Cave Troll
Posts: 68
Joined: Mon Nov 14, 2011 8:04 pm
Location: Fort Pierce, FL

Re: [1.3.b89] Table double row on expanded dice roll macro

Post by Dracones »

If I remove the e I get the same double row. I don't see this in 87.

So far I've tested this with Oracle Java 1.6, 1.7 and OpenJDK Java 1.7. Two different computers, both are Ubuntu.

If the other report was in the announce thread, that was me. I just wanted to put it in a proper bug thread and see if other people are experiencing it.

Dracones
Cave Troll
Posts: 68
Joined: Mon Nov 14, 2011 8:04 pm
Location: Fort Pierce, FL

Re: [1.3.b89] Table double row on expanded dice roll macro

Post by Dracones »

I have a Windows XP VM at work, so I installed Java and Maptools b89 on that.

Seeing the same thing: http://tarsis.org/me/maptool/windows_vm.png

Here's the debug info of that install: http://tarsis.org/me/maptool/windows_debug.txt

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: [1.3.b89] Table double row on expanded dice roll macro

Post by wolph42 »

Dracones wrote:If I remove the e I get the same double row. I don't see this in 87.

So far I've tested this with Oracle Java 1.6, 1.7 and OpenJDK Java 1.7. Two different computers, both are Ubuntu.

If the other report was in the announce thread, that was me. I just wanted to put it in a proper bug thread and see if other people are experiencing it.
the other post was from someone else and concerned a FW which has this issue, but its a safe bet that its the same issue. (especially cause that other person also uses linus). 'Danmathman' IRC. I asked him to make a bug report as well.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: [1.3.b89] Table double row on expanded dice roll macro

Post by Azhrei »

How about the debug information? The data from the Help > Gather Debug Info... menu option?

There's got to be something about the environment that is causing the difference. I'm guessing it's going to be the update level of Java, but I can't be sure without seeing the debug info...

Dracones
Cave Troll
Posts: 68
Joined: Mon Nov 14, 2011 8:04 pm
Location: Fort Pierce, FL

Re: [1.3.b89] Table double row on expanded dice roll macro

Post by Dracones »

Windows XP Java 1.7 debug: http://tarsis.org/me/maptool/windows_debug.txt

Ubuntu Java 1.6 debug: http://tarsis.org/me/maptool/debug_work_1_6.txt
Ubuntu Java 1.7 debug: http://tarsis.org/me/maptool/debug_work_1_7.txt

On the Windows install, I downloaded the Java SE JDK today.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: [1.3.b89] Table double row on expanded dice roll macro

Post by Azhrei »

Hm. I'm still thinking that it's the new smiley patch that is somehow interacting with the specific version/platform of Java (I mentioned this in another thread somewhere). It could be that a malformed regex is handled one way on one system and another way on a different system (ie. the Java runtime uses the functions provided by the native platform).

I've added this to my list. Worst case I'll simply back out the smiley patch from b90 and we'll see if the problem persists.


User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: [1.3.b89] Table double row on expanded dice roll macro

Post by Azhrei »

Sure. I'm going to look at the patch first, but if it looks suspect I'll build a JAR and create a thread in the Testers forum.

rz2yoj
Kobold
Posts: 1
Joined: Tue Aug 12, 2014 11:23 pm

Re: [1.3.b89] Table double row on expanded dice roll macro

Post by rz2yoj »

Ran into this bug. Windows 7, 32-bit JRE 6.

Here's a very simplified example:

Code: Select all

a [d20] b [d20]
Outputs something like this:

Code: Select all

a « d20 = 5 » bb « d20 = 19 »
Note that the "b" is repeated.

Unchecking the "Insert Smilies" checkbox in the preferences fixes the problem.

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: [1.3.b89] Table double row on expanded dice roll macro

Post by aliasmask »

Yes, this is a known bug and smilies have been turned off in b90.

Post Reply

Return to “Bug Reports”