Please use bullet points and include as much details as possible:
Run $ cyber_launch start modules/drivers/camera/launch/camera.launch or play a bag with the topic /apollo/sensor/camera/front_6mm/image in it
Run $ cyber_launch start modules/perception/production/launch/perception_camera.launch
It crashes most of the time, but launches sometimes as well
Crash message: [cyber_launch_24544] ERROR Process [mainboard_default_24544] has finished. [pid 24545, cmd mainboard -d /apollo/modules/perception/production/dag/dag_streaming_perception_camera.dag -p mainboard_default_24544 -s CYBER_DEFAULT].
Stack trace **Please ignore the line numbers in stack trace as they won't be the same as yours
size=1344) at external/com_google_protobuf/src/google/protobuf/descriptor.cc:1159
at external/com_google_protobuf/src/google/protobuf/descriptor.cc:3130
..., parent=0x0, result=0x48defad0)
at external/com_google_protobuf/src/google/protobuf/descriptor.cc:4348
proto=...) at external/com_google_protobuf/src/google/protobuf/descriptor.cc:4267
at external/com_google_protobuf/src/google/protobuf/descriptor.cc:4083
proto=...) at external/com_google_protobuf/src/google/protobuf/descriptor.cc:3421
this=0x1935970, name="modules/drivers/proto/sensor_image.proto")
at external/com_google_protobuf/src/google/protobuf/descriptor.cc:1732
name="modules/drivers/proto/sensor_image.proto")
at external/com_google_protobuf/src/google/protobuf/descriptor.cc:1334
filename="modules/drivers/proto/sensor_image.proto",
schemas=0x7f70ab26e5b0 <apollo::drivers::protobuf_modules_2fdrivers_2fproto_2fsensor_5fimage_2eproto::schemas>,
default_instances_=0x7f70ab4a5770 <apollo::drivers::protobuf_modules_2fdrivers_2fproto_2fsensor_5fimage---Type <return> to continue, or q <return> to quit---
_2eproto::file_default_instances>,
offsets=0x7f70ab26e1c0
file_level_metadata=0x7f70ab4afb80
file_level_enum_descriptors=0x7f70ab4afba0
file_level_service_descriptors=0x0)
at external/com_google_protobuf/src/google/protobuf/generated_message_reflection.cc:2311
at bazel-out/local-dbg/genfiles/modules/drivers/proto/sensor_image.pb.cc:108
at external/com_google_protobuf/src/google/protobuf/stubs/callback.h:129
once=0x7f70ab4afba8 <apollo::drivers::protobuf_modules_2fdrivers_2fproto_2fsensor_5fimage_2eproto::(anonymous namespace)::protobuf_AssignDescriptorsOnce()::once>, closure=0x7ffeb8fc4df0)
at external/com_google_protobuf/src/google/protobuf/stubs/once.cc:83
once=0x7f70ab4afba8 <apollo::drivers::protobuf_modules_2fdrivers_2fproto_2fsensor_5fimage_2eproto::(anonymous namespace)::protobuf_AssignDescriptorsOnce()::once>,
init_func=0x7f70ab2562c4 <apollo::drivers::protobuf_modules_2fdrivers_2fproto_2fsensor_5fimage_2eproto::(anonymous namespace)::protobuf_AssignDescriptors()>)
at external/com_google_protobuf/src/google/protobuf/stubs/once.h:128
at bazel-out/local-dbg/genfiles/modules/drivers/proto/sensor_image.pb.cc:113
at bazel-out/local-dbg/genfiles/modules/drivers/proto/sensor_image.pb.cc:342
at ./cyber/message/protobuf_traits.h:35
---Type
this=0x2148c60, attr=0x7ffeb8fc4f40) at ./cyber/node/node_channel_impl.h:218
at ./cyber/node/node_channel_impl.h:188
channel_name="/apollo/sensor/camera/front_6mm/image", reader_func=...)
at ./cyber/node/node_channel_impl.h:163
channel_name="/apollo/sensor/camera/front_6mm/image", reader_func=...) at ./cyber/node/node.h:158
(this=0x2142170) at modules/perception/onboard/component/fusion_camera_detection_component.cc:495
this=0x2142170) at modules/perception/onboard/component/fusion_camera_detection_component.cc:193
at ./cyber/component/component.h:120
dag_config=...) at cyber/mainboard/module_controller.cc:99
path="/apollo/modules/perception/production/dag/dag_streaming_perception_camera.dag")
at cyber/mainboard/module_controller.cc:128
at cyber/mainboard/module_controller.cc:64
at cyber/mainboard/module_controller.cc:33
Resolved this issue by tracing down an out of bound memory access in the same process
@DevMMI / @techoe could you please provide details about your fix? I have encountered the same problem.
Thanks in advance.
@natashadsouza
@DevMMI / @techoe could you please provide details about your fix? I have encountered the same problem.
Thanks in advance.
Hi, the issue was that I was indexing an array out of bounds in the component I was running. C++ won't give you a compile error when you do this, and therefore you'll have to track it down yourself.
I recommend you look through the core dump using GDB and try to spot roughly where it crashed, and use that to localize which files you'll need to audit. I also recommend you try a previous commit that worked, then see what changed in high risk files using tools like _www.diffchecker.com_. Good luck!
Most helpful comment
@DevMMI / @techoe could you please provide details about your fix? I have encountered the same problem.
Thanks in advance.