Skip to content

Problems with using temporary storage on Android 12 #962

@msluszniak

Description

@msluszniak

When running style transfer demo app on my Android 12, I got an error:

  ERROR  {"code": 103, "message": "Failed to save the image: /data/local/tmp/rn_executorch_1773417082268.png"} 
 
 Code: index.tsx
   32 |         setImageUri(output);
   33 |       } catch (e) {
 > 34 |         console.error(e);
      |                      ^
   35 |       }
   36 |     }
   37 |   };
 Call Stack
   runForward (apps/computer-vision/app/style_transfer/index.tsx:34:22)

The reason for that is because on older versions of android TMPDIR defaults to /data/local/tmp which is a directory that is unavailable for regular apps. These changes: main...@ms/fix-image-loading-for-old-androids fix the problem. We need to figure out if we want to go with these changes, or handle this differently

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Important fixes that are not urgent, some workaround available etc.platform: androidIssues and tasks related to Android

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions