Skip to content

Problems with using temporary storage on Android 12 #962

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

Labels

platform: androidIssues and tasks related to Android

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions