Unable to compile apks since 1.2

Since upgrading to 1.2.0 release android compilation now fails with repeat errors similar to:

/AppData/Local/Fusetools/Packages/UnoCore/1.2.1/prebuilt/Android/lib/armeabiv7a/libuBase.a(Exception.cpp.o):Exception.cpp:function uBase::Exception::Exception(): error: undefined reference to 'std::exception::exception()'

I’ve tried deleting the UnoCore files to force a rebuild, which completes successfully, but projection compilation still fails afterwards with the same errors.

I’ve tried running fuse install android again, which succeeds fine.

I’ve also tried updating to the latest adk as that includes the clang toolchain fuse uses.

Is there perhaps a specific version of the android sdk that I need to be using? Or something else I need to change now?

Thanks

Did you run uno clean too?

Yeah, sorry. That didn’t help either.

Hi, same here on 1.2. iOS and local preview working ok but Android compilation broken.

Here´s a log:

08-14 14:49:54.349 15844 15946 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7 in tid 15946 (Thread-2)
08-14 14:49:54.349   395   395 W         : debuggerd: handling request: pid=15844 uid=10208 gid=10208 tid=15946
08-14 14:49:54.437 16034 16034 F DEBUG   : pid: 15844, tid: 15946, name: Thread-2  >>> com.morten.SGTest1 <<<
08-14 14:49:55.729   395   395 W         : debuggerd: resuming target 15844
08-14 14:49:55.764   556   556 E lowmemorykiller: Error writing /proc/15844/oom_score_adj; errno=22
08-14 14:49:55.765  2793  3088 W ActivityManager: Failed setting process group of 15844 to 1
08-14 14:49:55.802  2793  2807 I ActivityManager: Process com.morten.SGTest1 (pid 15844) has died
08-14 14:49:55.802  2793  2807 D ActivityManager: cleanUpApplicationRecord -- 15844
08-14 14:49:55.836   591   591 I Zygote  : Process 15844 exited due to signal (11)
Process com.morten.SGTest1 terminated.

Hi,

Same here :wink: Android build fails on macOS:

* What went wrong:
Execution failed for task ':app:externalNativeBuildRelease'.
> Build command failed.

and

  /usr/local/share/uno/Packages/UnoCore/1.2.1/prebuilt/Android/lib/armeabi-v7a/libuBase.a(Exception.cpp.o):Exception.cpp:function uBase::Exception::Exception(): error: undefined reference to 'std::exception::exception()'
  /usr/local/share/uno/Packages/UnoCore/1.2.1/prebuilt/Android/lib/armeabi-v7a/libuBase.a(Exception.cpp.o):Exception.cpp:function uBase::Exception::Exception(uBase::String const&): error: undefined reference to 'std::exception::exception()'
  /usr/local/share/uno/Packages/UnoCore/1.2.1/prebuilt/Android/lib/armeabi-v7a/libuBase.a(Exception.cpp.o):Exception.cpp:function uBase::Exception::Exception(uBase::String const&, char const*, int): error: undefined reference to 'std::exception::exception()'

Thanks,

Hi,

I already uploaded the problematic project and OS details to Fuse DropBox. The file is StdException_project.zip

Thanks

The reproduction works for me, thank you very much. I think I’ve identified the problem, and I’m working on getting a fix ready now.

We uncovered the mistery, well just partially.

The problem was the Stanford Javascript Crypto Library (http://bitwiseshiftleft.github.com/sjcl/) which we used to encrypt some strings.

Once we removed the reference to it, the project compiled succesfully for Android. Something in 1.2 make them incompatible.

hector.lizarraga@gmail.com wrote:

Hi, same here on 1.2. iOS and local preview working ok but Android compilation broken.

Here´s a log:

08-14 14:49:54.349 15844 15946 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7 in tid 15946 (Thread-2)
08-14 14:49:54.349   395   395 W         : debuggerd: handling request: pid=15844 uid=10208 gid=10208 tid=15946
08-14 14:49:54.437 16034 16034 F DEBUG   : pid: 15844, tid: 15946, name: Thread-2  >>> com.morten.SGTest1 <<<
08-14 14:49:55.729   395   395 W         : debuggerd: resuming target 15844
08-14 14:49:55.764   556   556 E lowmemorykiller: Error writing /proc/15844/oom_score_adj; errno=22
08-14 14:49:55.765  2793  3088 W ActivityManager: Failed setting process group of 15844 to 1
08-14 14:49:55.802  2793  2807 I ActivityManager: Process com.morten.SGTest1 (pid 15844) has died
08-14 14:49:55.802  2793  2807 D ActivityManager: cleanUpApplicationRecord -- 15844
08-14 14:49:55.836   591   591 I Zygote  : Process 15844 exited due to signal (11)
Process com.morten.SGTest1 terminated.

We believe we have found and fixed the issue. A new patch-release (Fuse 1.2.1) is on its way, including this.

Fuse 1.2.1 is now released, it fixes this issue. Get it at https://www.fusetools.com/downloads/ as usual! :slight_smile:

Sorry about the inconvenience.