Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android]: display.newSnapshot crashes on solar2d 3713 for Android. #751

Open
fahadmirzamobizion opened this issue Dec 11, 2024 · 2 comments

Comments

@fahadmirzamobizion
Copy link

display.newSnapshot crashes on solar2d 3713.

Run the following code and build for android:

local snapshot = display.newSnapshot( 200, 200 )
math.randomseed( 0 )
-- Add 4 fish images to the screen
for i = 1,4 do
    -- Create a fish
    local fish = display.newImageRect( "new_icon.png", 40, 40 )
    -- Move it to a random position relative to the snapshot's origin
    fish:translate( math.random( -100, 100 ), math.random( -100, 100 ) )
    -- Insert the fish into the snapshot
    snapshot.group:insert( fish )
end
snapshot:translate( display.contentCenterX, display.contentCenterY )

Target platform and where build was made:

  • Device: Any android device

Test project is attached to validate the crash.

SnapShotTest.zip

@ggcrunchy
Copy link
Contributor

I'll try to take a look. (In the meantime, you can try 3712; that's 3713 minus some new stuff, in case this happened. 😃)

Any chance you have a log? Did it work fine on any other platforms? (I suppose the simulator.)

@fahadmirzamobizion
Copy link
Author

fahadmirzamobizion commented Dec 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants