We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug We have an urgent issue with a Solar2d App when used by our uses on Samsung Device. I have narrowed down the issue to this command: -
display.save( displayedPhoto, { filename="img1.jpg", baseDir=system.TemporaryDirectory, isFullResolution=false, backgroundColor={0, 0, 0, 0} } )
The crash happens when the display.save is called against any display group.
I have tried to recreate the crash on Android Studio with the same OS but it does not crash.
Device Details are: -
Model Name: Galaxy Tab A Model Number: SM-T510
Android Version 11 Kernel Version: 4.4.177
I have modified your Solar2d Camera App to include the above save line which also creates the crash. I enclose the project.
I have also include the crash report from the device.
Camera.zip
--------- beginning of crash 01-23 18:58:15.012 10272 18114 18792 F libc : Fatal signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0xd88d7035 in tid 18792 (GLThread 1527), pid 18114 (ar2d.app.Camera) 01-23 18:58:15.021 10077 4235 19124 D SystemUIService: - Memory Information - 01-23 18:58:15.025 1000 3918 3946 I WindowManager: Reparenting to original parent: Surface(name=Task=80)/@0x63372b1, destroy=true, surface=Surface(name=ActivityRecord{64588d u0 com.sec.android.app.camera/.Camera t80})/@0x6e29c6f 01-23 18:58:15.026 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject s[3164604800] 01-23 18:58:15.026 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject e[3164604800] 01-23 18:58:15.026 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject s[3164605664] 01-23 18:58:15.026 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject e[3164605664] 01-23 18:58:15.027 1000 3918 3946 V WindowManager: Setting visibility of Window{f61125 u0 com.sec.android.app.camera/com.sec.android.app.camera.Camera}: false, caller=com.android.server.wm.WindowContainer.sendAppVisibilityToClients:1004 com.android.server.wm.ActivityRecord.setClientVisible:6391 com.android.server.wm.ActivityRecord.onAnimationFinished:7143 com.android.server.wm.-$$Lambda$dwJG8BAnLlvKNGuDY9U3-haNY4M.onAnimationFinished:2 com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$0$SurfaceAnimator:112 01-23 18:58:15.029 1000 3918 3946 D ActivityTaskManager: finishFixedRotationTransform, r=ActivityRecord{64588d u0 com.sec.android.app.camera/.Camera t80 f}}, caller=com.android.server.wm.WindowToken.finishFixedRotationTransform:664 com.android.server.wm.DisplayContent$FixedRotationTransitionListener.onAppTransitionFinishedLocked:7025 com.android.server.wm.AppTransition.notifyAppTransitionFinishedLocked:552 com.android.server.wm.ActivityRecord.onAnimationFinished:7164 com.android.server.wm.-$$Lambda$dwJG8BAnLlvKNGuDY9U3-haNY4M.onAnimationFinished:2 01-23 18:58:15.029 1000 3918 3946 I WindowManager: Reparenting to original parent: Surface(name=Task=80)/@0x63372b1, destroy=true, surface=Surface(name=ActivityRecord{a18dba u0 com.solar2d.app.Camera/com.ansca.corona.CoronaActivity t80})/@0xe758bc4 01-23 18:58:15.029 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject s[3164605760] 01-23 18:58:15.029 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject e[3164605760] 01-23 18:58:15.029 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject s[3162952800] 01-23 18:58:15.029 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject e[3162952800] 01-23 18:58:15.030 1000 3918 3946 D ActivityTaskManager: finishFixedRotationTransform, r=ActivityRecord{a18dba u0 com.solar2d.app.Camera/com.ansca.corona.CoronaActivity t80}, caller=com.android.server.wm.WindowToken.finishFixedRotationTransform:664 com.android.server.wm.DisplayContent$FixedRotationTransitionListener.onAppTransitionFinishedLocked:7025 com.android.server.wm.AppTransition.notifyAppTransitionFinishedLocked:552 com.android.server.wm.ActivityRecord.onAnimationFinished:7164 com.android.server.wm.-$$Lambda$dwJG8BAnLlvKNGuDY9U3-haNY4M.onAnimationFinished:2 01-23 18:58:15.033 1000 3638 4476 I Layer : id=408 removeFromCurrentState Surface(name=ActivityRecord{64588d u0 com.sec.android.app.camera/.Camera t80})/@0x6e29c6f - animation-leash#0 (73) 01-23 18:58:15.033 1000 3638 4476 I Layer : id=410 removeFromCurrentState Surface(name=ActivityRecord{a18dba u0 com.solar2d.app.Camera/com.ansca.corona.CoronaActivity t80})/@0xe758bc4 - animation-leash#0 (73) 01-23 18:58:15.033 1000 3638 4476 I Layer : id=362 removeFromCurrentState ActivityRecord{a18dba u0 com.solar2d.app.Camera/com.ansca.corona.CoronaActivity t80}#0 (73)
The text was updated successfully, but these errors were encountered:
I have tried to use this and this causes the crash: -
local myObject1 = display.newRect( 50, 50, 100, 150 ) -- Create a rectangle object local myObject2 = display.newCircle( 100, 300, 50 ) -- Create a circle object
local group = display.newGroup()
group:insert( myObject1 ) group:insert( myObject2 )
display.save( group, { filename="entireGroup.png", baseDir=system.DocumentsDirectory, captureOffscreenArea=true, backgroundColor={0,0,0,0} } )
Sorry, something went wrong.
OK, it does not crash when I build it with 2024.3710
No branches or pull requests
Describe the bug
We have an urgent issue with a Solar2d App when used by our uses on Samsung Device. I have narrowed down the issue to this command: -
display.save( displayedPhoto, { filename="img1.jpg", baseDir=system.TemporaryDirectory, isFullResolution=false, backgroundColor={0, 0, 0, 0} } )
The crash happens when the display.save is called against any display group.
I have tried to recreate the crash on Android Studio with the same OS but it does not crash.
Device Details are: -
Model Name: Galaxy Tab A
Model Number: SM-T510
Android Version 11
Kernel Version: 4.4.177
I have modified your Solar2d Camera App to include the above save line which also creates the crash. I enclose the project.
I have also include the crash report from the device.
Camera.zip
--------- beginning of crash
01-23 18:58:15.012 10272 18114 18792 F libc : Fatal signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0xd88d7035 in tid 18792 (GLThread 1527), pid 18114 (ar2d.app.Camera)
01-23 18:58:15.021 10077 4235 19124 D SystemUIService: - Memory Information -
01-23 18:58:15.025 1000 3918 3946 I WindowManager: Reparenting to original parent: Surface(name=Task=80)/@0x63372b1, destroy=true, surface=Surface(name=ActivityRecord{64588d u0 com.sec.android.app.camera/.Camera t80})/@0x6e29c6f
01-23 18:58:15.026 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject s[3164604800]
01-23 18:58:15.026 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject e[3164604800]
01-23 18:58:15.026 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject s[3164605664]
01-23 18:58:15.026 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject e[3164605664]
01-23 18:58:15.027 1000 3918 3946 V WindowManager: Setting visibility of Window{f61125 u0 com.sec.android.app.camera/com.sec.android.app.camera.Camera}: false, caller=com.android.server.wm.WindowContainer.sendAppVisibilityToClients:1004 com.android.server.wm.ActivityRecord.setClientVisible:6391 com.android.server.wm.ActivityRecord.onAnimationFinished:7143 com.android.server.wm.-$$Lambda$dwJG8BAnLlvKNGuDY9U3-haNY4M.onAnimationFinished:2 com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$0$SurfaceAnimator:112
01-23 18:58:15.029 1000 3918 3946 D ActivityTaskManager: finishFixedRotationTransform, r=ActivityRecord{64588d u0 com.sec.android.app.camera/.Camera t80 f}}, caller=com.android.server.wm.WindowToken.finishFixedRotationTransform:664 com.android.server.wm.DisplayContent$FixedRotationTransitionListener.onAppTransitionFinishedLocked:7025 com.android.server.wm.AppTransition.notifyAppTransitionFinishedLocked:552 com.android.server.wm.ActivityRecord.onAnimationFinished:7164 com.android.server.wm.-$$Lambda$dwJG8BAnLlvKNGuDY9U3-haNY4M.onAnimationFinished:2
01-23 18:58:15.029 1000 3918 3946 I WindowManager: Reparenting to original parent: Surface(name=Task=80)/@0x63372b1, destroy=true, surface=Surface(name=ActivityRecord{a18dba u0 com.solar2d.app.Camera/com.ansca.corona.CoronaActivity t80})/@0xe758bc4
01-23 18:58:15.029 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject s[3164605760]
01-23 18:58:15.029 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject e[3164605760]
01-23 18:58:15.029 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject s[3162952800]
01-23 18:58:15.029 1000 3918 3946 I SurfaceControl: nativeRelease nativeObject e[3162952800]
01-23 18:58:15.030 1000 3918 3946 D ActivityTaskManager: finishFixedRotationTransform, r=ActivityRecord{a18dba u0 com.solar2d.app.Camera/com.ansca.corona.CoronaActivity t80}, caller=com.android.server.wm.WindowToken.finishFixedRotationTransform:664 com.android.server.wm.DisplayContent$FixedRotationTransitionListener.onAppTransitionFinishedLocked:7025 com.android.server.wm.AppTransition.notifyAppTransitionFinishedLocked:552 com.android.server.wm.ActivityRecord.onAnimationFinished:7164 com.android.server.wm.-$$Lambda$dwJG8BAnLlvKNGuDY9U3-haNY4M.onAnimationFinished:2
01-23 18:58:15.033 1000 3638 4476 I Layer : id=408 removeFromCurrentState Surface(name=ActivityRecord{64588d u0 com.sec.android.app.camera/.Camera t80})/@0x6e29c6f - animation-leash#0 (73)
01-23 18:58:15.033 1000 3638 4476 I Layer : id=410 removeFromCurrentState Surface(name=ActivityRecord{a18dba u0 com.solar2d.app.Camera/com.ansca.corona.CoronaActivity t80})/@0xe758bc4 - animation-leash#0 (73)
01-23 18:58:15.033 1000 3638 4476 I Layer : id=362 removeFromCurrentState ActivityRecord{a18dba u0 com.solar2d.app.Camera/com.ansca.corona.CoronaActivity t80}#0 (73)
The text was updated successfully, but these errors were encountered: