Open personalnadir opened 2 years ago
Here's what the above code looks like for me in the simulator
The image asset used
Adding the line
topClear.alpha = 0.2
after the setBackground
call cause the above code to crash my 2018 MacBook Pro
The code above does not crash on my M1 Mac Mini Machine, Does this occur for people on the newest MacOS and Corona Sim?
I've tested the code on M1 Mac, with MacOS Ventura 13.3 and Corona Sim v.2023.3688 and it doesn't crash.
Crashes for me on MBP 2020, Intel device. macOS Ventura 13.3.1. This seems to be an Intel-related issue.
GPU hang occurred, CoreAnalytics returned false
GPU hang occurred, CoreAnalytics returned false
[Finished in 10.5s with exit code -6]
Describe the bug The following code produces the message 'GPU hang occurred, CoreAnalytics returned false' before causing the simulator to crash on my machine (produced in an attempt to reproduce an issue which is causing the simulator to hard crash my MacBook)
To Reproduce Steps to reproduce the behavior:
local dot = display.newImage("dot.png") dot:setFillColor(0,1,1) dot.blendMode = "multiply" dot.alpha = 0.4 dot:scale(4,3)
local topTexture, bottomTexture, sharedTexture function create() sharedTexture = graphics.newTexture( { type="canvas", width=display.contentWidth, height=display.contentHeight/2 } ) topTexture = graphics.newTexture( { type="canvas", width=display.contentWidth, height=display.contentHeight/2 } ) bottomTexture = graphics.newTexture( { type="canvas", width=display.contentWidth, height=display.contentHeight/2 } )
end
create()
Runtime:addEventListener("enterFrame", function() sharedTexture:setBackground( 0, 0, 1 ) sharedTexture:draw(topClear) sharedTexture:draw(c) sharedTexture:invalidate()
end)