Skip to content

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

@fahadmirzamobizion

Description

@fahadmirzamobizion

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions