Skip to content
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

[Bug] [Linux] DWSIM crashes when using a non-system Python distribution. #511

Open
einhander opened this issue Jul 19, 2023 · 4 comments
Open
Labels
bug Something isn't working

Comments

@einhander
Copy link

Describe the bug
DWSIM crashes when using a non-system Python distribution. I tested miniconda's python distribution 3.6, 3.7, 3.9 and 3.10.

To Reproduce

PLEASE ATTACH THE ZIPPED FLOWSHEET FILE and/or inform the steps to reproduce the behavior:

  1. Set library path to '/home/einhander/miniconda3/envs/dwsim_p39/lib/libpython3.7m.so'
  2. Run the flowsheet PythonTest.dwxmz.txt

Desktop

  • OS: Debian testing 64-bit

  • Version v8.5.0

Additional context

* Assertion at assembly.c:1939, condition `is_ok (hook_error)' not met, function:mono_assembly_invoke_load_hook_internal, (null) assembly:/usr/lib/mono/4.5/mscorlib.dll type:ReflectionTypeLoadException member:(null)



=================================================================
	Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
	Native stacktrace:
=================================================================
	0x556b977ca32b - /usr/bin/mono : 
	0x556b977ca6c9 - /usr/bin/mono : 
	0x556b97776a2f - /usr/bin/mono : 
	0x556b977c98d3 - /usr/bin/mono : 
	0x7f562117b510 - /lib/x86_64-linux-gnu/libc.so.6 : 
	0x7f56211c90fc - /lib/x86_64-linux-gnu/libc.so.6 : 
	0x7f562117b472 - /lib/x86_64-linux-gnu/libc.so.6 : gsignal
	0x7f56211654b2 - /lib/x86_64-linux-gnu/libc.so.6 : abort
	0x556b97739fb5 - /usr/bin/mono : 
	0x556b97a17be6 - /usr/bin/mono : 
	0x556b97a349db - /usr/bin/mono : 
	0x556b97a3505d - /usr/bin/mono : monoeg_assertion_message
	0x556b978b07f3 - /usr/bin/mono : 
	0x556b978b1641 - /usr/bin/mono : 
	0x556b978b37f3 - /usr/bin/mono : 
	0x556b978a3ae5 - /usr/bin/mono : 
	0x556b978a3be0 - /usr/bin/mono : 
	0x556b978a582c - /usr/bin/mono : 
	0x556b978ade51 - /usr/bin/mono : 
	0x556b978b2a7d - /usr/bin/mono : 
	0x556b978b4464 - /usr/bin/mono : 
	0x556b978b4fc6 - /usr/bin/mono : mono_assembly_load_reference
	0x556b978bd013 - /usr/bin/mono : mono_class_from_typeref_checked
	0x556b978bd32d - /usr/bin/mono : mono_class_get_checked
	0x556b978c2139 - /usr/bin/mono : 
	0x556b978bd35d - /usr/bin/mono : mono_class_get_checked
	0x556b978df7c8 - /usr/bin/mono : 
	0x556b978df917 - /usr/bin/mono : 
	0x556b978f6545 - /usr/bin/mono : 
	0x4082abe8 - Unknown

=================================================================
	Telemetry Dumper:
=================================================================
Pkilling 0x140007348098752x from 0x140007641683648x
Pkilling 0x140007388755648x from 0x140007641683648x
Pkilling 0x140006493181632x from 0x140007641683648x
Pkilling 0x140007268411072x from 0x140007641683648x
Pkilling 0x140007260018368x from 0x140007641683648x
Pkilling 0x140007214937792x from 0x140007641683648x
Pkilling 0x140007904581504x from 0x140007641683648x
Pkilling 0x140007622305472x from 0x140007641683648x
Pkilling 0x140007251625664x from 0x140007641683648x
Pkilling 0x140007350200000x from 0x140007641683648x
Pkilling 0x140007243232960x from 0x140007641683648x
Pkilling 0x140007632221888x from 0x140007641683648x
Pkilling 0x140007849326272x from 0x140007641683648x
Pkilling 0x140006509967040x from 0x140007641683648x
Entering thread summarizer pause from 0x140007641683648x
Finished thread summarizer pause from 0x140007641683648x.
Failed to create breadcrumb file (null)/crash_hash_0xd6970c15f

Waiting for dumping threads to resume

=================================================================
	External Debugger Dump:
=================================================================
[New LWP 594946]
[New LWP 594947]
[New LWP 594962]
[New LWP 594963]
[New LWP 594964]
[New LWP 594965]
[New LWP 594966]
[New LWP 594967]
[New LWP 594968]
[New LWP 594969]
[New LWP 594978]
[New LWP 594983]
[New LWP 594988]
[New LWP 594989]
[New LWP 595010]
[New LWP 595033]
[New LWP 595051]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f562123a9ef in __GI___poll (fds=0x556b9b58f180, nfds=2, timeout=500) at ../sysdeps/unix/sysv/linux/poll.c:29
29	../sysdeps/unix/sysv/linux/poll.c: Нет такого файла или каталога.
  Id   Target Id                                            Frame 
* 1    Thread 0x7f56216b1780 (LWP 594945) "mono"            0x00007f562123a9ef in __GI___poll (fds=0x556b9b58f180, nfds=2, timeout=500) at ../sysdeps/unix/sysv/linux/poll.c:29
  2    Thread 0x7f56207ff6c0 (LWP 594946) "SGen worker"     __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x556b97baa1e8) at ./nptl/futex-internal.c:57
  3    Thread 0x7f561e1ff6c0 (LWP 594947) "Finalizer"       __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x556b97b9b4a0) at ./nptl/futex-internal.c:57
  4    Thread 0x7f56112f36c0 (LWP 594962) "mono"            __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x7f56112f2c60, op=137, expected=0, futex_word=0x556b97baa888) at ./nptl/futex-internal.c:57
  5    Thread 0x7f5611bf96c0 (LWP 594963) "Thread Pool Wor" 0x00007f56212121b7 in __GI___wait4 (pid=595067, stat_loc=0x7f5611bf3894, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
  6    Thread 0x7f561097e6c0 (LWP 594964) "Thread Pool Wor" __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f561097dd50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
  7    Thread 0x7f5602ac36c0 (LWP 594965) "Timer-Scheduler" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x7f5602ac1ff0, op=137, expected=0, futex_word=0x556b99a1d948) at ./nptl/futex-internal.c:57
  8    Thread 0x7f5600dff6c0 (LWP 594966) "gmain"           0x00007f562123a9ef in __GI___poll (fds=0x556b9b260ce0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  9    Thread 0x7f55fbfff6c0 (LWP 594967) "gdbus"           0x00007f562123a9ef in __GI___poll (fds=0x556b9b268800, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  10   Thread 0x7f56005fe6c0 (LWP 594968) "Thread Pool Wor" __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f56005fdd50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
  11   Thread 0x7f56003fd6c0 (LWP 594969) "Thread Pool I/O" 0x00007f562123a9ef in __GI___poll (fds=0x7f5608008480, nfds=4, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  12   Thread 0x7f55fb7fe6c0 (LWP 594978) "Thread Pool Wor" futex_wait (private=0, expected=2, futex_word=0x556b97b97800) at ../sysdeps/nptl/futex-internal.h:146
  13   Thread 0x7f55f9ffb6c0 (LWP 594983) "Thread Pool Wor" __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55f9ffad50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
  14   Thread 0x7f55fa7fc6c0 (LWP 594988) "Thread Pool Wor" __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55fa7fbd50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
  15   Thread 0x7f55faffd6c0 (LWP 594989) "Thread Pool Wor" __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55faffcd50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
  16   Thread 0x7f55f84ff6c0 (LWP 595010) "Thread Pool Wor" __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55f84fed50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
  17   Thread 0x7f55cd4ad6c0 (LWP 595033) "Thread Pool Wor" __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55cd4acd50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
  18   Thread 0x7f55ce4af6c0 (LWP 595051) "Thread Pool Wor" __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55ce4aed50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57

Thread 18 (Thread 0x7f55ce4af6c0 (LWP 595051) "Thread Pool Wor"):
#0  __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55ce4aed50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55ce4aed50, private=<optimized out>, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55ce4aed50, private=<optimized out>) at ./nptl/futex-internal.c:139
#3  0x00007f56211ced00 in do_futex_wait (sem=sem@entry=0x556b97b9bd88, abstime=abstime@entry=0x7f55ce4aed50, clockid=0) at ./nptl/sem_waitcommon.c:111
#4  0x00007f56211ced9b in __new_sem_wait_slow64 (sem=0x556b97b9bd88, abstime=0x7f55ce4aed50, clockid=0) at ./nptl/sem_waitcommon.c:183
#5  0x0000556b979c2038 in  ()
#6  0x0000556b97970667 in  ()
#7  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#8  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 17 (Thread 0x7f55cd4ad6c0 (LWP 595033) "Thread Pool Wor"):
#0  __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55cd4acd50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55cd4acd50, private=<optimized out>, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55cd4acd50, private=<optimized out>) at ./nptl/futex-internal.c:139
#3  0x00007f56211ced00 in do_futex_wait (sem=sem@entry=0x556b97b9bd88, abstime=abstime@entry=0x7f55cd4acd50, clockid=0) at ./nptl/sem_waitcommon.c:111
#4  0x00007f56211ced9b in __new_sem_wait_slow64 (sem=0x556b97b9bd88, abstime=0x7f55cd4acd50, clockid=0) at ./nptl/sem_waitcommon.c:183
#5  0x0000556b979c2038 in  ()
#6  0x0000556b97970667 in  ()
#7  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#8  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 16 (Thread 0x7f55f84ff6c0 (LWP 595010) "Thread Pool Wor"):
#0  __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55f84fed50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55f84fed50, private=<optimized out>, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55f84fed50, private=<optimized out>) at ./nptl/futex-internal.c:139
#3  0x00007f56211ced00 in do_futex_wait (sem=sem@entry=0x556b97b9bd88, abstime=abstime@entry=0x7f55f84fed50, clockid=0) at ./nptl/sem_waitcommon.c:111
#4  0x00007f56211ced9b in __new_sem_wait_slow64 (sem=0x556b97b9bd88, abstime=0x7f55f84fed50, clockid=0) at ./nptl/sem_waitcommon.c:183
#5  0x0000556b979c2038 in  ()
#6  0x0000556b97970667 in  ()
#7  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#8  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 15 (Thread 0x7f55faffd6c0 (LWP 594989) "Thread Pool Wor"):
#0  __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55faffcd50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55faffcd50, private=<optimized out>, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55faffcd50, private=<optimized out>) at ./nptl/futex-internal.c:139
#3  0x00007f56211ced00 in do_futex_wait (sem=sem@entry=0x556b97b9bd88, abstime=abstime@entry=0x7f55faffcd50, clockid=0) at ./nptl/sem_waitcommon.c:111
#4  0x00007f56211ced9b in __new_sem_wait_slow64 (sem=0x556b97b9bd88, abstime=0x7f55faffcd50, clockid=0) at ./nptl/sem_waitcommon.c:183
#5  0x0000556b979c2038 in  ()
#6  0x0000556b97970667 in  ()
#7  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#8  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 14 (Thread 0x7f55fa7fc6c0 (LWP 594988) "Thread Pool Wor"):
#0  __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55fa7fbd50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55fa7fbd50, private=<optimized out>, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55fa7fbd50, private=<optimized out>) at ./nptl/futex-internal.c:139
#3  0x00007f56211ced00 in do_futex_wait (sem=sem@entry=0x556b97b9bd88, abstime=abstime@entry=0x7f55fa7fbd50, clockid=0) at ./nptl/sem_waitcommon.c:111
#4  0x00007f56211ced9b in __new_sem_wait_slow64 (sem=0x556b97b9bd88, abstime=0x7f55fa7fbd50, clockid=0) at ./nptl/sem_waitcommon.c:183
#5  0x0000556b979c2038 in  ()
#6  0x0000556b97970667 in  ()
#7  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#8  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 13 (Thread 0x7f55f9ffb6c0 (LWP 594983) "Thread Pool Wor"):
#0  __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f55f9ffad50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55f9ffad50, private=<optimized out>, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f55f9ffad50, private=<optimized out>) at ./nptl/futex-internal.c:139
#3  0x00007f56211ced00 in do_futex_wait (sem=sem@entry=0x556b97b9bd88, abstime=abstime@entry=0x7f55f9ffad50, clockid=0) at ./nptl/sem_waitcommon.c:111
#4  0x00007f56211ced9b in __new_sem_wait_slow64 (sem=0x556b97b9bd88, abstime=0x7f55f9ffad50, clockid=0) at ./nptl/sem_waitcommon.c:183
#5  0x0000556b979c2038 in  ()
#6  0x0000556b97970667 in  ()
#7  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#8  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 12 (Thread 0x7f55fb7fe6c0 (LWP 594978) "Thread Pool Wor"):
#0  futex_wait (private=0, expected=2, futex_word=0x556b97b97800) at ../sysdeps/nptl/futex-internal.h:146
#1  __GI___lll_lock_wait (futex=futex@entry=0x556b97b97800, private=0) at ./nptl/lowlevellock.c:49
#2  0x00007f56211ca6da in lll_mutex_lock_optimized (mutex=0x556b97b97800) at ./nptl/pthread_mutex_lock.c:48
#3  ___pthread_mutex_lock (mutex=0x556b97b97800) at ./nptl/pthread_mutex_lock.c:128
#4  0x0000556b9790e28a in mono_loader_lock ()
#5  0x0000556b978c1fa9 in  ()
#6  0x0000556b978bd35d in mono_class_get_checked ()
#7  0x0000556b97767fa5 in  ()
#8  0x0000556b97767fc2 in  ()
#9  0x0000556b9776813b in  ()
#10 0x0000556b9776e633 in  ()
#11 0x0000556b9776ead4 in  ()
#12 0x0000556b9776f4b0 in  ()
#13 0x0000556b97741f19 in  ()
#14 0x0000556b9777a326 in  ()
#15 0x0000556b9777ae80 in  ()
#16 0x0000000041d78393 in  ()
#17 0x00007f55e0001d55 in  ()
#18 0x000000000a452826 in  ()
#19 0x00007f55fb7fcde0 in  ()
#20 0x00007f55fb7fcc18 in  ()
#21 0x00007f55e0004ce0 in  ()
#22 0x00007f56209f0620 in  ()
#23 0x00007f5603f78690 in  ()
#24 0x0000000000000000 in  ()

Thread 11 (Thread 0x7f56003fd6c0 (LWP 594969) "Thread Pool I/O"):
#0  0x00007f562123a9ef in __GI___poll (fds=0x7f5608008480, nfds=4, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x0000556b97973dc5 in  ()
#2  0x0000556b97975158 in  ()
#3  0x0000556b97970667 in  ()
#4  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#5  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 10 (Thread 0x7f56005fe6c0 (LWP 594968) "Thread Pool Wor"):
#0  __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f56005fdd50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f56005fdd50, private=<optimized out>, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f56005fdd50, private=<optimized out>) at ./nptl/futex-internal.c:139
#3  0x00007f56211ced00 in do_futex_wait (sem=sem@entry=0x556b97b9bd88, abstime=abstime@entry=0x7f56005fdd50, clockid=0) at ./nptl/sem_waitcommon.c:111
#4  0x00007f56211ced9b in __new_sem_wait_slow64 (sem=0x556b97b9bd88, abstime=0x7f56005fdd50, clockid=0) at ./nptl/sem_waitcommon.c:183
#5  0x0000556b979c2038 in  ()
#6  0x0000556b97970667 in  ()
#7  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#8  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 9 (Thread 0x7f55fbfff6c0 (LWP 594967) "gdbus"):
#0  0x00007f562123a9ef in __GI___poll (fds=0x556b9b268800, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f56165df9ae in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f56165dfcef in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f56167db8f6 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f5616609cfd in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#6  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 8 (Thread 0x7f5600dff6c0 (LWP 594966) "gmain"):
#0  0x00007f562123a9ef in __GI___poll (fds=0x556b9b260ce0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f56165df9ae in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f56165dfacc in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f56165dfb11 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5616609cfd in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#6  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 7 (Thread 0x7f5602ac36c0 (LWP 594965) "Timer-Scheduler"):
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x7f5602ac1ff0, op=137, expected=0, futex_word=0x556b99a1d948) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b99a1d948, expected=expected@entry=0, clockid=clockid@entry=1, abstime=abstime@entry=0x7f5602ac1ff0, private=private@entry=0, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b99a1d948, expected=expected@entry=0, clockid=clockid@entry=1, abstime=abstime@entry=0x7f5602ac1ff0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x00007f56211c6afc in __pthread_cond_wait_common (abstime=0x7f5602ac1ff0, clockid=1, mutex=0x556b99a1d8f8, cond=0x556b99a1d920) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_timedwait64 (cond=0x556b99a1d920, mutex=0x556b99a1d8f8, abstime=0x7f5602ac1ff0) at ./nptl/pthread_cond_wait.c:643
#5  0x0000556b97a1cd8b in  ()
#6  0x0000556b9797b51c in  ()
#7  0x0000556b9797cb76 in  ()
#8  0x0000556b9797d3d9 in  ()
#9  0x0000556b9796db3d in  ()
#10 0x0000556b97904723 in  ()
#11 0x00000000407e8892 in  ()
#12 0x00007f5620a55e88 in  ()
#13 0x00007f5620a55e88 in  ()
#14 0x00007f5620a55c78 in  ()
#15 0x0000000000000000 in  ()

Thread 6 (Thread 0x7f561097e6c0 (LWP 594964) "Thread Pool Wor"):
#0  __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7f561097dd50, op=393, expected=0, futex_word=0x556b97b9bd88) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f561097dd50, private=<optimized out>, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b97b9bd88, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f561097dd50, private=<optimized out>) at ./nptl/futex-internal.c:139
#3  0x00007f56211ced00 in do_futex_wait (sem=sem@entry=0x556b97b9bd88, abstime=abstime@entry=0x7f561097dd50, clockid=0) at ./nptl/sem_waitcommon.c:111
#4  0x00007f56211ced9b in __new_sem_wait_slow64 (sem=0x556b97b9bd88, abstime=0x7f561097dd50, clockid=0) at ./nptl/sem_waitcommon.c:183
#5  0x0000556b979c2038 in  ()
#6  0x0000556b97970667 in  ()
#7  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#8  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 5 (Thread 0x7f5611bf96c0 (LWP 594963) "Thread Pool Wor"):
#0  0x00007f56212121b7 in __GI___wait4 (pid=595067, stat_loc=0x7f5611bf3894, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
#1  0x0000556b977ca5bb in  ()
#2  0x0000556b977ca6c9 in  ()
#3  0x0000556b97776a2f in  ()
#4  0x0000556b977c98d3 in  ()
#5  0x00007f562117b510 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#6  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#7  0x00007f56211c915f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#8  0x00007f562117b472 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#9  0x00007f56211654b2 in __GI_abort () at ./stdlib/abort.c:79
#10 0x0000556b97739fb5 in  ()
#11 0x0000556b97a17be6 in  ()
#12 0x0000556b97a349db in  ()
#13 0x0000556b97a3505d in monoeg_assertion_message ()
#14 0x0000556b978b07f3 in  ()
#15 0x0000556b978b1641 in  ()
#16 0x0000556b978b37f3 in  ()
#17 0x0000556b978a3ae5 in  ()
#18 0x0000556b978a3be0 in  ()
#19 0x0000556b978a582c in  ()
#20 0x0000556b978ade51 in  ()
#21 0x0000556b978b2a7d in  ()
#22 0x0000556b978b4464 in  ()
#23 0x0000556b978b4fc6 in mono_assembly_load_reference ()
#24 0x0000556b978bd013 in mono_class_from_typeref_checked ()
#25 0x0000556b978bd32d in mono_class_get_checked ()
#26 0x0000556b978c2139 in  ()
#27 0x0000556b978bd35d in mono_class_get_checked ()
#28 0x0000556b978df7c8 in  ()
#29 0x0000556b978df917 in  ()
#30 0x0000556b978f6545 in  ()
#31 0x000000004082abe8 in  ()
#32 0x00007f560c5ebb40 in  ()
#33 0x00007f5611bf5e98 in  ()
#34 0x0000000000000000 in  ()

Thread 4 (Thread 0x7f56112f36c0 (LWP 594962) "mono"):
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x7f56112f2c60, op=137, expected=0, futex_word=0x556b97baa888) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b97baa888, expected=expected@entry=0, clockid=clockid@entry=1, abstime=abstime@entry=0x7f56112f2c60, private=private@entry=0, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b97baa888, expected=expected@entry=0, clockid=clockid@entry=1, abstime=abstime@entry=0x7f56112f2c60, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x00007f56211c6afc in __pthread_cond_wait_common (abstime=0x7f56112f2c60, clockid=1, mutex=0x556b97baa8a0, cond=0x556b97baa860) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_timedwait64 (cond=0x556b97baa860, mutex=0x556b97baa8a0, abstime=0x7f56112f2c60) at ./nptl/pthread_cond_wait.c:643
#5  0x0000556b97a1cd8b in  ()
#6  0x0000556b97a27af1 in  ()
#7  0x0000556b979c2cc3 in  ()
#8  0x0000556b97970667 in  ()
#9  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#10 0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 3 (Thread 0x7f561e1ff6c0 (LWP 594947) "Finalizer"):
#0  __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x556b97b9b4a0) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b97b9b4a0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=<optimized out>, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b97b9b4a0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=<optimized out>) at ./nptl/futex-internal.c:139
#3  0x00007f56211cef0f in do_futex_wait (sem=sem@entry=0x556b97b9b4a0, abstime=0x0, clockid=0) at ./nptl/sem_waitcommon.c:111
#4  0x00007f56211cefa0 in __new_sem_wait_slow64 (sem=0x556b97b9b4a0, abstime=0x0, clockid=0) at ./nptl/sem_waitcommon.c:183
#5  0x0000556b979b2398 in  ()
#6  0x0000556b97970667 in  ()
#7  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#8  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 2 (Thread 0x7f56207ff6c0 (LWP 594946) "SGen worker"):
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x556b97baa1e8) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x556b97baa1e8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f56211c41bb in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x556b97baa1e8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x00007f56211c6818 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x556b97baa200, cond=0x556b97baa1c0) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x556b97baa1c0, mutex=0x556b97baa200) at ./nptl/pthread_cond_wait.c:618
#5  0x0000556b97a0f896 in  ()
#6  0x00007f56211c73ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#7  0x00007f5621247a1c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 1 (Thread 0x7f56216b1780 (LWP 594945) "mono"):
#0  0x00007f562123a9ef in __GI___poll (fds=0x556b9b58f180, nfds=2, timeout=500) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f56165df9ae in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f56165dfcef in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5615936b2a in gtk_main () at /lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#4  0x000000004089be00 in  ()
#5  0x0000556b99a309f8 in  ()
#6  0x00007ffd276c0ad8 in  ()
#7  0x00007ffd276c0cd0 in  ()
#8  0x00007f562084bc88 in  ()
#9  0x00007f5603df8370 in  ()
#10 0x0000556b9b1c95d8 in  ()
#11 0x000000004089bcf9 in  ()
#12 0x0000556b99a50050 in  ()
#13 0x00007ffd276c0550 in  ()
#14 0x00007ffd276c0420 in  ()
#15 0x0000556b99a27750 in  ()
#16 0x000000004089bcf4 in  ()
#17 0x00007ffd276c0550 in  ()
#18 0x000000004082e530 in  ()
#19 0xe890660074c08500 in  ()
#20 0x4cc88b4865e5f234 in  ()
#21 0x00007f562a5f3666 in  ()
#22 0x00007f56ffffffff in  ()
#23 0x0000556bffffffff in  ()
#24 0x0874000000000002 in  ()
#25 0x00007f5603d9e600 in  ()
#26 0x0000000000000000 in  ()
[Inferior 1 (process 594945) detached]

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7f56211c90fc):0x7f56211c90ec  04 00 44 89 ea 89 de 89 c7 b8 ea 00 00 00 0f 05  ..D.............
0x7f56211c90fc  89 c3 f7 db 3d 00 f0 ff ff b8 00 00 00 00 0f 47  ....=..........G
0x7f56211c910c  c3 e9 78 ff ff ff 66 0f 1f 44 00 00 4c 89 e7 e8  ..x...f..D..L...
0x7f56211c911c  80 b2 ff ff e9 4c ff ff ff 0f 1f 00 4c 89 e7 e8  .....L......L...

=================================================================
	Managed Stacktrace:
=================================================================
	 at <unknown> <0xffffffff>
	 at System.Reflection.Assembly:GetTypes <0x00087>
	 at System.Reflection.RuntimeAssembly:GetExportedTypes <0x00031>
	 at Python.Runtime.AssemblyManager:GetTypes <0x002b0>
	 at Python.Runtime.AssemblyManager:ScanAssembly <0x00093>
	 at Python.Runtime.AssemblyManager:AssemblyLoadHandler <0x00067>
	 at System.AppDomain:DoAssemblyLoad <0x00086>
	 at <Module>:runtime_invoke_void__this___object <0x0009c>
	 at <unknown> <0xffffffff>
	 at System.Reflection.Assembly:GetTypes <0x00087>
	 at System.Reflection.RuntimeAssembly:GetExportedTypes <0x00031>
	 at Python.Runtime.AssemblyManager:GetTypes <0x002b0>
	 at Python.Runtime.AssemblyManager:ScanAssembly <0x00093>
	 at Python.Runtime.AssemblyManager:Initialize <0x00233>
	 at Python.Runtime.Runtime:Initialize <0x002cf>
	 at Python.Runtime.PythonEngine:Initialize <0x000f3>
	 at Python.Runtime.PythonEngine:Initialize <0x0003f>
	 at Python.Runtime.PythonEngine:Initialize <0x00027>
	 at DWSIM.GlobalSettings.Settings:InitializePythonEnvironment <0x001bf>
	 at DWSIM.UnitOperations.UnitOperations.CustomUO:Calculate <0x026c7>
	 at DWSIM.SharedClasses.UnitOperations.BaseClass:Solve <0x000b0>
	 at DWSIM.FlowsheetSolver.FlowsheetSolver:CalculateObjectAsync <0x00821>
	 at DWSIM.FlowsheetSolver.FlowsheetSolver:ProcessQueueInternalAsync <0x0072f>
	 at DWSIM.FlowsheetSolver.FlowsheetSolver:ProcessCalculationQueue <0x0009f>
	 at _Closure$__45-1:_Lambda$__1 <0x01327>
	 at System.Threading.Tasks.Task:InnerInvoke <0x00063>
	 at System.Threading.Tasks.Task:Execute <0x00037>
	 at System.Threading.Tasks.Task:ExecutionContextCallback <0x0005f>
	 at System.Threading.ExecutionContext:RunInternal <0x001a7>
	 at System.Threading.ExecutionContext:Run <0x00042>
	 at System.Threading.Tasks.Task:ExecuteWithThreadLocal <0x000f6>
	 at System.Threading.Tasks.Task:ExecuteEntry <0x000e8>
	 at System.Threading.Tasks.Task:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem <0x00026>
	 at System.Threading.ThreadPoolWorkQueue:Dispatch <0x0028a>
	 at System.Threading._ThreadPoolWaitCallback:PerformWaitCallback <0x0001c>
	 at <Module>:runtime_invoke_bool <0x00086>
=================================================================
@einhander einhander added the bug Something isn't working label Jul 19, 2023
@DanWBR
Copy link
Owner

DanWBR commented Jul 20, 2023

@einhander it seems that some libraries are missing in miniconda.

@einhander
Copy link
Author

@DanWBR I can libraries to miniconda's environment, but what library is missing?

@DanWBR
Copy link
Owner

DanWBR commented Jul 23, 2023

@DanWBR this is what is throwing the exception... missing types. unfortunately, we don't know which ones.

at System.Reflection.Assembly:GetTypes <0x00087> at System.Reflection.RuntimeAssembly:GetExportedTypes <0x00031> at Python.Runtime.AssemblyManager:GetTypes <0x002b0> at Python.Runtime.AssemblyManager:ScanAssembly <0x00093> at Python.Runtime.AssemblyManager:AssemblyLoadHandler <0x00067> at System.AppDomain:DoAssemblyLoad <0x00086>

@einhander
Copy link
Author

@DanWBR I installed libpython3.10 system-wide from debian repository. And I have the same error. So it nothing with miniconda's python. If I use system python 3.11, which isn't supported yet, I got an error:

Error in 'CUSTOM-1': Python ABI v3.11.4 is not supported: Searching for Python.Runtime.TypeOffset311, found TypeOffset310,TypeOffset36,TypeOffset37,TypeOffset38,TypeOffset39,TypeOffset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants