Segmentation fault using <Closure /> - Dictionary already contains the given key

Environment:

  • Fuse version: 0.31.0 (build 8955)
  • Uno version: 0.42.3 (build 4084) OS X 10.12 i386 b51f27c
  • Environment.OSVersion: Unix 16.3.0.0
  • Environment.Version: 4.0.30319.42000
  • OS version: macOS Sierra 10.12.2-beta (16C60b)

To replicate

UX:

<Closure Ready="{nodeReady}" />

JS:

module.exports = {
  nodeReady: function(e){
    console.log(e);
  }
}

To run:

uno build -tcmake --run

Log

UNHANDLED EXCEPTION (main):

Uno.Exception: Dictionary already contains the given key

Function: void g::Fuse::AppBase::OnUnhandledException(::g::Uno::Exception *, bool)
Line: 592
Uno.Exception: Dictionary already contains the given key
/Users/username/project/build/Native/Debug/run.sh: line 23: 88443 Segmentation fault: 11  project.app/MacOS/project

ERROR: Native run failed.

run.sh:

set -e
cd "`dirname "$0"`"

case $1 in
debug)
    shift
    rm -f CMakeCache.txt
    cmake -GXcode "$@" .
    echo "Opening Xcode"
    open -aXcode "project.xcodeproj"
    exit $?
    ;;
valgrind)
    shift
    valgrind "$@" project.app/MacOS/project
    exit $?
    ;;
esac

project.app/MacOS/project

Hi Alex, thanks for the bug report.

I’m unable to reproduce this crash using the provided code. Would it be possible for you to provide a full .ux file demonstrating the problem? :slight_smile: