ringgaard / sling

SLING - A natural language frame semantics parser
Apache License 2.0
154 stars 11 forks source link

Core dump while loading "caspar.flow" #3

Closed g3rfx closed 3 years ago

g3rfx commented 3 years ago

Hello,

Whenever I try to load the "caspar.flow" model, I get the following error:

[2020-10-23 11:14:00.889936: E sling/myelin/compute.cc:1549] No kernel supports step ff_trunk/labeled-roles/GatherSum: float32[1,16]=GatherSum(float32[1550,16],int32[1,32])
[2020-10-23 11:14:00.890011: F sling/myelin/compiler.cc:172] Check failed: net->Compile(*flow, *library_)
*** Signal 6 (Aborted) at 0x7fc5ec885f47 for 0x03ee00007c93
  @ 0x7fc5ec885f47 raise+0xc7
  @ 0x7fc5ec8878b1 abort+0x141
  @ 0x7fc5e94f6497 pysling.so+0x39e497
  @ 0x7fc5e9358f77 sling::myelin::Compiler::Compile(sling::myelin::Flow*, sling::myelin::Network*)+0xdf7
  @ 0x7fc5e9317bc5 sling::nlp::Parser::Load(sling::Store*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x105
  @ 0x7fc5e9286829 sling::PyParser::Init(_object*, _object*)+0x139
  @ 0x55ebb1dff7d4 python3.8+0xde7d4
  @ 0x55ebb1e86f56 python3.8+0x165f56
  @ 0x55ebb1e4ca92 python3.8+0x12ba92
  @ 0x55ebb1e4e43f python3.8+0x12d43f
  @ 0x55ebb1e4e733 python3.8+0x12d733
  @ 0x55ebb1e4e8ca python3.8+0x12d8ca
  @ 0x55ebb1dff7d4 python3.8+0xde7d4
  @ 0x55ebb1e86f56 python3.8+0x165f56
  @ 0x55ebb1e4ca92 python3.8+0x12ba92
  @ 0x55ebb1e4d754 python3.8+0x12c754
  @ 0x55ebb1edbedc python3.8+0x1baedc
  @ 0x55ebb1f11083 python3.8+0x1f0083
  @ 0x55ebb1e02699 python3.8+0xe1699
  @ 0x55ebb1dc0b84 python3.8+0x9fb84
  @ 0x55ebb1e46dc9 python3.8+0x125dc9
  @ 0x55ebb1e87363 python3.8+0x166363
  @ 0x55ebb1e46dc9 python3.8+0x125dc9
  @ 0x55ebb1e87363 python3.8+0x166363
  @ 0x55ebb1e46dc9 python3.8+0x125dc9
  @ 0x55ebb1e321cd python3.8+0x1111cd
  @ 0x55ebb1dc275e python3.8+0xa175e
  @ 0x55ebb1e4d86b python3.8+0x12c86b
  @ 0x55ebb1dc0b84 python3.8+0x9fb84
Aborted (core dumped)

Steps to reproduce:

  1. Install Bazel
  2. Create a new Anaconda environment containing Python3 and pip3.
  3. Install Sling3 by pip3 install http://www.jbox.dk/sling/sling-3.0.0-py3-none-linux_x86_64.whl
  4. Download the "caspar.flow" model.
  5. Run the following:
    import sling
    p = sling.Parser("caspar.flow")

Environment:

Thank you in advance.

ringgaard commented 3 years ago

Looks like I forgot to update the casper.flow model to version 3. I have updated this now. Could I get you to download caspar.flow again and check if it works with the updated model?

NB: If you only use the python wheel, it should not be necessary to install Bazel.

g3rfx commented 3 years ago

Looks good to me good now. Thanks for the fast reaction!