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

Appcelerator JIRA | Anshu Mittal | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Remote URL does not play. Steps To Reproduce: 1. LG-P970 > Kitchensink > Phone> Sound> RemoteURL 2. Press Play Actual: 05-09 06:43:26.673: V/MediaPlayerService(1627): [68] notify (0x920d8, 100, 1, -2112880640) 05-09 06:43:26.680: E/MediaPlayer(11860): error (1, -2112880640) 05-09 06:43:26.680: W/TiSound(11860): (KrollRuntimeThread) [2746,8112398] Issue while initializing : 05-09 06:43:26.680: W/TiSound(11860): java.io.IOException: Prepare failed.: status=0x1 05-09 06:43:26.680: W/TiSound(11860): at android.media.MediaPlayer.prepare(Native Method) 05-09 06:43:26.680: W/TiSound(11860): at ti.modules.titanium.media.TiSound.initialize(TiSound.java:119) 05-09 06:43:26.680: W/TiSound(11860): at ti.modules.titanium.media.TiSound.play(TiSound.java:178) 05-09 06:43:26.680: W/TiSound(11860): at ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:135) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:60) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:494) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:675) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:398) 05-09 06:43:26.680: W/TiSound(11860): at android.os.Handler.dispatchMessage(Handler.java:95) 05-09 06:43:26.680: W/TiSound(11860): at android.os.Looper.loop(Looper.java:123) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:104) 05-09 06:43:26.680: V/MediaPlayerService(1627): disconnect(68) from pid 11860 Expected: File should play successfully Note: Also occured in 1.8.2

    Appcelerator JIRA | 5 years ago | Anshu Mittal
    java.io.IOException: Prepare failed.: status=0x1
  2. 0

    Remote URL does not play. Steps To Reproduce: 1. LG-P970 > Kitchensink > Phone> Sound> RemoteURL 2. Press Play Actual: 05-09 06:43:26.673: V/MediaPlayerService(1627): [68] notify (0x920d8, 100, 1, -2112880640) 05-09 06:43:26.680: E/MediaPlayer(11860): error (1, -2112880640) 05-09 06:43:26.680: W/TiSound(11860): (KrollRuntimeThread) [2746,8112398] Issue while initializing : 05-09 06:43:26.680: W/TiSound(11860): java.io.IOException: Prepare failed.: status=0x1 05-09 06:43:26.680: W/TiSound(11860): at android.media.MediaPlayer.prepare(Native Method) 05-09 06:43:26.680: W/TiSound(11860): at ti.modules.titanium.media.TiSound.initialize(TiSound.java:119) 05-09 06:43:26.680: W/TiSound(11860): at ti.modules.titanium.media.TiSound.play(TiSound.java:178) 05-09 06:43:26.680: W/TiSound(11860): at ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:135) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:60) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:494) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:675) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:398) 05-09 06:43:26.680: W/TiSound(11860): at android.os.Handler.dispatchMessage(Handler.java:95) 05-09 06:43:26.680: W/TiSound(11860): at android.os.Looper.loop(Looper.java:123) 05-09 06:43:26.680: W/TiSound(11860): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:104) 05-09 06:43:26.680: V/MediaPlayerService(1627): disconnect(68) from pid 11860 Expected: File should play successfully Note: Also occured in 1.8.2

    Appcelerator JIRA | 5 years ago | Anshu Mittal
    java.io.IOException: Prepare failed.: status=0x1
  3. 0

    Steps To Reproduce: 1. KS Nook > Miscellaneous > Sound > Remote URL 2. Press Play Actual: E/PlayerDriver( 901): Command PLAYER_INIT completed with an error or info PVMFFailure E/MediaPlayer( 2426): error (1, -1) W/TiSound ( 2426): (KrollRuntimeThread) [8344,1267658] Issue while initializing : W/TiSound ( 2426): java.io.IOException: Prepare failed.: status=0x1 W/TiSound ( 2426): at android.media.MediaPlayer.prepare(Native Method) W/TiSound ( 2426): at ti.modules.titanium.media.TiSound.initialize(TiSound.java:119) W/TiSound ( 2426): at ti.modules.titanium.media.TiSound.play(TiSound.java:178) W/TiSound ( 2426): at ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:135) W/TiSound ( 2426): at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) W/TiSound ( 2426): at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:47) W/TiSound ( 2426): at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:441) W/TiSound ( 2426): at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:602) W/TiSound ( 2426): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:340) W/TiSound ( 2426): at android.os.Handler.dispatchMessage(Handler.java:95) W/TiSound ( 2426): at android.os.Looper.loop(Looper.java:123) W/TiSound ( 2426): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:102) W/PlayerDriver( 901): PVMFInfoErrorHandlingComplete Expected: For file to play Note: Also occured in 1.8.0.1

    Appcelerator JIRA | 5 years ago | Natalie Huynh
    java.io.IOException: Prepare failed.: status=0x1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Steps To Reproduce: 1. KS Nook > Miscellaneous > Sound > Remote URL 2. Press Play Actual: E/PlayerDriver( 901): Command PLAYER_INIT completed with an error or info PVMFFailure E/MediaPlayer( 2426): error (1, -1) W/TiSound ( 2426): (KrollRuntimeThread) [8344,1267658] Issue while initializing : W/TiSound ( 2426): java.io.IOException: Prepare failed.: status=0x1 W/TiSound ( 2426): at android.media.MediaPlayer.prepare(Native Method) W/TiSound ( 2426): at ti.modules.titanium.media.TiSound.initialize(TiSound.java:119) W/TiSound ( 2426): at ti.modules.titanium.media.TiSound.play(TiSound.java:178) W/TiSound ( 2426): at ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:135) W/TiSound ( 2426): at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) W/TiSound ( 2426): at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:47) W/TiSound ( 2426): at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:441) W/TiSound ( 2426): at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:602) W/TiSound ( 2426): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:340) W/TiSound ( 2426): at android.os.Handler.dispatchMessage(Handler.java:95) W/TiSound ( 2426): at android.os.Looper.loop(Looper.java:123) W/TiSound ( 2426): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:102) W/PlayerDriver( 901): PVMFInfoErrorHandlingComplete Expected: For file to play Note: Also occured in 1.8.0.1

    Appcelerator JIRA | 5 years ago | Natalie Huynh
    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
    SoundProxy.play
    1. ti.modules.titanium.media.TiSound.initialize(TiSound.java:119)
    2. ti.modules.titanium.media.TiSound.play(TiSound.java:178)
    3. ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:135)
    3 frames
  4. org.appcelerator.kroll
    KrollProxy.handleMessage
    1. org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
    2. org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:60)
    3. org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:494)
    4. org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:675)
    4 frames
  5. org.appcelerator.titanium
    TiViewProxy.handleMessage
    1. org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:398)
    1 frame
  6. Android Platform
    Looper.loop
    1. android.os.Handler.dispatchMessage(Handler.java:95)
    2. android.os.Looper.loop(Looper.java:123)
    2 frames
  7. org.appcelerator.kroll
    KrollRuntime$KrollRuntimeThread.run
    1. org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:104)
    1 frame