UE5.3 Packaging error when enable convai plugin

Getting the following error when I try to package project:
fatal error LNK1169: one or more multiply defined symbols found

~400 lines like this in log
*UATHelper: Packaging (Windows): upb.lib(upb.obj) : error LNK2005: [blank] already defined in libprotobuf.lib

Tried making a blank project with just a metahuman and getting the same errors. Error disappears when I disable convai plugin.

I have uninstalled/reinstalled convai and metahuman plugin twice to see if it was an installation issue.

no issues with convai in editor.

Hello @iz.j,

Welcome to the Convai Developer Forum!

Could you please share the log file?

Full log is ~500 lines

UATHelper: Packaging (Windows): Executing up to 16 processes, one per physical core UATHelper: Packaging (Windows): ------ Building 2 action(s) started ------

UATHelper: Packaging (Windows): [1/2] Link [x64] PR.exe

UATHelper: Packaging (Windows): libprotobuf-lite.lib(arena.obj) : error LNK2005: “private: void * __cdecl google::protobuf::Arena::AllocateAlignedNoHook(unsigned __int64)” (?AllocateAlignedNoHook@Arena@protobuf@google@@AEAAPEAX_K@Z) already defined in libprotobuf.lib(arena.obj)

UATHelper: Packaging (Windows): libprotobuf.lib(map_field.obj) : error LNK2005: "public: virtual int __cdecl google::protobuf::internal::DynamicMapField::size(void)const " (?size@DynamicMapField@internal@protobuf@google@@UEBAHXZ) already defined in libprotobuf.lib(map_field.obj)

UATHelper: Packaging (Windows): upb.lib(upb.obj) : error LNK2005: upb_alloc_global already defined in Module.GMP.4.cpp.obj

UATHelper: Packaging (Windows): upb.lib(msg.obj) : error LNK2005: _upb_array_realloc already defined in array.c.obj

UATHelper: Packaging (Windows): upb.lib(msg.obj) : error LNK2005: _upb_mapsorter_pushmap already defined in map_sorter.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_inttable_count already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_inttable_lookup already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_inttable_next already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_inttable_remove already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_inttable_replace already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_inttable_sizedinit already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_strdup2 already defined in strdup2.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_strtable_begin already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_strtable_clear already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_strtable_done already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_strtable_iter_isequal already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_strtable_iter_key already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_strtable_iter_setdone already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_strtable_iter_value already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_strtable_lookup2 already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_strtable_next already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(table.obj) : error LNK2005: upb_strtable_resize already defined in common.c.obj

UATHelper: Packaging (Windows): upb.lib(text_encode.obj) : error LNK2005: txtenc_nullz already defined in text_encode.c.obj

UATHelper: Packaging (Windows): Creating library C:\Users\16078\wkspaces\PR\Binaries\Win64\PR.lib and object C:\Users\16078\wkspaces\PRBinaries\Win64\PRexp UATHelper: Packaging (Windows): C:\Users\16078\wkspaces\PR\Binaries\Win64\PR.exe : fatal error LNK1169: one or more multiply defined symbols found

UATHelper: Packaging (Windows): Total time in Parallel executor: 13.57 seconds UATHelper: Packaging (Windows): Total execution time: 17.14 seconds

UATHelper: Packaging (Windows): Took 17.26s to run dotnet.exe, ExitCode=6

UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\16078\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\UBT-PR-Win64-Development.txt)

UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 18s

UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)

UATHelper: Packaging (Windows): BUILD FAILED PackagingResults: Error: Unknown Error

Could you please try this?

Thanks! The libprotobuf errors are gone but there are still LNK2005 ~30 errors that are not present after I disable the convai plugin.

ex:
upb.lib(upb.obj) : error LNK2005: upb_alloc_global already defined in Module.GMP.4.cpp.obj

other files: array.c.obj, map_sorted.c.obj, common.c.obj

Which version of Convai Plugin are you using?

I am using 3.6

1 Like

I suspect there is a conflict between the Convai plugin and another plugin that is enabled in your project. Could you please provide your .uproject file so we can check?
Moreover, just to confirm, please ensure that all the plugins enabled in your project are listed in the .uproject file.

I think it is conflicting with the GMP plugin: GitHub - wangjieest/GenericMessagePlugin: A complete event system solution for Unreal Engine : Send or Receive Message everywhere!

{
“FileVersion”: 3,
“EngineAssociation”: “5.3”,
“Category”: “”,
“Description”: “”,
“Modules”: [
{
“Name”: “ORPlannerContent”,
“Type”: “Runtime”,
“LoadingPhase”: “Default”
}
],
“Plugins”: [
{
“Name”: “RemoteControlWebInterface”,
“Enabled”: false
},
{
“Name”: “RemoteControl”,
“Enabled”: false
},
{
“Name”: “LevelSnapshots”,
“Enabled”: true
},
{
“Name”: “ModelingToolsEditorMode”,
“Enabled”: true
},
{
“Name”: “StaticMeshEditorModeling”,
“Enabled”: true
},
{
“Name”: “SkeletalMeshModelingTools”,
“Enabled”: true
},
{
“Name”: “NIS”,
“Enabled”: true,
“MarketplaceURL”: “https ://www.unrealengine.com/marketplace/en-US/product/nvidia-dlss”
},
{
“Name”: “DLSS”,
“Enabled”: true,
“MarketplaceURL”: “https ://www.unrealengine.com/marketplace/en-US/product/nvidia-dlss”
},
{
“Name”: “GMP”,
“Enabled”: true,
“MarketplaceURL”: “com.epicgames.launcher://ue/marketplace/product/b92f7efebd46473f947622e0b37b1970”
},
{
“Name”: “PixelStreaming”,
“Enabled”: true
},
{
“Name”: “PixelStreamingPlayer”,
“Enabled”: true
},
{
“Name”: “BlueprintFileUtils”,
“Enabled”: true
},
{
“Name”: “AutomationDriverTests”,
“Enabled”: true
},
{
“Name”: “FunctionalTestingEditor”,
“Enabled”: true
},
{
“Name”: “DLSSMoviePipelineSupport”,
“Enabled”: true,
“MarketplaceURL”: “https ://www.unrealengine.com/marketplace/en-US/product/nvidia-dlss”
},
{
“Name”: “RigLogic”,
“Enabled”: true
},
{
“Name”: “LiveLinkControlRig”,
“Enabled”: true
},
{
“Name”: “AppleARKitFaceSupport”,
“Enabled”: true,
“SupportedTargetPlatforms”: [
“IOS”,
“Win64”,
“Mac”,
“Linux”,
“Android”
]
},
{
“Name”: “HairStrands”,
“Enabled”: true
},
{
“Name”: “HISPlayer”,
“Enabled”: false
},
{
“Name”: “CameraCapture”,
“Enabled”: true,
“MarketplaceURL”: “com.epicgames.launcher://ue/marketplace/content/bd323c0b2ce54b0fa13496316d4bfc35”
},
{
“Name”: “StreamlineDeepDVC”,
“Enabled”: true,
“MarketplaceURL”: “https ://www.unrealengine.com/marketplace/en-US/product/nvidia-dlss”
},
{
“Name”: “Streamline”,
“Enabled”: true,
“MarketplaceURL”: “https ://www.unrealengine.com/marketplace/en-US/product/nvidia-dlss”
},
{
“Name”: “HDRIBackdrop”,
“Enabled”: true
},
{
“Name”: “HolodeckSimulation”,
“Enabled”: true
},
{
“Name”: “ARVRFunctionalTestUtility”,
“Enabled”: true
},
{
“Name”: “Fab”,
“Enabled”: false
},
{
“Name”: “UnityVersionControl”,
“Enabled”: true,
“MarketplaceURL”: “com.epicgames.launcher://ue/marketplace/product/d971a6f8262e4066ba77cbd67a375884”
},
{
“Name”: “PakLoader”,
“Enabled”: true,
“MarketplaceURL”: “com.epicgames.launcher://ue/marketplace/content/fb9820b9b5c24f8ba178b2a11a61063f”
},
{
“Name”: “StreamlineDLSSG”,
“Enabled”: true,
“MarketplaceURL”: “https ://www.unrealengine.com/marketplace/en-US/product/nvidia-dlss”
},
{
“Name”: “StreamlineCore”,
“Enabled”: true,
“MarketplaceURL”: “https ://www.unrealengine.com/marketplace/en-US/product/nvidia-dlss”
},
{
“Name”: “StreamlineReflex”,
“Enabled”: true,
“MarketplaceURL”: “http s://www.unrealengine.com/marketplace/en-US/product/nvidia-dlss”
},
{
“Name”: “ConvAI”,
“Enabled”: true,
“MarketplaceURL”: “com.epicgames.launcher://ue/marketplace/product/696326c90d80462b8775712d2b6cc2a7”
}
]
}

Thank you for getting back to me!