Dear all
I fixed it. The problem is misusing strcpy.
However it also reveals an issue of Omnet++/Veins/SUMO:
Sometimes the Omnet++ simulation Qtenv somehow crashes but prints no
meaningful message

On Thu, Apr 7, 2022 at 2:55 AM Thanhnt Nguyen <[email protected]> wrote:

> Good news
> By setting each C statement to comment, I get the reason of crash:
> char *ret = strcat(cstr, new_str);
> both cstr and new_str are two arrays of char.
> The statement is available in line 76 of RSUControlApp as well as line 123
> of VehicleControlApp. If I delete these lines, the simulation could run to
> the end.
>
> However, I don't understand why Omnet++ crashes while only running instead
> of debugging.
>
> On Wed, Apr 6, 2022 at 5:56 PM Thanhnt Nguyen <[email protected]>
> wrote:
>
>> Dear all,
>> From now on, I know how to build my own project for simulating traffic.
>> However, I get stuck on a new small problem.
>> The purpose of my project is very simple: every car periodically sends
>> messages to RSU and other cars. RSU replies immediately, other cars don't
>> respond.
>> All messages are in TraCIDemo11pMessage format
>> The problem is that: my project crashes very quickly and as usual,
>> Omnet++ IDE reports only "Finished with Error"  - no sense at all.
>> Ironically, as debugging, the simulation could finish without any error
>> I could not identify the bug and how to fix it.
>>
>> My project is located here: https://github.com/bkhnk48/tutorials
>> If you can't install my project, this video
>> <https://www.youtube.com/watch?v=mGvhbrw05sQ> could help
>>
>>
>
> --
> Nguyen Tien Thanh
> Department of Software Engineering
> School of Information and Communication Technology (SoICT,
> http://www.fit.hut.edu.vn)
> Hanoi University of Technology (HUT, http://www.hut.edu.vn)
> 1 DaiCoViet Road, Hanoi, Vietnam
> Tel: +84-4-8682595/8683730 Fax +84-4-8692906
> Mobile: +84987768886
> E-mail: [email protected]
>            [email protected]
>            [email protected]
> Website: www.fit.hut.edu.vn/~thanhnt
> <http://www.fit.hut.edu.vn/%7Ethanhnt>
>


-- 
Nguyen Tien Thanh
Department of Software Engineering
School of Information and Communication Technology (SoICT,
http://www.fit.hut.edu.vn)
Hanoi University of Technology (HUT, http://www.hut.edu.vn)
1 DaiCoViet Road, Hanoi, Vietnam
Tel: +84-4-8682595/8683730 Fax +84-4-8692906
Mobile: +84987768886
E-mail: [email protected]
           [email protected]
           [email protected]
Website: www.fit.hut.edu.vn/~thanhnt <http://www.fit.hut.edu.vn/%7Ethanhnt>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to