WNDPROC return value cannot be converted to LRESULT

asked 2023-05-18 02:15:48 -0500

felixf4xu gravatar image

Hi,

I'm building ros2 humble from source on Windows 11, when I run colcon like this:

colcon build --packages-select google_benchmark_vendor

I got outupt messages as:

Finished <<< google_benchmark_vendor [1.45s]
Summary: 1 package finished [3.14s]

It seems that the build succeeded?

I also got messages as:

WNDPROC return value cannot be converted to LRESULT
TypeError: WPARAM is simple, so must be an int object (got NoneType)

I'm not sure about the last 2 lines of message, is it an error of colcon? cmake? some python code? does it matter?

edit retag flag offensive close merge delete

Comments

Somehow I got the same messages, and I think it is not related to Colcon but it's in the code we're trying to compile.

renepo gravatar image renepo  ( 2023-06-01 02:31:43 -0500 )edit

Hi, do you find any solution for this matter?

cooperhhhr gravatar image cooperhhhr  ( 2023-06-06 13:59:28 -0500 )edit

It's possible this is a problem with Colcon's desktop notification extension.

Could you try rerunning your build but add --event-handlers desktop_notification- to the arguments?

gvdhoorn gravatar image gvdhoorn  ( 2023-06-06 23:39:08 -0500 )edit

I got the same Message and package failed due to this error. Any update?

yerkgb gravatar image yerkgb  ( 2023-06-20 04:17:03 -0500 )edit
1

Have you tried running with the argument I suggested? That would give a clue as to whether the problem is in the notifications or not.

I got the same Message and package failed due to this error

if it's the same message it should not cause a failed build of a package.

gvdhoorn gravatar image gvdhoorn  ( 2023-06-20 05:43:19 -0500 )edit

Yes, you are right. It is not causing any fail to build the packages. There are other problems.

with your argument message is disappeared.

yerkgb gravatar image yerkgb  ( 2023-06-20 07:16:09 -0500 )edit

If running your build with --event-handlers desktop_notification- avoids the WPARAM error message, please post about your issue on colcon/colcon-notification/issues.

You can link it to this post on ROS Answers.


Edit: colcon/colcon-notification#64.

gvdhoorn gravatar image gvdhoorn  ( 2023-06-20 11:12:03 -0500 )edit