discrepancy between emulator and phone. I have now filed a bug report
On Jul 11, 2:21 pm, blindfold <
seeingwithso...@gmail.com> wrote:
> Excellent fadden! I successfully set CheckJNI by setting its property
> in /data/local.prop, and after rebooting my ADP and starting my app
> with Eclipse it properly started with the LogCat message "CheckJNI is
> ON".
>
> However, despite extra precautions for failing native code allocations
> (in case the device would be short on memory), I found that GREF was
> on average still slowly increasing, by something like 100 or 200 for
> every 100 iterations in my app. I'm strongly suspecting that this is
> not due to a bug in my native code. In fact I still see it when I
> disable my native code calls, and the unexplained GREF growth
> disappears if I replace my (non-native, pure Android) AudioTrack calls
> by my older MediaPlayer workaround that writes audio to flash memory
> and plays from there. Now my use of AudioTrack/MediaPlayer is
> completely separate from my JNI use.
>
> Is there a known reference release bug in the Cupcake implementation
> of AudioTrack? The GREF messages are not fine-grained enough to do
> more detailed checking than looking at GREF increments/decrements by
> 100. I'm reminded of a similar discussion at
>