java.io.IOException: Prepare failed.: status=0x1

Appcelerator JIRA | Thomas Huelbert | 6 years ago
  1. 0

    1. Phone > sound > Remote URL with adb open results: sound doe snot play, errors seen same case works as expected on 2.3 and < devices. D/KrollContext( 3819): (kroll$31: app://examples/sound_remote_url.js) [1738,945834] Running evaluated script: app://examples/sound_remote_url.js W/iPhone ( 3819): (kroll$31: app://examples/sound_remote_url.js) [384,946218] UI.iPhone.SystemButton.FLEXIBLE_SPACE property isn't supported on Android I/ActivityManager( 134): Displayed com.appcelerator.onesixtwo/org.appcelerator.titanium.TiActivity: +732ms D/TitaniumModule( 3819): (kroll$31: app://examples/sound_remote_url.js) [508,946726] calling interval timer 28 @1304111683210 D/TitaniumModule( 3819): (kroll$31: app://examples/sound_remote_url.js) [501,947227] calling interval timer 28 @1304111683711 I/StagefrightPlayer( 85): setDataSource('http://www.nch.com.au/acm/8kmp38.wav') I/NuHTTPDataSource( 85): connect to www.nch.com.au:80/acm/8kmp38.wav @0 I/NuCachedSource2( 85): ERROR_END_OF_STREAM E/MediaPlayer( 3819): error (1, -2147483648) W/TiSound ( 3819): (kroll$31: app://examples/sound_remote_url.js) [807,948034] Issue while initializing : W/TiSound ( 3819): java.io.IOException: Prepare failed.: status=0x1 W/TiSound ( 3819): at android.media.MediaPlayer.prepare(Native Method) W/TiSound ( 3819): at ti.modules.titanium.media.TiSound.initialize(TiSound.java:120) W/TiSound ( 3819): at ti.modules.titanium.media.TiSound.play(TiSound.java:179) W/TiSound ( 3819): at ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:116) W/TiSound ( 3819): at ti.modules.titanium.media.SoundProxyBindingGen$10.invoke(SoundProxyBindingGen.java:407) W/TiSound ( 3819): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) W/TiSound ( 3819): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701) W/TiSound ( 3819): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) W/TiSound ( 3819): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) W/TiSound ( 3819): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) W/TiSound ( 3819): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) W/TiSound ( 3819): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) W/TiSound ( 3819): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139) W/TiSound ( 3819): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164) W/TiSound ( 3819): at android.os.Handler.handleCallback(Handler.java:587) W/TiSound ( 3819): at android.os.Handler.dispatchMessage(Handler.java:92) W/TiSound ( 3819): at android.os.Looper.loop(Looper.java:126) W/TiSound ( 3819): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)

    Appcelerator JIRA | 6 years ago | Thomas Huelbert
    java.io.IOException: Prepare failed.: status=0x1
  2. 0

    1. Phone > sound > Remote URL with adb open results: sound doe snot play, errors seen same case works as expected on 2.3 and < devices. D/KrollContext( 3819): (kroll$31: app://examples/sound_remote_url.js) [1738,945834] Running evaluated script: app://examples/sound_remote_url.js W/iPhone ( 3819): (kroll$31: app://examples/sound_remote_url.js) [384,946218] UI.iPhone.SystemButton.FLEXIBLE_SPACE property isn't supported on Android I/ActivityManager( 134): Displayed com.appcelerator.onesixtwo/org.appcelerator.titanium.TiActivity: +732ms D/TitaniumModule( 3819): (kroll$31: app://examples/sound_remote_url.js) [508,946726] calling interval timer 28 @1304111683210 D/TitaniumModule( 3819): (kroll$31: app://examples/sound_remote_url.js) [501,947227] calling interval timer 28 @1304111683711 I/StagefrightPlayer( 85): setDataSource('http://www.nch.com.au/acm/8kmp38.wav') I/NuHTTPDataSource( 85): connect to www.nch.com.au:80/acm/8kmp38.wav @0 I/NuCachedSource2( 85): ERROR_END_OF_STREAM E/MediaPlayer( 3819): error (1, -2147483648) W/TiSound ( 3819): (kroll$31: app://examples/sound_remote_url.js) [807,948034] Issue while initializing : W/TiSound ( 3819): java.io.IOException: Prepare failed.: status=0x1 W/TiSound ( 3819): at android.media.MediaPlayer.prepare(Native Method) W/TiSound ( 3819): at ti.modules.titanium.media.TiSound.initialize(TiSound.java:120) W/TiSound ( 3819): at ti.modules.titanium.media.TiSound.play(TiSound.java:179) W/TiSound ( 3819): at ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:116) W/TiSound ( 3819): at ti.modules.titanium.media.SoundProxyBindingGen$10.invoke(SoundProxyBindingGen.java:407) W/TiSound ( 3819): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) W/TiSound ( 3819): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701) W/TiSound ( 3819): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) W/TiSound ( 3819): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) W/TiSound ( 3819): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) W/TiSound ( 3819): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) W/TiSound ( 3819): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) W/TiSound ( 3819): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139) W/TiSound ( 3819): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164) W/TiSound ( 3819): at android.os.Handler.handleCallback(Handler.java:587) W/TiSound ( 3819): at android.os.Handler.dispatchMessage(Handler.java:92) W/TiSound ( 3819): at android.os.Looper.loop(Looper.java:126) W/TiSound ( 3819): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)

    Appcelerator JIRA | 6 years ago | Thomas Huelbert
    java.io.IOException: Prepare failed.: status=0x1
  3. 0

    {html}<div><p>See KS: Phone &gt; Sound &gt; Remote URL</p> <pre> <code> 02-07 10:26:19.913: WARN/TiSound(10309): (kroll$37: app://examples/sound_remote_url.js) [381,1386817] Issue while initializing : 02-07 10:26:19.913: WARN/TiSound(10309): java.io.IOException: Prepare failed.: status=0x1 02-07 10:26:19.913: WARN/TiSound(10309): at android.media.MediaPlayer.prepare(Native Method) 02-07 10:26:19.913: WARN/TiSound(10309): at ti.modules.titanium.media.TiSound.initialize(TiSound.java:119) 02-07 10:26:19.913: WARN/TiSound(10309): at ti.modules.titanium.media.TiSound.play(TiSound.java:173) 02-07 10:26:19.913: WARN/TiSound(10309): at ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:116) 02-07 10:26:19.913: WARN/TiSound(10309): at ti.modules.titanium.media.SoundProxyBindingGen$10.invoke(SoundProxyBindingGen.java:407) 02-07 10:26:19.913: WARN/TiSound(10309): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) 02-07 10:26:19.913: WARN/TiSound(10309): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139) 02-07 10:26:19.913: WARN/TiSound(10309): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164) 02-07 10:26:19.913: WARN/TiSound(10309): at android.os.Handler.handleCallback(Handler.java:587) 02-07 10:26:19.913: WARN/TiSound(10309): at android.os.Handler.dispatchMessage(Handler.java:92) 02-07 10:26:19.913: WARN/TiSound(10309): at android.os.Looper.loop(Looper.java:123) 02-07 10:26:19.913: WARN/TiSound(10309): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:89)</code> </pre></div>{html}

    Appcelerator JIRA | 6 years ago | Marshall Culpepper
    java.io.IOException: Prepare failed.: status=0x1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {html}<div><p>See KS: Phone &gt; Sound &gt; Remote URL</p> <pre> <code> 02-07 10:26:19.913: WARN/TiSound(10309): (kroll$37: app://examples/sound_remote_url.js) [381,1386817] Issue while initializing : 02-07 10:26:19.913: WARN/TiSound(10309): java.io.IOException: Prepare failed.: status=0x1 02-07 10:26:19.913: WARN/TiSound(10309): at android.media.MediaPlayer.prepare(Native Method) 02-07 10:26:19.913: WARN/TiSound(10309): at ti.modules.titanium.media.TiSound.initialize(TiSound.java:119) 02-07 10:26:19.913: WARN/TiSound(10309): at ti.modules.titanium.media.TiSound.play(TiSound.java:173) 02-07 10:26:19.913: WARN/TiSound(10309): at ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:116) 02-07 10:26:19.913: WARN/TiSound(10309): at ti.modules.titanium.media.SoundProxyBindingGen$10.invoke(SoundProxyBindingGen.java:407) 02-07 10:26:19.913: WARN/TiSound(10309): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161) 02-07 10:26:19.913: WARN/TiSound(10309): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) 02-07 10:26:19.913: WARN/TiSound(10309): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139) 02-07 10:26:19.913: WARN/TiSound(10309): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164) 02-07 10:26:19.913: WARN/TiSound(10309): at android.os.Handler.handleCallback(Handler.java:587) 02-07 10:26:19.913: WARN/TiSound(10309): at android.os.Handler.dispatchMessage(Handler.java:92) 02-07 10:26:19.913: WARN/TiSound(10309): at android.os.Looper.loop(Looper.java:123) 02-07 10:26:19.913: WARN/TiSound(10309): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:89)</code> </pre></div>{html}

    Appcelerator JIRA | 6 years ago | Marshall Culpepper
    java.io.IOException: Prepare failed.: status=0x1
  6. 0

    MediaPlayer: Prepare failed status 0x1 error while streaming song

    Stack Overflow | 3 years ago | Bersh
    java.io.IOException: Prepare failed.: status=0x1
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Prepare failed.: status=0x1

    at android.media.MediaPlayer.prepare()
  2. Android Platform
    MediaPlayer.prepare
    1. android.media.MediaPlayer.prepare(Native Method)
    1 frame
  3. ti.modules.titanium
    SoundProxyBindingGen$10.invoke
    1. ti.modules.titanium.media.TiSound.initialize(TiSound.java:120)
    2. ti.modules.titanium.media.TiSound.play(TiSound.java:179)
    3. ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:116)
    4. ti.modules.titanium.media.SoundProxyBindingGen$10.invoke(SoundProxyBindingGen.java:407)
    4 frames
  4. org.appcelerator.kroll
    KrollMethod.call
    1. org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)
    1 frame
  5. Rhino
    InterpretedFunction.call
    1. org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
    2. org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
    3. org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    4. org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
    5. org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)
    6. org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    6 frames
  6. org.appcelerator.titanium
    KrollCallback$1.run
    1. org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139)
    2. org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164)
    2 frames
  7. Android Platform
    Looper.loop
    1. android.os.Handler.handleCallback(Handler.java:587)
    2. android.os.Handler.dispatchMessage(Handler.java:92)
    3. android.os.Looper.loop(Looper.java:126)
    3 frames
  8. org.appcelerator.titanium
    KrollHandlerThread.run
    1. org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)
    1 frame