clojure-android / lein-droid

A Leiningen plugin for building Clojure/Android projects
Eclipse Public License 1.0
645 stars 56 forks source link

set-content-view! crashes in release mode only #78

Closed kenrestivo closed 10 years ago

kenrestivo commented 10 years ago

In release mode, my app crashes at startup with this:

java.lang.AssertionError: Assert failed: (activity? activity)
E AndroidRuntime(11090)         at neko.activity$set_content_view_BANG_.invoke(activity.clj:44)

But in debug mode, it works just fine and has worked for some time now.

This is in the :on-create of the defactivity.

I tried calling (on-ui (set-content-view! foo.bar.BazActivity (make-ui layout)) instead of (on-ui (set-content-view! a (make-ui layout)) too, but it didn't help, same error.

Why would this be dying only in release mode? Some kind of race condition? Something important that's being proguarded out?

This is with [neko/neko "3.0.0"] and [lein-droid "0.2.0"]

kenrestivo commented 10 years ago

It looks like this may be a bug in neko, so I reproduced it with the bare minimum template app and filed it here https://github.com/clojure-android/neko/issues/4