GeoReferencingSystem not working on dedicated server but seems to work fine in the editor

I’m getting the following error when the game loads on the server:

LogGeoReferencing: Error: proj_create: no database context specified
LogGeoReferencing: Error: AGeoReferencingSystem::GetEllipsoid failed in proj_create : generic error of unknown origin
LogGeoReferencing: Display: CRSString was : EPSG:32617
LogGeoReferencing: Error: proj_create: no database context specified
LogGeoReferencing: Error: AGeoReferencingSystem::GetEllipsoid failed in proj_create : generic error of unknown origin
LogGeoReferencing: Display: CRSString was : EPSG:4327

I’m working off of the 5.1 branch.

Using the editor utility widget the coordinates seem fine; however, when I’m running the server it never seems to properly load.

Has anyone else seen this or know how to fix it?

I am experiencing the same behavior.

Running in the editor works as expected, but cooked and packaged builds fail. Are you still experiencing this issue?

I encountered the exact same issue with 5.1. Did you find the solution?

Sorry guys, I haven’t seen your questions before…

This was indeed reported by some customers, and this problem has been fixed in UE 5.3.

It should theoretically be possible to backport it to previous versions by merging inside Engine\Plugins\Runtime\GeoReferencing\Source\GeoReferencing\Private\GeoReferencingSystem.cpp the changes made around line 925 from 5.3 sources.

Note that you need to cook AND package the server to have the right data files staged along your server data files.

Hi Alban, i’m on 5.3.0 and experiencing this issue. what do you recommend?

specifically, the error i’m getting in my packaged build is:

[2023.10.22-19.05.38:263][  0]LogGeoReferencing: Display: Setting search path in ../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ 
[2023.10.22-19.05.38:263][  0]LogGeoReferencing: Display: Setting search path in ../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ 
[2023.10.22-19.05.38:263][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.ini'
[2023.10.22-19.05.38:263][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.ini'
[2023.10.22-19.05.38:264][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.ini'
[2023.10.22-19.05.38:264][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.ini'
[2023.10.22-19.05.38:264][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.db'
[2023.10.22-19.05.38:264][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.db'
[2023.10.22-19.05.38:264][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.db'
[2023.10.22-19.05.38:264][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.db'
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.db'
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.db'
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.db'
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: FUFSProj::open '../../../Engine/Plugins/Runtime/GeoReferencing/Resources/PROJ/proj.db'
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: Error: proj_create: no database context specified
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: Error: proj_create: no database context specified
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: Error: AGeoReferencingSystem::BuildProjection failed in proj_create_crs_to_crs : Unknown error (code 2) 
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: Error: AGeoReferencingSystem::BuildProjection failed in proj_create_crs_to_crs : Unknown error (code 2) 
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: Display: SourceCRS was : EPSG:3857 
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: Display: SourceCRS was : EPSG:3857 
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: Display: DestinationCRS was : EPSG:4326 
[2023.10.22-19.05.38:265][  0]LogGeoReferencing: Display: DestinationCRS was : EPSG:4326 

& lat/lon/alts are resolving with values like: lon: -2908, lat: -9193…

I’m building to target: Linux and running via ./MyApp.sh -Windowed

For anyone else experiencing this: I resolved (short term) by copy+pasting the Georeferencing plugin folder from my UnrealEngine plugins/runtime folder to the output package folder at the path in the Setting search path in log line (so that when UE looks for ..../Resources/PROJ it exists.

1 Like

Some additional comments for people finding this thread

  • We just found a bug specific to Linux, where the PROJ files were not included in the pak files. It has been fixed and will be part of our next release, but meanwhile, you can apply it by editing Engine\Plugins\Runtime\GeoReferencing\Source\GeoReferencing\GeoReferencing.Build.cs and replacing the folder delimiters in @“Resources\PROJ*”); by @“Resources/PROJ/*”);
  • Some users using a computer with strong security settings (no admin rights) reported the proj.db file could not be opened. It happens when installed in “Program files”. Installing the engine in another writable location should fix it. (proj.db is opened with a write access request)

If you need to diagnose, you can always raise the verbosity level of this plugin with this console command : Log LogGeoreferencing Verbose

1 Like

thanks for the follow up Alban! your suggestion didn’t work for me - (I recompiled the Plugin using RunUAT with your suggested change, replaced the Engine/Plugin/Runtime/GeoReferencing content with the built output, then re-started and re-built my Unreal project with no difference in the output.).