Search Unity

Question Could not save bitmap data to memory stream error

Discussion in 'Android' started by frochet38, Dec 29, 2021.

  1. frochet38

    frochet38

    Joined:
    Jan 29, 2020
    Posts:
    2
    Hi there,

    I've got a project on which I work sometimes, and I'm now trying to build and debug it on Android.
    I'm able to build and generate an apk for Android, but the build results with this error:

    Code (CSharp):
    1.  
    2. Could not save bitmap data to memory stream
    3. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    4.  
    I've stuggled all the day looking for solutions on every available forums, but nobody seepm to have the same error than me. It was a 2020.3.6f1 project upgraded to 2020.3.8f1.

    The build works when I deploy it manually to an Android device, but the Build and Run command fails giving "more" errors:

    Code (CSharp):
    1.  
    2. Could not save bitmap data to memory stream
    3. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
    4. Error building Player: Could not save bitmap data to memory stream
    5. Build completed with a result of 'Failed' in 26 seconds (25807 ms)
    6. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
    7. UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    8.   at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <015079d9a4ea4f97b4381e694d2310c1>:0
    9.   at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <015079d9a4ea4f97b4381e694d2310c1>:0
    10. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
    11.  
    Does anyone have an idea on where is located the error and how I can solve it ?

    Thanks a lot

    Frank
     
  2. frochet38

    frochet38

    Joined:
    Jan 29, 2020
    Posts:
    2
    I discovered the error remains even if I delete every object in the scene...