-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v251 database module crashes #3248
Comments
Notes: never forget to update |
Code to replicate:Launch MAPDLansys251 -grpc -port 50053 Python code
|
The above code fails at the second attemp on a live instance. |
Given the following script: from ansys.mapdl.core import launch_mapdl
from ansys.mapdl.core.examples import vmfiles
ip = "leon5"
port = 50052
mapdl = launch_mapdl(start_instance=False, ip=ip, port=port)
mapdl._ctrl("set_verb", 5)
mapdl.db.start()
## Just trying combinations
mapdl.db.stop() # not relevant
mapdl.db.start() # not relevant
mapdl.db.stop() # not relevant
mapdl.exit() # not relevant
##
mapdl = launch_mapdl(start_instance=False, ip=ip, port=port)
mapdl._ctrl("set_verb", 5)
mapdl.db.start() # always crash It always crashes at the last However in: from ansys.mapdl.core import launch_mapdl
from ansys.mapdl.core.examples import vmfiles
ip = "leon5"
port = 50052
mapdl = launch_mapdl(start_instance=False, ip=ip, port=port, clear_on_connect=False)
mapdl._ctrl("set_verb", 5)
mapdl.db.start()
mapdl = launch_mapdl(start_instance=False, ip=ip, port=port, clear_on_connect=False)
mapdl._ctrl("set_verb", 5)
mapdl.db.start() # always crash there is no crash. It seems that |
it seems that |
Interestingly, if I try to relunch the plugin mechanism: mapdl = launch_mapdl(start_instance=False, ip=ip, port=port, clear_on_connect=False)
mapdl._ctrl("set_verb", 5)
mapdl.db.start()
mapdl.clear()
mapdl.run("*PLUG,LOAD,GrpcDb") I get: /OUTPUT FILE= anstmp
cmd: *PLUG,LOAD,GrpcDb
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1723020316.195199 1988648 descriptor_database.cc:633] File already exists in database: mapdl_db.proto
F0000 00:00:1723020316.195783 1988648 descriptor.cc:2120] Check failed: GeneratedDatabase()->Add(encoded_file_descriptor, size)
*** Check failure stack trace: ***
linking # this is my changes
linking
linking
forrtl: error (76): Abort trap signal
Image PC Routine Line Source
libc.so.6 00007F6407E3E6F0 Unknown Unknown Unknown
libc.so.6 00007F6407E8B94C Unknown Unknown Unknown
libc.so.6 00007F6407E3E646 raise Unknown Unknown
libc.so.6 00007F6407E287F3 abort Unknown Unknown
libabsl_log_inter 00007F629808B1C2 _ZN4absl12lts_202 Unknown Unknown
libabsl_log_inter 00007F629808B4C5 Unknown Unknown Unknown
libabsl_log_inter 00007F629808B714 _ZN4absl12lts_202 Unknown Unknown
libabsl_log_inter 00007F629808B859 _ZN4absl12lts_202 Unknown Unknown
libprotobuf.so.25 00007F629D201DF4 Unknown Unknown Unknown
libprotobuf.so.25 00007F629D2BA407 _ZN6google8protob Unknown Unknown
ld-linux-x86-64.s 00007F6448BF407E Unknown Unknown Unknown
ld-linux-x86-64.s 00007F6448BF416C Unknown Unknown Unknown
libc.so.6 00007F6407F561A5 _dl_catch_excepti Unknown Unknown
ld-linux-x86-64.s 00007F6448BFAB5E Unknown Unknown Unknown
libc.so.6 00007F6407F56148 _dl_catch_excepti Unknown Unknown
ld-linux-x86-64.s 00007F6448BFAF5F Unknown Unknown Unknown
libc.so.6 00007F6407E85CBC Unknown Unknown Unknown
libc.so.6 00007F6407F56148 _dl_catch_excepti Unknown Unknown
libc.so.6 00007F6407F56213 _dl_catch_error Unknown Unknown
libc.so.6 00007F6407E8578E Unknown Unknown Unknown
libc.so.6 00007F6407E85D71 dlopen Unknown Unknown
libCKernel.so 00007F6415990112 _ZN12C_DynLibrary Unknown Unknown
libansys.so 00007F641D8D3A02 _ZN11C_PluginMgr1 Unknown Unknown
libansys.so 00007F641D9816C2 _ZN14C_APDLMathPl Unknown Unknown
libansys.so 00007F641D980473 _ZN14C_APDLMathPl Unknown Unknown
libansys.so 00007F641D086930 _ZN10C_APDLMath14 Unknown Unknown
libansys.so 00007F641D084F4B apdlmath_ Unknown Unknown
libansys.so 00007F6426246927 Unknown Unknown Unknown
libansys.so 00007F6426231E1E rdcmd_ Unknown Unknown
libansys.so 00007F64273C802B utcmd_ Unknown Unknown
ansys.e 00000000004100A6 Unknown Unknown Unknown
libansys.so 00007F64204DAF01 runcommand_ Unknown Unknown
libGrpcMapdl.so 00007F629FFBB188 _ZN18C_MapdlServi Unknown Unknown
libGrpcMapdl.so 00007F62A007C924 Unknown Unknown Unknown
libgrpc++.so.1.60 00007F629F463BF8 _ZN4grpc6Server11 Unknown Unknown
libgrpc++.so.1.60 00007F629F464B88 _ZN4grpc6Server24 Unknown Unknown
libgrpc++.so.1.60 00007F629F468673 _ZN4grpc13ThreadM Unknown Unknown
libgrpc++.so.1.60 00007F629F4687EC _ZN4grpc13ThreadM Unknown Unknown
libgpr.so.37.0.0 00007F629DCE1763 Unknown Unknown Unknown
libc.so.6 00007F6407E89C02 Unknown Unknown Unknown
libc.so.6 00007F6407F0EC40 Unknown Unknown Unknown
/ansys_inc/v251/ansys/bin/ansysdis251: line 87: 1988518 Aborted (core dumped) /ansys_inc/v251/ansys/bin/linx64/ansys.e -grpc
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= RANK 1 PID 1987985 RUNNING AT leon5
= KILLED BY SIGNAL: 9 (Killed)
===================================================================================
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= RANK 2 PID 1987986 RUNNING AT leon5
= KILLED BY SIGNAL: 9 (Killed)
===================================================================================
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= RANK 3 PID 1987987 RUNNING AT leon5
= KILLED BY SIGNAL: 9 (Killed)
=================================================================================== The above protobuff error: WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1723020316.195199 1988648 descriptor_database.cc:633] File already exists in database: mapdl_db.proto
F0000 00:00:1723020316.195783 1988648 descriptor.cc:2120] Check failed: GeneratedDatabase()->Add(encoded_file_descriptor, size) seems to mean that the plugin code links against two libs which use protobuf and, apparently, use the same protobuf objects. Reference: https://groups.google.com/g/protobuf/c/RZRCnOywdSk/m/s5QvifLCBgAJ Trying to mapdl.run("*PLUG,UNLOAD,GrpcDb")
mapdl.clear()
# mapdl.run("*PLUG,UNLOAD,GrpcDb")
mapdl.run("*PLUG,LOAD,GrpcDb") I will keep reporting |
Surprisingly, cleaning up the database ( Well.. actually not that surprising... the above error seems to say the libs were already linked. If we are not using PyMAPDL gRPC server, there is a good chance that the libs are not double linked, not raising the error. I think the plugin should be unloaded properly ( |
It seems that latest v25.1 docker image crashes when testing
database
module.The detailed output is below, but it seems the error is due to the starting the DATABASE:
Pytest output
Details
MAPDL output
The text was updated successfully, but these errors were encountered: