Skip to content

Failing to upscale any image on AMD based laptop vkAllocateMemory failed -2 #880

@cas8180

Description

@cas8180

Checklist

Describe the Bug

Unable to upscale any image. When I drag the image onto the canvas, with default settings and just click upscale. The app is reporting that the upscaling was successful. However, it is not. My laptop is using a AMD 780m GPU. I would like to note that I have used this app on both my m1 pro and mother other intel based laptop without any issues.

To Reproduce

This could be a bit hard to reproduce as this is specific to my latop and gpu I believe. But I am running an AMD Ryzen 7 pro 7840u with Radeon 780M graphics.

Repro steps:
drag any image onto the default canvas and simply click upscale.
The app executes quickly with a success message indicating that the image has been successfully upscaled. However, the upscaled version of the image is never created

Upscayl Version (or commit hash)

2.11.5

Platform

Windows

OS Version

Windows 11 Build 22631

GPU Name

780M

Expected Behavior

Image to be properly upscaled

Screenshots

image

Logs

⚙️ Getting saveImageAs from localStorage:  png
⚙️ Getting model from localStorage:  {"label":"General Photo (Remacri)","value":"remacri"}
⚙️ Setting gpuId to empty string
🔀 Setting model to 
🔀 Setting model to remacri
⚙️ Getting saveImageAs from localStorage:  png
⚙️ Getting model from localStorage:  {"label":"General Photo (Remacri)","value":"remacri"}
⚙️ Setting gpuId to empty string
🔄 Resetting image paths
⤵️ Dropped file:  {"type":"image/jpeg","filePath":"C:\\Users\\cas81\\Downloads\\_4ad23c6a-6491-47b0-99df-965ea916e7df.jpg","extension":"jpg"}
🖼 Setting image path:  C:\Users\cas81\Downloads\_4ad23c6a-6491-47b0-99df-965ea916e7df.jpg
🗂 Setting output path:  C:\Users\cas81\Downloads
🖼 imagePath:  C:\Users\cas81\Downloads\_4ad23c6a-6491-47b0-99df-965ea916e7df.jpg
🔤 Extension:  jpg
⚙️ Getting saveImageAs from localStorage:  png
⚙️ Getting model from localStorage:  {"label":"General Photo (Remacri)","value":"remacri"}
⚙️ Setting gpuId to empty string
🔀 Setting model to 
🔀 Setting model to remacri
🔄 Resetting Upscaled Image Path
🏁 UPSCAYL
🎒 BACKEND REPORTED:  ✅ Upscayl Variables:  {"model":"remacri","gpuId":null,"saveImageAs":"png","inputDir":"C:\\Users\\cas81\\Downloads","fileNameWithExt":"_4ad23c6a-6491-47b0-99df-965ea916e7df.jpg","outputDir":"C:\\Users\\cas81\\Downloads","outFile":"C:\\Users\\cas81\\Downloads\\_4ad23c6a-6491-47b0-99df-965ea916e7df_upscayl_4x_remacri.png","fileName":"_4ad23c6a-6491-47b0-99df-965ea916e7df","scale":"4","compression":"0","customWidth":"","useCustomWidth":false,"tileSize":null}
🎒 BACKEND REPORTED:  📢 Upscayl Command:  -i,C:\Users\cas81\Downloads\_4ad23c6a-6491-47b0-99df-965ea916e7df.jpg,-o,C:\Users\cas81\Downloads\_4ad23c6a-6491-47b0-99df-965ea916e7df_upscayl_4x_remacri.png,-m,C:\Program Files\Upscayl\resources\models,-n,remacri,-f,png,-c,0
🎒 BACKEND REPORTED:  👶 Updating Child Processes:  {"binary":"C:\\Program Files\\Upscayl\\resources\\bin\\upscayl-bin","args":["C:\\Program Files\\Upscayl\\resources\\bin\\upscayl-bin","-i","C:\\Users\\cas81\\Downloads\\_4ad23c6a-6491-47b0-99df-965ea916e7df.jpg","-o","C:\\Users\\cas81\\Downloads\\_4ad23c6a-6491-47b0-99df-965ea916e7df_upscayl_4x_remacri.png","-m","C:\\Program Files\\Upscayl\\resources\\models","-n","remacri","-f","png","-c","0"]}
🎒 BACKEND REPORTED:  🛑 Updating Stopped:  false
🎒 BACKEND REPORTED:  [0 AMD Radeon(TM) 780M]  queueC=1[2]  queueG=0[1]  queueT=2[1]
[0 AMD Radeon(TM) 780M]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
[0 AMD Radeon(TM) 780M]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
[0 AMD Radeon(TM) 780M]  subgroup=64  basic=1  vote=1  ballot=1  shuffle=1

🚧 UPSCAYL_PROGRESS:  [0 AMD Radeon(TM) 780M]  queueC=1[2]  queueG=0[1]  queueT=2[1]
[0 AMD Radeon(TM) 780M]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
[0 AMD Radeon(TM) 780M]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
[0 AMD Radeon(TM) 780M]  subgroup=64  basic=1  vote=1  ballot=1  shuffle=1

🎒 BACKEND REPORTED:  vkAllocateMemory failed -2

🚧 UPSCAYL_PROGRESS:  vkAllocateMemory failed -2

🎒 BACKEND REPORTED:  💯 Done upscaling
upscaledImagePath:  C:\Users\cas81\Downloads\_4ad23c6a-6491-47b0-99df-965ea916e7df_upscayl_4x_remacri.png
💯 UPSCAYL_DONE:  C:\Users\cas81\Downloads\_4ad23c6a-6491-47b0-99df-965ea916e7df_upscayl_4x_remacri.png
⚙️ Getting saveImageAs from localStorage:  png
⚙️ Getting model from localStorage:  {"label":"General Photo (Remacri)","value":"remacri"}
⚙️ Setting gpuId to empty string

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleWe lack your response. Please reply to re-start the issue (ignore if added by Dosu)vulkanIssues that concern with hardware and were open at least once after 2024-01-19

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions