Compiling problems

96 views
Skip to first unread message

thor

unread,
Jan 13, 2012, 7:38:47 AM1/13/12
to supercollider-android-developers
Hi list

I recently got an Android phone and of course I'd like SC to run on
it. I've got a problem which I hope you can help me with. I followed
these steps:

https://github.com/glastonbridge/SuperCollider-Android/wiki/get-a-development-branch

but it's item number 5 I'm confused about.

If I create my Test project (from "existing source" linking to the
SuperCollider-Android project) I get an empty folder called Test (with
a hidden .metadata folder). Anyways, I cd into the SuperCollider-
Android directory and run this command for NDK: "/Users/thor/dev/
android-sdk-macosx/android-ndk-r5-crystax-2/ndk-build" which results
in:

thors-MacBook-Pro:SuperCollider-Android thor$ /Users/thor/dev/android-
sdk-macosx/android-ndk-r5-crystax-2/ndk-build
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi-v7a/
gdbserver
Gdbsetup : libs/armeabi-v7a/gdb.setup
Compile++ thumb : AY_UGen <= AY_UGen.cpp
In file included from /Users/thor/quaziir/mobilecoding/Eclipse/
SuperCollider-Android/jni/Headers/plugin_interface/SC_PlugIn.h:28,
from /Users/thor/quaziir/mobilecoding/Eclipse/
SuperCollider-Android/jni/Source/sc3-plugins/AY_UGen.cpp:1:
/Users/thor/quaziir/mobilecoding/Eclipse/SuperCollider-Android/jni/
Headers/plugin_interface/SC_InlineUnaryOp.h: In function 'bool
sc_isnan(float)':
/Users/thor/quaziir/mobilecoding/Eclipse/SuperCollider-Android/jni/
Headers/plugin_interface/SC_InlineUnaryOp.h:50: error: expected
unqualified-id before '(' token
make: *** [/Users/thor/quaziir/mobilecoding/Eclipse/SuperCollider-
Android/obj/local/armeabi/objs-debug/AY_UGen/Source/sc3-plugins/
AY_UGen.o] Error 1
thors-MacBook-Pro:SuperCollider-Android thor$


Any tips?
Thanks
Thor

thor

unread,
Jan 13, 2012, 8:17:32 AM1/13/12
to supercollider-android-developers

Hi again

I reply to myself...

I was using NDK 5, and got error.

I thought I'd try with NDK 4 and now it compiled.

Sorry for the noise. I guess you should change "preferably release 4
(r4) or later"
to "use release 4". on the page I link to in the last mail.

Anyways, I've got to do other things today, but might report back on
my Adventures in Androidland in the coming days.

Thor

thor

unread,
Jan 13, 2012, 12:35:50 PM1/13/12
to supercollider-android-developers

Hello

Ok, so now SuperCollider-Android compiles an apk package. However when
it runs in the emulator it is silent. The verbose field in Eclipse
gives me this:

01-13 17:19:35.567: W/KeyCharacterMap(305): No keyboard for id 0
01-13 17:19:35.567: W/KeyCharacterMap(305): Using default keymap: /
system/usr/keychars/qwerty.kcm.bin
01-13 17:19:39.857: D/libscsynth(305): received a message with 1
elements
01-13 17:19:39.857: D/libscsynth(305): cmd /quit
01-13 17:19:39.857: D/libscsynth(305): scsynth_android_close_udp
01-13 17:19:39.857: D/libscsynth(305): scsynth_android_close_udp : no
open port to close
01-13 17:19:39.957: D/libscsynth(305):
SC_AndroidJNIAudioDriver::DriverStop
01-13 17:19:48.567: D/libscsynth(305): scsynth_android_doOsc: not
running!
01-13 17:19:48.567: D/libscsynth(305): scsynth_android_close_udp
01-13 17:19:48.567: D/libscsynth(305): scsynth_android_close_udp : no
open port to close
01-13 17:19:48.567: D/libscsynth(305): scsynth_android_close_udp
01-13 17:19:48.567: D/libscsynth(305): scsynth_android_close_udp : no
open port to close
01-13 17:19:48.617: D/libscsynth(305): scsynth_android_doOsc: not
running!
01-13 17:19:48.617: D/libscsynth(305): scsynth_android_close_udp
01-13 17:19:48.637: D/libscsynth(305): scsynth_android_close_udp : no
open port to close
01-13 17:19:53.627: D/dalvikvm(305): GC_EXPLICIT freed 1035 objects /
47816 bytes in 62ms
01-13 17:20:59.357: D/dalvikvm(378): Trying to load lib /data/data/
net.sf.supercollider.android/lib/libsndfile.so 0x44edec08
01-13 17:20:59.357: D/dalvikvm(378): Added shared lib /data/data/
net.sf.supercollider.android/lib/libsndfile.so 0x44edec08
01-13 17:20:59.357: D/dalvikvm(378): No JNI_OnLoad found in /data/data/
net.sf.supercollider.android/lib/libsndfile.so 0x44edec08, skipping
init
01-13 17:20:59.368: D/dalvikvm(378): Trying to load lib /data/data/
net.sf.supercollider.android/lib/libscsynth.so 0x44edec08
01-13 17:20:59.487: D/dalvikvm(378): Added shared lib /data/data/
net.sf.supercollider.android/lib/libscsynth.so 0x44edec08
01-13 17:20:59.497: I/SuperCollider-Android(378): SCAudio - about to
invoke native scsynth_android_initlogging()
01-13 17:20:59.497: D/libscsynth(378): SCSYNTH->ANDROID logging active
(no debug)
01-13 17:20:59.497: I/SuperCollider-Android(378): SCAudio - data dir
is /sdcard/supercollider/synthdefs
01-13 17:20:59.497: D/libscsynth(378): scsynth_android_start(22050,
512, 1, 1, 1, /data/data/net.sf.supercollider.android/lib, /sdcard/
supercollider/synthdefs)
01-13 17:20:59.497: D/libscsynth(378): OK, listing opendir(/data/data/
net.sf.supercollider.android/lib)
01-13 17:20:59.497: D/libscsynth(378): Entry: .
01-13 17:20:59.497: D/libscsynth(378): Entry: ..
01-13 17:20:59.509: D/libscsynth(378): Entry: libAY_UGen.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libBinaryOpUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libChaosUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libDelayUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libDemandUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libDynNoiseUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libFFT_UGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libFilterUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libGendynUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libGrainUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libIOUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libLFUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libMCLDBufferUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libMCLDFFTUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libMCLDTreeUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry:
libMCLDTriggeredStatsUgens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libML_UGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libMulAddUGens.so
01-13 17:20:59.509: D/libscsynth(378): Entry: libNoiseUGens.so
01-13 17:20:59.524: D/libscsynth(378): Entry: libOscUGens.so
01-13 17:20:59.524: D/libscsynth(378): Entry: libPanUGens.so
01-13 17:20:59.524: D/libscsynth(378): Entry:
libPhysicalModelingUGens.so
01-13 17:20:59.524: D/libscsynth(378): Entry: libReverbUGens.so
01-13 17:20:59.527: D/libscsynth(378): Entry: libscsynth.so
01-13 17:20:59.527: D/libscsynth(378): Entry: libsndfile.so
01-13 17:20:59.527: D/libscsynth(378): Entry: libTriggerUGens.so
01-13 17:20:59.527: D/libscsynth(378): Entry: libUnaryOpUGens.so
01-13 17:20:59.527: D/libscsynth(378): Entry: gdbserver
01-13 17:21:00.257: D/libscsynth(378): *** ERROR: dlsym load err
'Symbol not found: '
01-13 17:21:00.257: D/libscsynth(378): *** ERROR: dlsym load err
'Symbol not found: '
01-13 17:21:00.287: D/libscsynth(378): Using vector unit: no
01-13 17:21:00.287: D/libscsynth(378): Loading synthdefs from path: /
sdcard/supercollider/synthdefs
01-13 17:21:00.297: D/libscsynth(378):
SC_AndroidJNIAudioDriver::DriverSetup: allocating 2048 bytes for 512
frames
01-13 17:21:00.297: D/libscsynth(378): <-
SC_AndroidJNIAudioDriver::Setup world 00248C20,
mPreferredHardwareBufferFrameSize 512, mPreferredSampleRate 22050,
outNumSamplesPerCallback 512, outSampleRate 22050
01-13 17:21:00.297: D/libscsynth(378): SC_AudioDriver: sample rate =
22050.000000, driver's block size = 512
01-13 17:21:00.307: D/libscsynth(378):
SC_AndroidJNIAudioDriver::DriverStart
01-13 17:21:00.307: I/SuperCollider-Android(378): SCAudio - result of
scsynth_android_start() is 0
01-13 17:21:00.318: D/libscsynth(378): received a message with 5
elements
01-13 17:21:00.327: D/libscsynth(378): cmd /s_new
01-13 17:21:00.327: D/libscsynth(378): arg default
01-13 17:21:00.357: D/libscsynth(378): scsynth_android_open_udp
01-13 17:21:00.377: E/AudioRecord(378): Could not get audio input for
record source 1
01-13 17:21:00.377: E/AudioRecord-JNI(378): Error creating AudioRecord
instance: initialization check failed.
01-13 17:21:00.377: E/AudioRecord-Java(378):
[ android.media.AudioRecord ] Error code -20 when initializing native
AudioRecord object.
01-13 17:26:52.139: D/libscsynth(378): received a message with 4
elements
01-13 17:26:52.139: D/libscsynth(378): cmd /n_set
01-13 17:26:52.147: D/libscsynth(378): arg amp
01-13 17:26:52.147: D/libscsynth(378): received a message with 4
elements
01-13 17:26:52.147: D/libscsynth(378): cmd /n_set
01-13 17:26:52.147: D/libscsynth(378): arg freq
01-13 17:26:52.157: D/libscsynth(378): FAILURE /n_set Node not found
01-13 17:26:52.157: D/libscsynth(378): FAILURE /n_set Node not found
01-13 17:26:52.187: D/libscsynth(378): received a message with 4
elements
01-13 17:26:52.197: D/libscsynth(378): cmd /n_set
01-13 17:26:52.197: D/libscsynth(378): arg amp
01-13 17:26:52.197: D/libscsynth(378): received a message with 4
elements
01-13 17:26:52.207: D/libscsynth(378): cmd /n_set
01-13 17:26:52.207: D/libscsynth(378): arg freq
01-13 17:26:52.227: D/libscsynth(378): received a message with 4
elements
01-13 17:26:52.227: D/libscsynth(378): cmd /n_set
01-13 17:26:52.237: D/libscsynth(378): FAILURE /n_set Node not found
01-13 17:26:52.237: D/libscsynth(378): FAILURE /n_set Node not found


I tried to install it on my phone but then the app crashes.

I tried to compile the test app that is provided on the projects
github called "scanvox", but then I get this error message:


The container 'Library Projects' references non existing library '/
Users/thor/dev/Android/SuperCollider-Android/bin/supercollider-
android.jar' scanvox Build path Build Path Problem


So am I supposed to have this "supercollider-android.jar" file
somewhere?

Should that have been compiled when I compiled SuperCollider-Android?

I searched my computer for this file, but Finder didn't find it.

Any tips
Thor

Patrick Flanagan

unread,
Jan 13, 2012, 1:45:59 PM1/13/12
to supercollider-an...@googlegroups.com
Hi Thor,

I'm not sure what's causing the crash on your phone, but I can tell you that testing audio apps with the emulator is worthless. Don't even bother. I'd examine logcat messages from the crash on your device.

Patrick

thor

unread,
Jan 13, 2012, 4:12:56 PM1/13/12
to supercollider-an...@googlegroups.com

Thanks for your reply Patrick.

Good to know that the emulator wont' work. 

Do you develop with the phone connected then and upload directly to it?

Thor

thor

unread,
Jan 13, 2012, 5:35:09 PM1/13/12
to supercollider-an...@googlegroups.com

Patrick

Thanks for your tip. Plugging my phone in, and using that rather than the emulator, the logcat is now telling me this:
(and the app on my phone saying "The application SuperCollider (process uk.co.mcld.dabble.GlastoCollider1) has
unexpectedly quit. Please try again").

01-13 22:31:05.027: D/ATRecorder(16368): com.htc.autotest.dlib.RecordEngine in loader dalvik.system.DexClassLoader@4052a670
01-13 22:31:05.287: D/AndroidRuntime(16368): Shutting down VM
01-13 22:31:05.287: W/dalvikvm(16368): threadid=1: thread exiting with uncaught exception (group=0x4001d648)
01-13 22:31:05.287: E/AndroidRuntime(16368): FATAL EXCEPTION: main
01-13 22:31:05.287: E/AndroidRuntime(16368): java.lang.ClassCastException: android.os.BinderProxy
01-13 22:31:05.287: E/AndroidRuntime(16368): at net.sf.supercollider.android.SuperColliderActivity$ScServiceConnection.onServiceConnected(SuperColliderActivity.java:45)
01-13 22:31:05.287: E/AndroidRuntime(16368): at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1107)
01-13 22:31:05.287: E/AndroidRuntime(16368): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1124)
01-13 22:31:05.287: E/AndroidRuntime(16368): at android.os.Handler.handleCallback(Handler.java:587)
01-13 22:31:05.287: E/AndroidRuntime(16368): at android.os.Handler.dispatchMessage(Handler.java:92)
01-13 22:31:05.287: E/AndroidRuntime(16368): at android.os.Looper.loop(Looper.java:150)
01-13 22:31:05.287: E/AndroidRuntime(16368): at android.app.ActivityThread.main(ActivityThread.java:4293)
01-13 22:31:05.287: E/AndroidRuntime(16368): at java.lang.reflect.Method.invokeNative(Native Method)
01-13 22:31:05.287: E/AndroidRuntime(16368): at java.lang.reflect.Method.invoke(Method.java:507)
01-13 22:31:05.287: E/AndroidRuntime(16368): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
01-13 22:31:05.287: E/AndroidRuntime(16368): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
01-13 22:31:05.287: E/AndroidRuntime(16368): at dalvik.system.NativeStart.main(Native Method)
01-13 22:31:09.101: I/Process(16368): Sending signal. PID: 16368 SIG: 9


Does this mean anything to anyone?

Thanks
Thor

Patrick Flanagan

unread,
Jan 13, 2012, 6:13:20 PM1/13/12
to supercollider-an...@googlegroups.com
Googling "java.lang.ClassCastException: android.os.BinderProxy" leads to some stack overflow threads that may be helpful:

http://stackoverflow.com/questions/2754847/classcastexception-while-using-service
http://stackoverflow.com/questions/8040226/android-classcast-exception-when-binding-to-service

Since the problem seems to be related to starting the audio service, you may want to make sure everything is in order with AIDL stuff--that you declared the Service in the manifest, and so on. Getting the service to bind correctly is tricky, and I wouldn't want to figure out how to do it by looking at Android AIDL docs. If you don't have a functional, skeletal project that runs an audio service, I'd be happy share code for a simple recording app.

Patrick
--
Patrick Flanagan

jazarimusic.com
Twitter.com/jazarimusic

thor

unread,
Jan 14, 2012, 11:45:26 AM1/14/12
to supercollider-an...@googlegroups.com

Hi Patrick

I'm not sure what to do now or where the problem might lie. I keep getting the error below and I've
tried to create the project in many different ways, using different SDKs (The project wants 1.6, but
my phone has 2.3.4 and so on). The app runs on the emulator, but no sound. It crashes on my phone.

I've put the compiled apps here. I'd be curious if they work on somebody's else phone:

Since the problem seems to be related to starting the audio service, you may want to make sure everything is in order with AIDL stuff--that you declared the Service in the manifest, and so on. Getting the service to bind correctly is tricky, and I wouldn't want to figure out how to do it by looking at Android AIDL docs. If you don't have a functional, skeletal project that runs an audio service, I'd be happy share code for a simple recording app.

Yes, please. I'd appreciate trying a project that works. I rarely use Java and Eclipse, never developed
for Android before so this is all a bit vague terrain for me. 

I ask myself these questions:

- my phone has Android 2.3.4, do I need an 1.6 phone for this to work?

- Do I have a too recent version of Eclipse? (I notice difference in the way I create the project
(in item 3, this happens on the first page on my Eclipse, not the second).

- I don't seem to get a supercollider-android.jar file (which was required from another project (ScanVox).
Should I have that file?

- Is there a way to get an Eclipse workspace with a ready setup? (i.e., compiled C binary and this .jar file)?

- Is this project working for other developers? Or is it perhaps broken and unmaintained?


Thanks
Thor

Dan Stowell

unread,
Jan 14, 2012, 1:58:06 PM1/14/12
to supercollider-an...@googlegroups.com
Hi Thor,

All I can say from my PoV is that I haven't really been working on
android for a few months (disappointed by latency and other things,
moved on to other stuff until they fix it... may be years...), so I
have no idea about building on recent OS releases or SDKs. I don't
believe there's much other dev activity at the moment - so it'd be
great if you could get it working (if there are patches to send,
please send them) but you'd probably be taking the initiative.

Dan


2012/1/14 thor <th....@gmail.com>:

--
http://www.mcld.co.uk

thor

unread,
Jan 14, 2012, 3:25:12 PM1/14/12
to supercollider-an...@googlegroups.com

Hi Dan

Thanks for this note. I will do my best. I've become very stubborn with
this thing now. I've never had the experience of not being able to build
something and this annoys me : )

Regarding the latency, it's true. But my view on SC on the Android is
that the latency problem is primarily a screen-or-sensor to sound-engine
problem. However, there is so much to explore in terms of SC on mobile
devices that do not necessarily require interactivity.

Perhaps others on this list have some tips, but I'll certainly send all
patches or updates. I'd be happy to write a more thorough helpfile
as well if I eventually get this to sound.

Cheers
thor

Coma

unread,
Jan 25, 2012, 6:58:34 AM1/25/12
to supercollider-android-developers
Hi Thor

I'm glad you're getting into this, for I'm also now starting to
explore SC and Android. I've read alot about the latency issues, but
maybe some apps can be created where response time isn't crucial. I've
gotten the eclipse project working, after alot of hassle but atleast
it makes some sound now on my Nexus one. :D

Regards
Coma

On Jan 14, 9:25 pm, thor <th.l...@gmail.com> wrote:
> Hi Dan
>
> Thanks for this note. I will do my best. I've become very stubborn with
> this thing now. I've never had the experience of not being able to build
> something and this annoys me : )
>
> Regarding the latency, it's true. But my view on SC on the Android is
> that the latency problem is primarily a screen-or-sensor to sound-engine
> problem. However, there is so much to explore in terms of SC on mobile
> devices that do not necessarily require interactivity.
>
> Perhaps others on this list have some tips, but I'll certainly send all
> patches or updates. I'd be happy to write a more thorough helpfile
> as well if I eventually get this to sound.
>
> Cheers
> thor
>
> On 14 Jan 2012, at 18:58, Dan Stowell wrote:
>
>
>
>
>
>
>
> > Hi Thor,
>
> > All I can say from my PoV is that I haven't really been working on
> > android for a few months (disappointed by latency and other things,
> > moved on to other stuff until they fix it... may be years...), so I
> > have no idea about building on recent OS releases or SDKs. I don't
> > believe there's much other dev activity at the moment - so it'd be
> > great if you could get it working (if there are patches to send,
> > please send them) but you'd probably be taking the initiative.
>
> > Dan
>
> > 2012/1/14 thor <th.l...@gmail.com>:
> >> here:https://github.com/glastonbridge/SuperCollider-Android/wiki/get-a-dev...
> >> (in item 3, this happens on the first page on my Eclipse, not the second).
>
> >> - I don't seem to get a supercollider-android.jar file (which was required
> >> from another project (ScanVox).
> >> Should I have that file?
>
> >> - Is there a way to get an Eclipse workspace with a ready setup? (i.e.,
> >> compiled C binary and this .jar file)?
>
> >> - Is this project working for other developers? Or is it perhaps broken and
> >> unmaintained?
>
> >> Thanks
> >> Thor
>
> >> Patrick
>
> >> On Fri, Jan 13, 2012 at 4:35 PM, thor <th.l...@gmail.com> wrote:
>
> >>> Patrick
>
> >>> Thanks for your tip. Plugging my phone in, and using that rather than the
> >>> emulator, the logcat is now telling me this:
> >>> (and the app on my phone saying "The application SuperCollider (process
> >>> uk.co.mcld.dabble.GlastoCollider1) has
> >>> unexpectedly quit. Please try again").
>
> >>> 01-13 22:31:05.027: D/ATRecorder(16368):
> >>> com.htc.autotest.dlib.RecordEngine in loader
> >>> dalvik.system.DexClassLoader@4052a670
> >>> 01-13 22:31:05.287: D/AndroidRuntime(16368): Shutting down VM
> >>> 01-13 22:31:05.287: W/dalvikvm(16368): threadid=1: thread exiting with
> >>> uncaught exception (group=0x4001d648)
> >>> 01-13 22:31:05.287: E/AndroidRuntime(16368): FATAL EXCEPTION: main
> >>> 01-13 22:31:05.287: E/AndroidRuntime(16368): java.lang.ClassCastException:
> >>> android.os.BinderProxy
> >>> 01-13 22:31:05.287: E/AndroidRuntime(16368):    at
> >>> net.sf.supercollider.android.SuperColliderActivity$ScServiceConnection.onSe rviceConnected(SuperColliderActivity.java:45)

thor

unread,
Jan 25, 2012, 8:12:17 AM1/25/12
to supercollider-an...@googlegroups.com

Good news! Thanks for the heads-up Coma.

So what was the hassle? Could you upload your changes onto
a github repository? Or somehow submit it back to the project.

Dan said he's happy to apply patches if you are able to send them
to him.

Looking forward to see more how you're doing.
t

Guillem Coma

unread,
Jan 25, 2012, 8:23:10 AM1/25/12
to supercollider-an...@googlegroups.com
Well,
I downloaded the NDK crystax, Cygwin and reached the part of compiling the files (ndk-build) being inside the projects folder. I had a little problem with one of the header files (glastonbridge-SuperCollider-Android-afd567c\jni\Headers\plugin_interface\SC_InlineUnaryOp.h). 

It didn't seem to recognize the "std::isnan(x)" function

I kinda fixed it (in a dirty way) by adding a definition of "isnan" I found on the web (http://www.gnu.org/s/hello/manual/autoconf/Function-Portability.html)

#include <cmath>
#include <math.h>
          
          #ifndef isnan
          #define isnan(x) \
              (sizeof (x) == sizeof (long double) ? isnan_ld (x) \
               : sizeof (x) == sizeof (double) ? isnan_d (x) \
               : isnan_f (x))
          static inline int isnan_f  (float       x) { return x != x; }
          static inline int isnan_d  (double      x) { return x != x; }
          static inline int isnan_ld (long double x) { return x != x; }
          #endif
///////////////////////////////////////////////////////////////////////////////////////

inline bool sc_isnan(float x)
{
#if (defined(__cplusplus) && defined(__GNUC__) && _GLIBCXX_HAVE_ISNAN)
   //return std::isnan(x);
   return isnan(x);
#else
   return (!(x >= 0.f || x <= 0.f));
#endif
}

Maybe because I was missing some library. After that I was able to compile.

thor

unread,
Feb 1, 2012, 12:40:23 PM2/1/12
to supercollider-an...@googlegroups.com
Hi Coma

Interesting, you got it to compile.

Could you tell me which version of Java and Android SDK you're compiling against?

I've tried Java 1.5 and 1.6, and Android SDK 1.6 and 2.2. 

I wonder if the app is not working on my phone as the project settings are for 1.6, but
my phone has 2.2?

t

Guillem Coma

unread,
Feb 1, 2012, 1:12:12 PM2/1/12
to supercollider-an...@googlegroups.com
Hi Thor,

I'm compiling it with Java 1.6 and Android SDK 1.5.

My phone is a Nexus One 2.3.6 and the project settings are for 1.5.
I'll try to get a tablet soon that probably already has honeycomb, I hope I don't issues with that.

If you see yourself stuck, what I did was starting from scratch again, making sure I didn't miss out on anything :s. I'm sorry that I'm not much of help.

p.d. At which stage are you having problems?

Coma

thor

unread,
Feb 1, 2012, 4:27:27 PM2/1/12
to supercollider-an...@googlegroups.com

Hi Coma

> p.d. At which stage are you having problems?

It starts the app on my phone, but it crashes immediately. I've tried all possible
combinations of sdks and java versions.

Would you be able to send me a working Eclipse project? Perhaps I can run it from there?
Not sure if it would work though as I'm on a Mac. You're on Windows, right?

Here are the messages I get. Perhaps you can read something in them?


02-01 21:25:38.937: D/PowerManagerService(262): New lightsensor value:320, lcdValue:142
02-01 21:25:38.937: D/PowerManagerService(262): lightSensorChangedLocked, buttonValue >= 0, mPowerState = 3
02-01 21:25:38.937: D/lights(262): set_light_buttons_func: on=0 brightness=0
02-01 21:25:41.650: D/AndroidRuntime(27356): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
02-01 21:25:41.650: D/AndroidRuntime(27356): CheckJNI is OFF
02-01 21:25:41.650: D/dalvikvm(27356): creating instr width table
02-01 21:25:41.810: D/AndroidRuntime(27356): Calling main entry com.android.commands.pm.Pm
02-01 21:25:41.820: D/AndroidRuntime(27356): Shutting down VM
02-01 21:25:41.820: D/dalvikvm(27356): GC_CONCURRENT freed 105K, 68% free 331K/1024K, external 0K/0K, paused 1ms+0ms
02-01 21:25:41.820: D/dalvikvm(27356): Debugger has detached; object registry had 1 entries
02-01 21:25:41.950: D/AndroidRuntime(27365): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
02-01 21:25:41.950: D/AndroidRuntime(27365): CheckJNI is OFF
02-01 21:25:41.950: D/dalvikvm(27365): creating instr width table
02-01 21:25:42.110: D/AndroidRuntime(27365): Calling main entry com.android.commands.am.Am
02-01 21:25:42.120: V/HtcAppUsageStats(262): handleMessage msg=1
02-01 21:25:42.120: I/ActivityManager(262): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=net.sf.supercollider.android/.SuperColliderActivity } from pid 27365
02-01 21:25:42.160: V/HtcAppUsageStats(262): (launch app, package): (SuperCollider, net.sf.supercollider.android)
02-01 21:25:42.170: D/AndroidRuntime(27365): Shutting down VM
02-01 21:25:42.170: D/dalvikvm(27365): GC_CONCURRENT freed 106K, 66% free 358K/1024K, external 0K/0K, paused 0ms+1ms
02-01 21:25:42.190: I/AndroidRuntime(27365): NOTE: attach of thread 'Binder Thread #3' failed
02-01 21:25:42.190: D/jdwp(27365): Got wake-up signal, bailing out of select
02-01 21:25:42.190: D/dalvikvm(27365): Debugger has detached; object registry had 1 entries
02-01 21:25:42.200: I/ActivityManager(262): Start proc net.sf.supercollider.android for activity net.sf.supercollider.android/.SuperColliderActivity: pid=27374 uid=10158 gids={1015, 3003}
02-01 21:25:42.260: D/dalvikvm(27374): Debugger has detached; object registry had 1 entries
02-01 21:25:42.260: D/SensorService(262): enable: get sensor name = MPL accel
02-01 21:25:42.260: D/Sensors(262): handle : 4 en: 1, v07-Correct timerirq initial delay setting
02-01 21:25:42.260: D/Sensors(262): mEnabled = 0x10
02-01 21:25:42.300: I/(262): mpu3050_resume: Resuming to 0070
02-01 21:25:42.300: D/SensorService(262): pid=262, uid=1000
02-01 21:25:42.330: W/libagl(262): handle fade alpha 2
02-01 21:25:42.340: W/dalvikvm(530): disableGcForExternalAlloc: false
02-01 21:25:42.340: W/libagl(262): handle fade alpha 8
02-01 21:25:42.360: W/libagl(262): handle fade alpha 17
02-01 21:25:42.360: D/ATRecorder(27374): com.htc.autotest.dlib.RecordEngine in loader dalvik.system.DexClassLoader@4052a930
02-01 21:25:42.360: I/ActivityManager(262): Start proc uk.co.mcld.dabble.GlastoCollider1 for service uk.co.mcld.dabble.GlastoCollider1/.ScService: pid=27382 uid=10127 gids={1015}
02-01 21:25:42.370: W/libagl(262): handle fade alpha 29
02-01 21:25:42.390: W/libagl(262): handle fade alpha 45
02-01 21:25:42.410: W/libagl(262): handle fade alpha 63
02-01 21:25:42.420: W/libagl(262): handle fade alpha 83
02-01 21:25:42.440: W/libagl(262): handle fade alpha 104
02-01 21:25:42.460: W/libagl(262): handle fade alpha 113
02-01 21:25:42.470: W/libagl(262): handle fade alpha 136
02-01 21:25:42.480: W/InputManagerService(262): [unbindCurrentClientLocked] Disable input method client.
02-01 21:25:42.480: W/InputManagerService(262): [startInputLocked] Enable input method client.
02-01 21:25:42.490: W/libagl(262): handle fade alpha 157
02-01 21:25:42.510: W/libagl(262): handle fade alpha 177
02-01 21:25:42.520: D/dalvikvm(131): GC_EXPLICIT freed 12K, 44% free 3025K/5379K, external 0K/0K, paused 147ms
02-01 21:25:42.520: W/libagl(262): handle fade alpha 197
02-01 21:25:42.540: W/libagl(262): handle fade alpha 214
02-01 21:25:42.560: W/libagl(262): handle fade alpha 229
02-01 21:25:42.570: W/libagl(262): handle fade alpha 240
02-01 21:25:42.590: W/libagl(262): handle fade alpha 252
02-01 21:25:42.600: W/libagl(262): handle fade alpha 252
02-01 21:25:42.600: D/AndroidRuntime(27374): Shutting down VM
02-01 21:25:42.600: W/dalvikvm(27374): threadid=1: thread exiting with uncaught exception (group=0x4001d648)
02-01 21:25:42.610: W/libagl(262): handle fade alpha 254
02-01 21:25:42.610: E/AndroidRuntime(27374): FATAL EXCEPTION: main
02-01 21:25:42.610: E/AndroidRuntime(27374): java.lang.ClassCastException: android.os.BinderProxy
02-01 21:25:42.610: E/AndroidRuntime(27374): at net.sf.supercollider.android.SuperColliderActivity$ScServiceConnection.onServiceConnected(SuperColliderActivity.java:45)
02-01 21:25:42.610: E/AndroidRuntime(27374): at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1107)
02-01 21:25:42.610: E/AndroidRuntime(27374): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1124)
02-01 21:25:42.610: E/AndroidRuntime(27374): at android.os.Handler.handleCallback(Handler.java:587)
02-01 21:25:42.610: E/AndroidRuntime(27374): at android.os.Handler.dispatchMessage(Handler.java:92)
02-01 21:25:42.610: E/AndroidRuntime(27374): at android.os.Looper.loop(Looper.java:150)
02-01 21:25:42.610: E/AndroidRuntime(27374): at android.app.ActivityThread.main(ActivityThread.java:4293)
02-01 21:25:42.610: E/AndroidRuntime(27374): at java.lang.reflect.Method.invokeNative(Native Method)
02-01 21:25:42.610: E/AndroidRuntime(27374): at java.lang.reflect.Method.invoke(Method.java:507)
02-01 21:25:42.610: E/AndroidRuntime(27374): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
02-01 21:25:42.610: E/AndroidRuntime(27374): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
02-01 21:25:42.610: E/AndroidRuntime(27374): at dalvik.system.NativeStart.main(Native Method)
02-01 21:25:42.610: W/ActivityManager(262): Force finishing activity net.sf.supercollider.android/.SuperColliderActivity
02-01 21:25:42.620: W/libagl(262): handle fade alpha 242
02-01 21:25:42.630: W/libagl(262): handle fade alpha 192
02-01 21:25:42.640: W/libagl(262): handle fade alpha 192
02-01 21:25:42.660: W/libagl(262): handle fade alpha 169
02-01 21:25:42.660: D/dalvikvm(131): GC_EXPLICIT freed <1K, 44% free 3025K/5379K, external 0K/0K, paused 130ms
02-01 21:25:42.671: W/libagl(262): handle fade alpha 132
02-01 21:25:42.691: W/libagl(262): handle fade alpha 125
02-01 21:25:42.711: W/libagl(262): handle fade alpha 107
02-01 21:25:42.721: W/libagl(262): handle fade alpha 88
02-01 21:25:42.731: D/dalvikvm(131): GC_EXPLICIT freed <1K, 44% free 3025K/5379K, external 0K/0K, paused 65ms
02-01 21:25:42.751: W/libagl(262): handle fade alpha 62
02-01 21:25:42.751: D/SurfaceFlinger(262): [DISP] purgatorizeLayer_l 0xf8ec78 4
02-01 21:25:42.761: D/SurfaceFlinger(262): [DISP] purgatorizeLayer_l 0xd65b60 4
02-01 21:25:42.771: W/libagl(262): handle fade alpha 37
02-01 21:25:42.791: D/SurfaceFlinger(262): [DISP] remove 0xd65b60 2
02-01 21:25:42.791: D/SurfaceFlinger(262): [DISP] remove 0xf8ec78 2
02-01 21:25:42.801: W/libagl(262): handle fade alpha 27
02-01 21:25:42.821: W/libagl(262): handle fade alpha 12
02-01 21:25:42.841: W/libagl(262): handle fade alpha 7
02-01 21:25:42.871: W/libagl(262): handle fade alpha 1
02-01 21:25:42.911: D/SurfaceFlinger(262): [DISP] purgatorizeLayer_l 0x15dadc0 4
02-01 21:25:42.931: D/SurfaceFlinger(262): [DISP] remove 0x15dadc0 2
02-01 21:25:43.121: W/ActivityManager(262): Activity pause timeout for HistoryRecord{40c185a0 net.sf.supercollider.android/.SuperColliderActivity}
02-01 21:25:43.121: D/SensorService(262): disable: get sensor name = MPL accel
02-01 21:25:43.121: D/Sensors(262): handle : 4 en: 0, v07-Correct timerirq initial delay setting
02-01 21:25:43.121: W/MPL-sup(262): MLGetAKMComassStatus, gAKMCompassStatus = 0
02-01 21:25:43.121: D/Sensors(262): mEnabled = 0x0
02-01 21:25:43.121: I/(262): mpu3050_suspend: suspending sensors to 0000
02-01 21:25:43.121: I/(262): mpu3050_suspend: Will resume next to 0070
02-01 21:25:43.161: D/SensorService(262): pid=262, uid=1000
02-01 21:25:43.171: I/CarouselTimeLog(530): onStart() finish: 1328131543174
02-01 21:25:43.171: D/CarouselDummyActivity(530): CarouselDummyActivity.onResume: tab_downloaded
02-01 21:25:43.321: W/libagl(262): handle fade alpha 248
02-01 21:25:43.351: W/libagl(262): handle fade alpha 227
02-01 21:25:43.391: W/libagl(262): handle fade alpha 195
02-01 21:25:43.421: W/libagl(262): handle fade alpha 155
02-01 21:25:43.461: W/libagl(262): handle fade alpha 112
02-01 21:25:43.491: W/libagl(262): handle fade alpha 53
02-01 21:25:43.531: W/libagl(262): handle fade alpha 23
02-01 21:25:43.561: W/libagl(262): handle fade alpha 5
02-01 21:25:43.591: I/ActivityManager(262): Displayed net.sf.supercollider.android/.SuperColliderActivity: +1s389ms
02-01 21:25:46.965: D/Wallpaper(530): pauseWallpaper: false
02-01 21:25:46.985: I/Process(27374): Sending signal. PID: 27374 SIG: 9
02-01 21:25:47.005: W/InputManagerService(262): [unbindCurrentClientLocked] Disable input method client.
02-01 21:25:47.005: W/InputManagerService(262): [startInputLocked] Enable input method client.
02-01 21:25:47.025: I/ActivityManager(262): Process net.sf.supercollider.android (pid 27374) has died.
02-01 21:25:47.025: I/WindowManager(262): WIN DEATH: Window{4055a340 net.sf.supercollider.android/net.sf.supercollider.android.SuperColliderActivity paused=false}
02-01 21:25:47.035: D/SurfaceFlinger(262): [DISP] purgatorizeLayer_l 0x7dc968 4
02-01 21:25:47.035: D/AndroidRuntime(27382): Shutting down VM
02-01 21:25:47.035: W/dalvikvm(27382): threadid=1: thread exiting with uncaught exception (group=0x4001d648)
02-01 21:25:47.045: E/AndroidRuntime(27382): FATAL EXCEPTION: main
02-01 21:25:47.045: E/AndroidRuntime(27382): java.lang.RuntimeException: Unable to stop service uk.co.mcld.dabble.GlastoCollider1.ScService@40522010: java.lang.NullPointerException
02-01 21:25:47.045: E/AndroidRuntime(27382): at android.app.ActivityThread.handleStopService(ActivityThread.java:2417)
02-01 21:25:47.045: E/AndroidRuntime(27382): at android.app.ActivityThread.access$2900(ActivityThread.java:132)
02-01 21:25:47.045: E/AndroidRuntime(27382): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1114)
02-01 21:25:47.045: E/AndroidRuntime(27382): at android.os.Handler.dispatchMessage(Handler.java:99)
02-01 21:25:47.045: E/AndroidRuntime(27382): at android.os.Looper.loop(Looper.java:150)
02-01 21:25:47.045: E/AndroidRuntime(27382): at android.app.ActivityThread.main(ActivityThread.java:4293)
02-01 21:25:47.045: E/AndroidRuntime(27382): at java.lang.reflect.Method.invokeNative(Native Method)
02-01 21:25:47.045: E/AndroidRuntime(27382): at java.lang.reflect.Method.invoke(Method.java:507)
02-01 21:25:47.045: E/AndroidRuntime(27382): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
02-01 21:25:47.045: E/AndroidRuntime(27382): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
02-01 21:25:47.045: E/AndroidRuntime(27382): at dalvik.system.NativeStart.main(Native Method)
02-01 21:25:47.045: E/AndroidRuntime(27382): Caused by: java.lang.NullPointerException
02-01 21:25:47.045: E/AndroidRuntime(27382): at uk.co.mcld.dabble.GlastoCollider1.ScService.stop(ScService.java:95)
02-01 21:25:47.045: E/AndroidRuntime(27382): at uk.co.mcld.dabble.GlastoCollider1.ScService.onDestroy(ScService.java:109)
02-01 21:25:47.045: E/AndroidRuntime(27382): at android.app.ActivityThread.handleStopService(ActivityThread.java:2400)
02-01 21:25:47.045: E/AndroidRuntime(27382): ... 10 more
02-01 21:25:47.085: D/SurfaceFlinger(262): [DISP] remove 0x7dc968 2
02-01 21:25:47.125: D/SurfaceFlinger(262): [DISP] purgatorizeLayer_l 0xb3cee8 5
02-01 21:25:47.135: W/dalvikvm(530): disableGcForExternalAlloc: false
02-01 21:25:47.165: D/SurfaceFlinger(262): [DISP] remove 0xb3cee8 2
02-01 21:25:50.168: D/SurfaceFlinger(262): [DISP] removeAbnormalLayer
02-01 21:25:50.178: I/Process(27382): Sending signal. PID: 27382 SIG: 9
02-01 21:25:50.208: D/Wallpaper(530): pauseWallpaper: false
02-01 21:25:50.238: D/InputManagerService(262): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40939c40
02-01 21:25:50.238: I/ActivityManager(262): Process uk.co.mcld.dabble.GlastoCollider1 (pid 27382) has died.
02-01 21:25:50.378: D/SurfaceFlinger(262): [DISP] purgatorizeLayer_l 0x8c0020 5
02-01 21:25:50.408: D/SurfaceFlinger(262): [DISP] remove 0x8c0020 2
02-01 21:25:52.520: V/DeviceStorageMonitorService(262): freeMemory=694366208
02-01 21:25:52.520: D/DeviceStorageMonitorService(262): OoO SMS Memory available. SMS_AVAILABLE_THRESHOLD == 524288
02-01 21:25:52.520: I/DeviceStorageMonitorService(262): Posting Message again
02-01 21:25:53.311: W/ActivityManager(262): Activity destroy timeout for HistoryRecord{40c185a0 net.sf.supercollider.android/.SuperColliderActivity}

Guillem Coma

unread,
Feb 1, 2012, 5:55:03 PM2/1/12
to supercollider-an...@googlegroups.com
Hi Thor,
Sure I could try to polish up the project I'm working on right now and send it to you, maybe it could work (Yes, sorry I'm with windows). The thing is now I have it really messy since I'm putting processing as well...>_< But I can try cleaning it up.

Could you tell me though what code is at line 45 in SuperColliderActivity.java? 

SuperColliderActivity.java:45

Regards,
Coma

thor

unread,
Feb 1, 2012, 6:40:26 PM2/1/12
to supercollider-an...@googlegroups.com
On 1 Feb 2012, at 22:55, Guillem Coma wrote:

Hi Thor,
Sure I could try to polish up the project I'm working on right now and send it to you, maybe it could work (Yes, sorry I'm with windows). The thing is now I have it really messy since I'm putting processing as well...>_< But I can try cleaning it up.

Or just a small sketch compiling the basic template?

Could you tell me though what code is at line 45 in SuperColliderActivity.java? 

It's this line:
SuperColliderActivity.this.superCollider = (ISuperCollider.Stub) service;

I think you must have the same line in yours.

Under src/.net.sf.supercollider.sourceforge/


Thanks again
thor

Reply all
Reply to author
Forward
0 new messages