Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Decimal separator char in sumo-gui with Mac OS X ??

Hello,
I don't know why this should happen and cannot suggest a fix that avoids recompilation. We regularly use SUMO in Germany where the decimal separator is also ',' and we never ran into this issue. I supopose it is some interaction of the computers 'Locale' settings and the fox toolkit library version.
I've added the suggested fix to the codebase so you could use the latest development version and it should work.
regards,
Jakob

2018-06-18 13:01 GMT+02:00 P. Pablo Garrido Abenza <pgarrido@xxxxxx>:

Hi,

After having worked several months with SUMO v0.25.0 + Veins 4.4 + OMNeT++ in Mac OS X without problems, suddenly simulations abort just at the begining (t=0.2s). I don't know why, perhaps some application installed a few days ago with MacPorts upgraded some library.

The following error is shown in the SUMO server log:

Done with proxy mode, killing SUMO
Done running SUMO
Cleaning up
Result: "<?xml version="1.0"?>
<status>
    <exit-code>-6</exit-code>
    <start>1529245446</start>
    <end>1529245482</end>
    <status>Exited with error code -6</status>
    <stdout><![CDATA[Loading configuration... done.
]]></stdout>
    <stderr><![CDATA[FXSevenSegment doesnt support: ,
]]></stderr>
</status>

After several days with this, it seems that the problem is when sumo-gui tries to represent the value 0.2 in the 7-segments displays. Thinking that in Spain the decimal separator char is ',' (comma), so the value is 0,2, I've modified the FXSevenSegment.cpp file such as it be the same as 0.2 (with dot):

// draw the specific character - figure out which segments to draw
void FXSevenSegment::drawFigure(FXDCWindow& dc, FXchar figure) {
    switch (figure) {
         ...
       case '_' :
       case '.' :
       case ',' :    <---- added

Now, 0,2 is the same that 0.2, and it works!!. However, I would like to know if somebody know the reason for this problem, and if the modification done is correct. Is there any other way to solve this without recompiling SUMO? Is there any parameter to configure the decimal separator char in SUMO?

Many thanks in advance.
Pablo


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



Back to the top