Ошибка инициализации

Ошибки при работе с ГИС Аксиома
Ответить
Аватара пользователя
pahanbl4
Сообщения: 20
Зарегистрирован: 11 окт 2019, 08:55

Ошибка инициализации

Сообщение pahanbl4 » 18 ноя 2019, 12:25

Здравствуйте! После переустановки Axioma с версии 2.3.2 на версию 2.4.1 перестал запускаться следующий код:

Код: Выделить всё

import sys

import axioma
import axioma.cs
import axioma.app
import axioma.gui
import axioma.render
import PyQt5
import PyQt5.QtCore
import PyQt5.QtGui
import PyQt5.QtWidgets

Код: Выделить всё

a = PyQt5.QtGui.QGuiApplication(sys.argv)
render = axioma.render.Render()
render.initialize()
PyCharm:
[Info ] <axioma::Core::initialize()::<lambda(const QString&)>> "�������� ����������� ��� �����: Russian"
[Info ] <axioma::Core::initialize()::<lambda(const QString&)>> "��������� �����������: qt"
[Info ] <axioma::Core::initialize()::<lambda(const QString&)>> "��������� �����������: qt_help"
[Info ] <axioma::Core::initialize()::<lambda(const QString&)>> "��������� �����������: qtpropertybrowser"
[Warning] <axioma::Core::initialize()::<lambda(const QString&)>> "�� ������� ��������� �����������: axioma"
[Info ] <void axioma::Core::initialize()> ������������� ���� (18.11.2019)
[Warning] <void axioma::Core::initLocalResourceDir() const> Unable to find " "xsd" " in default resource directory
[Warning] <void axioma::Core::initLocalResourceDir() const> Unable to find " "ExtendedStyles" " in default resource directory
[Info ] <void axioma::Core::printSystemInfo()> "�����������: x86_64"
[Info ] <void axioma::Core::printSystemInfo()> "x86_64-little_endian-llp64"
[Info ] <void axioma::Core::printSystemInfo()> "winnt"
[Info ] <void axioma::Core::printSystemInfo()> "6.1.7601"
[Info ] <void axioma::Core::printSystemInfo()> "Windows 7 SP 1 (6.1)"
[Info ] <void axioma::Core::printSystemInfo()> "���� � ����� ������: Oct 26 2019 14:51:12"
[Info ] <void axioma::Core::printSystemInfo()> "86c59123d141ed4b93f6c83e33d3cefc6f76fd7f"
[Info ] <void axioma::Core::printSystemInfo()> 132097
[Info ] <void axioma::Core::printSystemInfo()> ""
[Info ] <void axioma::Core::printSystemInfo()> HWID: vP4oNEFAO2Fb6QbZ9maI8w==
[Info ] <void axioma::Core::printSystemInfo()> AXIOMA_DATA: ""
[Info ] <static void axioma::geometry::GeosConvertable::initGeosLibrary()> GEOS version 3.6.2-CAPI-1.10.2 4d2925d6
[Debug ] <void axioma::cs::initProjLibEnvironment()> proj version=6.1.1
[Debug ] <void axioma::cs::initProjLibEnvironment()> proj path (PROJ_LIB)=E:/jenkins/workspace/win7_x64/project/third-party/out/share/proj
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'std::_Nested_exception<std::runtime_error>'
what(): Проблемы при инициализации модуля КС

Код: Выделить всё

a = axioma.app.AxiomaApplication(sys.argv)
gui = axioma.gui.Gui(a)
gui.initialize()
PyCharm:
[Info ] <axioma::Core::initialize()::<lambda(const QString&)>> "�������� ����������� ��� �����: Russian"
[Info ] <axioma::Core::initialize()::<lambda(const QString&)>> "��������� �����������: qt"
[Info ] <axioma::Core::initialize()::<lambda(const QString&)>> "��������� �����������: qt_help"
[Info ] <axioma::Core::initialize()::<lambda(const QString&)>> "��������� �����������: qtpropertybrowser"
[Warning] <axioma::Core::initialize()::<lambda(const QString&)>> "�� ������� ��������� �����������: axioma"
[Info ] <void axioma::Core::initialize()> ������������� ���� (18.11.2019)
[Warning] <void axioma::Core::initLocalResourceDir() const> Unable to find " "xsd" " in default resource directory
[Warning] <void axioma::Core::initLocalResourceDir() const> Unable to find " "ExtendedStyles" " in default resource directory
[Info ] <void axioma::Core::printSystemInfo()> "�����������: x86_64"
[Info ] <void axioma::Core::printSystemInfo()> "x86_64-little_endian-llp64"
[Info ] <void axioma::Core::printSystemInfo()> "winnt"
[Info ] <void axioma::Core::printSystemInfo()> "6.1.7601"
[Info ] <void axioma::Core::printSystemInfo()> "Windows 7 SP 1 (6.1)"
[Info ] <void axioma::Core::printSystemInfo()> "���� � ����� ������: Oct 26 2019 14:51:12"
[Info ] <void axioma::Core::printSystemInfo()> "86c59123d141ed4b93f6c83e33d3cefc6f76fd7f"
[Info ] <void axioma::Core::printSystemInfo()> 132097
[Info ] <void axioma::Core::printSystemInfo()> ""
[Info ] <void axioma::Core::printSystemInfo()> HWID: vP4oNEFAO2Fb6QbZ9maI8w==
[Info ] <void axioma::Core::printSystemInfo()> AXIOMA_DATA: ""
[Info ] <static void axioma::geometry::GeosConvertable::initGeosLibrary()> GEOS version 3.6.2-CAPI-1.10.2 4d2925d6

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'std::_Nested_exception<std::runtime_error>'
what(): Проблемы при инициализации модуля КС
[Error ] <void axioma::utils::signal_handler(int)> Program crashed with signal 22
[Error ] <> Backtrace:
C:\Program Files\Axioma.GIS\bin\libstdc++-6.dll: ZN10__cxxabiv129__pointer_to_member_type_infoD2Ev
C:\Program Files\Axioma.GIS\bin\libgcc_s_seh-1.dll: GCC_specific_handler
C:\Program Files\Axioma.GIS\bin\libstdc++-6.dll: _gxx_personality_seh0
C:\WINDOWS\SYSTEM32\ntdll.dll: _chkstk
C:\WINDOWS\SYSTEM32\ntdll.dll: RtlInitializeResource
C:\WINDOWS\SYSTEM32\ntdll.dll: RtlRaiseException
C:\WINDOWS\system32\KERNELBASE.dll: RaiseException
C:\Program Files\Axioma.GIS\bin\libgcc_s_seh-1.dll: Unwind_RaiseException
C:\Program Files\Axioma.GIS\bin\libstdc++-6.dll: _cxa_throw
C:\Program Files\Axioma.GIS\bin\core.dll: ZTv0_n64_NK6axioma8geometry18GeometryCollection12isCollectionEv
C:\Program Files\Axioma.GIS\bin\core.dll: ZN6axioma4Core19initCoordSysFactoryEv
C:\Program Files\Axioma.GIS\bin\core.dll: ZN6axioma6plugin10PluginInfo11METADATA_IDE
C:\Program Files\Axioma.GIS\bin\render.dll: ZN6axioma6Render10initializeEv
C:\Program Files\Axioma.GIS\bin\gui.dll: ZN6axioma3Gui10initializeEv
C:\Program Files\Axioma.GIS\bin\python\lib\site-packages\axioma_dynload\_gui.pyd: PyInit__gui
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyCFunction_Call
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_GetFuncDesc
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_EvalFrameEx
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_EvalFrameEx
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_EvalCode
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyAST_FromNode
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyAST_FromNode
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyCFunction_Call
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_GetFuncDesc
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_EvalFrameEx
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_EvalFrameEx
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_GetFuncDesc
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_GetFuncDesc
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_EvalFrameEx
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_GetFuncDesc
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_GetFuncDesc
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_EvalFrameEx
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_EvalFrameEx
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_GetFuncDesc
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_GetFuncDesc
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_EvalFrameEx
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_GetFuncDesc
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_GetFuncDesc
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_EvalFrameEx
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyEval_EvalFrameEx
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyRun_FileExFlags
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyRun_FileExFlags
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyRun_SimpleFileExFlags
C:\Program Files\Axioma.GIS\bin\python\python35.dll: PyRun_AnyFileExFlags
C:\Program Files\Axioma.GIS\bin\python\python35.dll: Py_hashtable_copy
C:\Program Files\Axioma.GIS\bin\python\python35.dll: Py_Main
C:\Program Files\Axioma.GIS\bin\python\python.exe: [0x1c161264]
C:\WINDOWS\system32\kernel32.dll: BaseThreadInitThunk
C:\WINDOWS\SYSTEM32\ntdll.dll: RtlUserThreadStart

Поможите! Прикладываю файл лога.
Вложения
axioma.gis.log
(2.55 МБ) 5 скачиваний
Аватара пользователя
Дмитрий
Сообщения: 18
Зарегистрирован: 04 июн 2019, 08:33

Re: Ошибка инициализации

Сообщение Дмитрий » 18 ноя 2019, 13:25

Здравствуйте!
Ошибка связана с трудностями при нахождении ресурсов для библиотеки proj.
В качестве временного решения можно задать переменную окружения в системе:
PROJ_LIB=C:\Program Files\Axioma.GIS\share\proj

Проблема исправляется.

Похожая проблема рассматривалась:
viewtopic.php?f=2&t=457
Аватара пользователя
pahanbl4
Сообщения: 20
Зарегистрирован: 11 окт 2019, 08:55

Re: Ошибка инициализации

Сообщение pahanbl4 » 19 ноя 2019, 05:57

Спасибо! Помогло!
Ответить