taisbellini / aiyra

An extendable Java simulator of Paje traces
2 stars 0 forks source link

Problem with comments #1

Open schnorr opened 8 years ago

schnorr commented 8 years ago

Hi, I'm having a problem when trying to simulate a file with lines starting with # (which are comments according to the Paje specification). Here's what I got:

$ java br.ufrgs.inf.tlbellini.PajeGrammar -f /home/schnorr/dev/pajeng/traces/gattaca.trace -p pjdump NOK. Encountered " "# "" at line 4, column 1. Was expecting one of:

... "%EventDef" ... ... Do you have an idea of what might be the problem? Possibly related to the recent changes I have commited (but I'm not acquainted enough to JavaCC syntax in the jj file to fix this problem). When I remove those lines, I get: $ java br.ufrgs.inf.tlbellini.PajeGrammar -f gattaca.trace -p pjdump State, "Process", "STATE", 1.0464E-5, 1.0959E-5, 4.949999999999995E-7, 1.0, g State, "Process", "STATE", 1.278E-5, 1.317E-5, 3.8999999999999965E-7, 1.0, c State, "Process", "STATE", 1.4382E-5, 1.4796E-5, 4.1399999999999976E-7, 1.0, a State, "Process", "STATE", 1.5792E-5, 1.6134E-5, 3.4199999999999774E-7, 1.0, t State, "Process", "STATE", 1.6386E-5, 1.6659E-5, 2.730000000000023E-7, 1.0, g State, "Process", "STATE", 1.6944E-5, 1.722E-5, 2.760000000000021E-7, 1.0, c State, "Process", "STATE", 1.8138E-5, 1.8462E-5, 3.2399999999999893E-7, 1.0, u State, "Process", "STATE", 0.0, 1.8741E-5, 1.8741E-5, 1.0, main Container, "pc", "P", 0.0, 1.8741E-5, 1.8741E-5, "Process" Container, 0, 0, 0.0, 1.8741E-5, 1.8741E-5, 0 Container, 0, "machine", 0.0, 1.8741E-5, 1.8741E-5, "Linux" Container, "Linux", "node", 0.0, 1.8741E-5, 1.8741E-5, "pc" Time: 82142 NOK. br.ufrgs.inf.tlbellini.plugins.PajeDumpPlugin cannot be cast to br.ufrgs.inf.tlbellini.plugins.PajeInsertDBPlugin Which seems okay, except that I have a "NOK" and this "cannot be cast to" message at the end. Insights? Thanks for your work.
taisbellini commented 8 years ago

Hi,

Sorry for not answering earlier, I did not have notifications set for this repo.

Apparently, by your commits, nothing on the grammar has changed. It's been a while since a file with comments was tested, so it may be a problem generated earlier. I will make some tests with the trace files I have this weekend and get back to you if I need your specific example. Do you remember if those first trace file examples had any comment? (simu-mardi, traces.paje, etc.)

About the second issue, I think it is because of a change I have partially commited, I'll solve as soon as possible.

schnorr commented 8 years ago

The trace file gattaca.trace from pajeng has comments. You can try to reproduce the problem as previously described.

taisbellini commented 8 years ago

Commited a fix for the second problem.

taisbellini commented 8 years ago

The problematic line is: # (en.wikipedia.org/wiki/Needleman-Wunsch_algorithm), acessed 29 Nov 2014

When I remove the "-" and then add it again the program works. I have no idea of what can be causing it. Is it possible that there is an encoding issue?