Skip to main content

Hi everyone,

I’m running into an issue where FME hangs while reading a DWG file using the ACAD reader. The translation process stops and doesn’t progress past the following message:

while reading dwg file translation will be stopped by 'LogCount_func' Loaded module 'LogCount_func' from file 'C:\Program Files\FME\plugins/LogCount_func.dll' FME API version of module 'LogCount_func' matches current internal version (4.0 20240212)

 

Additionally, when using a PythonCaller with arcpy, I can confirm that the Python Factory locale is being flipped from UTF-8 (German_Austria.utf8) to ANSI (German_Austria.1252):

import locale print("Startup locale:", locale.getlocale()) import arcpy print("After arcpy:", locale.getlocale())

Output:

Startup locale: ('German_Austria', 'utf8') After arcpy: ('German_Austria', '1252')

This matches the warnings shown in the FME log:

PythonFactory script changed the current FME process locale from 'German_Austria.utf8' to 'German_Austria.1252' and FME has restored it back to 'German_Austria.utf8'. It is undefined behavior to change locale and doing so may cause unexpected errors. For more information, visit http://fme.ly/PythonLocaleError

Hi ​@jugoslaviaa 

I’m sorry you are experiencing this issue! 

Which version of FME are you using? 
Which Esri application do you have installed on your machine, and what version are you using?
Can you please send your log file? 


Reply