Defold 1.3.5 has been released

Course I can - hang on!

@AGulev: Alexey, you are right, 32-bit only works, did an apk only and an apk+aab. Bundling for both 32-bits and 64-bits crashes the app.

1 Like

Thanks. This gives us something to investigate.

2 Likes

Could you pls share this metrics/mem.script file with us?

There it is, I thinks you mean the one from the repo I use in the project, don’t you:
mem.script (306 Bytes)

2 Likes

Just to make sure it’s not down to my project, I just downloaded the defold-metrics repo project itself and ran the tests:
same result: 32 bit works, bundling for both 32 and 64 bit crashes the app on my Samsung Galaxy Tab S.

2 Likes

FYI I have found an issue and I’m working on a fix.

2 Likes

Thank you!

We have decided to revert “(#6752) Generate Lua bytecode for HTML5 bundles” due to the impact it has on the bundle size. A new stable 1.3.5 release should reach you soon.

The new version also contains a fix for the debugger issue some users have reported.

11 Likes

Can you elaborate on this issue?
We just upgraded to 1.3.5 and updated to editor 28d332c9d67b9c8df35fed1274729322ecfd79f1, and find that the debugger doesn’t open lua modules when clicking in the callstack (script files do go to the correct location).
e.g. in the Gooey example, setting a breakpoint in input.lua, clicking on the 1st, 2nd and 4th callstack entries does nothing.
image

Yep, we have noticed this as well. The problem was that the chunk/filename was different depending on if the project was running from Lua source or Lua bytecode. You typically get bytecode when bundling and sourcecode when running from the editor.

To fix this once and for all we’ve done a full review of how we process Lua scripts and modules in 1.3.6. The 1.3.6 beta will be released on Monday and include this improvement:

As a bonus we’ll also add a context menu for stacktraces where the Lua path is ambiguous in the console (only the last 60 characters of a path is included):

1 Like

Android apps bundled with 1.3.5 crash consistently with this repo:

  1. Open app
  2. Iconify app
  3. Open app (crash)

With this error:

INFO:CRASH: Successfully wrote Crashdump to file: /data/user/0/com.totebo.edgerace/files/_crash
ERROR:CRASH: CALL STACK:

# 0 pc        0x240 ...android.art/lib64/libsigchain.so _ZN3art11SignalChain7HandlerEiP7siginfoPv+436
# 1 pc     0x131b24 [anon:.bss] <unknown>+0

This happens both in the game I’m working on, and in a completely empty project (using the same bundle settings).

I haven’t figured out how to access the crashdump file on Android, I can’t seem to find the /data/user/0/com.totebo.edgerace/files/_crash folder using Android File Transfer.

A bit more from logcat:

09-02 09:05:33.171 26588 26588 V threaded_app: Start: 0xb400007776e7d630
09-02 09:05:33.171 26588 26609 V threaded_app: activityState=10
09-02 09:05:33.171 26588 26609 V glfw-android: handleCommand (looper thread): APP_CMD_START
09-02 09:05:33.172 26588 26588 V threaded_app: Resume: 0xb400007776e7d630
09-02 09:05:33.172 26588 26609 V threaded_app: activityState=11
09-02 09:05:33.172 26588 26609 V glfw-android: handleCommand (looper thread): APP_CMD_RESUME
09-02 09:05:33.173  1290  1290 I sensors-hal: [hal]batch_physical_sensor:314, android.sensor.accelerometer/11, period=200000000, max_latency=0
09-02 09:05:33.173  1290  1290 I sensors-hal: [sensor]set_config:64, sample_period_ns is adjusted to 200000000 based on min/max delay_ns
09-02 09:05:33.173  1290  1290 I sensors-hal: [hal]batch_physical_sensor:323, android.sensor.accelerometer/11, period=200000000, max_latency=0 request completed
09-02 09:05:33.175  1290 21988 I sensors-hal: [ssc_sensor]ssc_conn_resp_cb:686, resp_value = 0
09-02 09:05:33.175  1290  1290 I sensors-hal: [hal]flush_physical_sensor:355, android.sensor.accelerometer/11
09-02 09:05:33.175  1290  1290 I sensors-hal: [hal]flush_physical_sensor:361, android.sensor.accelerometer/11 completed
09-02 09:05:33.176 26588 26609 V glfw-android: iconified: YES    (resume: YES, surface: no)
09-02 09:05:33.176  1290 21988 I sensors-hal: [ssc_sensor]ssc_conn_resp_cb:686, resp_value = 0
09-02 09:05:33.192 26588 26588 V threaded_app: NativeWindowCreated: 0xb400007776e7d630 -- 0xb400007836eae960
09-02 09:05:33.192 26588 26609 V threaded_app: APP_CMD_INIT_WINDOW
09-02 09:05:33.192 26588 26609 V glfw-android: handleCommand (looper thread): APP_CMD_INIT_WINDOW
09-02 09:05:33.203   644   745 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
09-02 09:05:33.205  2095  2351 W ziparchive: Unable to open '/data/app/~~XkF6r-V5SZOtlzDnzASigg==/com.totebo.edgerace-TG3MGjpllgn8n39NtZIyBQ==/base.dm': No such file or directory
09-02 09:05:33.217 26588 26588 V threaded_app: WindowFocusChanged: 0xb400007776e7d630 -- 1
09-02 09:05:33.217 26588 26609 V glfw-android: handleCommand (looper thread): APP_CMD_GAINED_FOCUS
09-02 09:05:33.221  1104  1104 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3273 
09-02 09:05:33.223  1104  1104 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2165 repeatCheckTimes = 0, unlocked = true
09-02 09:05:33.223  1104  1104 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1956 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.totebo.edgerace fieldId=-1 fieldName=null extras=null}, false)
09-02 09:05:33.223  1104  1104 I GoogleInputMethodService: GoogleInputMethodService.shouldHideHeaderOnInitialState():4081 ShouldHideHeaderOnInitialState = false
09-02 09:05:33.224  1104  1104 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2165 repeatCheckTimes = 2, unlocked = true
09-02 09:05:33.245 26588 26611 V glfw-android: handleCommand (main thread): APP_CMD_START
09-02 09:05:33.245 26588 26611 V glfw-android: handleCommand (main thread): APP_CMD_RESUME
09-02 09:05:33.245 26588 26611 V glfw-android: handleCommand (main thread): APP_CMD_INIT_WINDOW
09-02 09:05:33.245 26588 26611 V glfw-android: create_gl_surface
09-02 09:05:33.257 26588 26611 E Surface : getSlotFromBufferLocked: unknown buffer: 0xb400007726eb5490
09-02 09:05:33.268 26588 26611 I defold  : INFO:CRASH: Successfully wrote Crashdump to file: /data/user/0/com.totebo.edgerace/files/_crash
09-02 09:05:33.268 26588 26611 E defold  : ERROR:CRASH: CALL STACK:
09-02 09:05:33.268 26588 26611 E defold  : 
09-02 09:05:33.268 26588 26611 E defold  : # 0 pc        0x240 ...android.art/lib64/libsigchain.so _ZN3art11SignalChain7HandlerEiP7siginfoPv+436
09-02 09:05:33.268 26588 26611 E defold  : # 1 pc     0x132374 [anon:.bss] <unknown>+0
09-02 09:05:33.268 26588 26611 E defold  : 
09-02 09:05:33.268 26588 26611 E defold  : 
09-02 09:05:33.268 26588 26611 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 26611 (NativeThread), pid 26588 (totebo.edgerace)
09-02 09:05:33.277  4171  4171 I GsaVoiceInteractionSrv: Handling ACTION_STOP_HOTWORD
09-02 09:05:33.280  1254  1259 E statsd  : CountMetric -2385552029547859647 dropping data for dimension key (475)0x10000->10156[I] (475)0x30000->STOP_HOTWORD[S] (475)0x40000->1[I] (475)0x50000->1[I] 
09-02 09:05:33.305  2095  2545 W InputManager-JNI: Input channel object '28fe29 SnapshotStartingWindow for taskId=51764 (client)' was disposed without first being removed with the input manager!
09-02 09:05:33.314 26720 26720 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
09-02 09:05:33.315   872   872 I tombstoned: received crash request for pid 26611
09-02 09:05:33.316 26720 26720 I crash_dump64: performing dump of process 26588 (target tid = 26611)
09-02 09:05:33.377  2790  2790 D DLObserver: onReceive(); android.intent.action.BATTERY_CHANGED
09-02 09:05:33.378  2790  2790 D DLObserver: plugged=1
09-02 09:05:33.378  2790  2790 D PowerNotificationWarningsGoogleImpl: onReceive: android.intent.action.BATTERY_CHANGED
09-02 09:05:33.382  2790  2790 D BatteryInfoBroadcast: onReceive: android.intent.action.BATTERY_CHANGED isPowerSaveMode: false
09-02 09:05:33.382  2790  2790 D BatteryDefenderNotification: isPlugged: true | isOverheated: false | defenderEnabled: false | isCharged: true
09-02 09:05:33.382  2790  4113 D PowerUI : can't show warning due to - plugged: true status unknown: false
09-02 09:05:33.383  3163  3163 V DeviceStatisticsService: chargerType=1 batteryLevel=100 totalBatteryCapacity=3350600
09-02 09:05:33.383  3163  3163 D DeviceInfoHidlClient: isRadioOn()=true
09-02 09:05:33.383  3163  3163 I DeviceInfoHidlClient: isPowerInfoNeverSent=false batteryLevel=100 batteryLevelIndex=3 chargingMode=1 totalCapacity=3350600 powerSaveMode=false
09-02 09:05:33.384  2790  2790 I ReverseChargingControl: handleIntentForReverseCharging(): rtx=0 wlc=0 plgac=1 ac=1 acrtx=0 extra=1 this=com.google.android.systemui.reversecharging.ReverseChargingController@bb19296
09-02 09:05:33.548 26720 26720 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-02 09:05:33.548 26720 26720 F DEBUG   : Build fingerprint: 'google/redfin/redfin:13/TP1A.220624.014/8819323:user/release-keys'
09-02 09:05:33.548 26720 26720 F DEBUG   : Revision: 'MP1.0'
09-02 09:05:33.548 26720 26720 F DEBUG   : ABI: 'arm64'
09-02 09:05:33.548 26720 26720 F DEBUG   : Timestamp: 2022-09-02 09:05:33.323881097+0100
09-02 09:05:33.548 26720 26720 F DEBUG   : Process uptime: 19s
09-02 09:05:33.548 26720 26720 F DEBUG   : Cmdline: com.totebo.edgerace
09-02 09:05:33.548 26720 26720 F DEBUG   : pid: 26588, tid: 26611, name: NativeThread  >>> com.totebo.edgerace <<<
09-02 09:05:33.548 26720 26720 F DEBUG   : uid: 10697
09-02 09:05:33.548 26720 26720 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000000
09-02 09:05:33.548 26720 26720 F DEBUG   : Cause: null pointer dereference
09-02 09:05:33.548 26720 26720 F DEBUG   :     x0  0000000000000000  x1  0000000000003046  x2  0000000000000000  x3  00000076b52a75a4
09-02 09:05:33.548 26720 26720 F DEBUG   :     x4  0000007637009438  x5  0000000000000003  x6  0000000000000003  x7  0000000000000001
09-02 09:05:33.548 26720 26720 F DEBUG   :     x8  de86969c9b858cb0  x9  de86969c9b858cb0  x10 00000076b568c630  x11 0000000000000010
09-02 09:05:33.548 26720 26720 F DEBUG   :     x12 000000000000e910  x13 b400007706eabe10  x14 0000000000000000  x15 b4000077a6e89430
09-02 09:05:33.548 26720 26720 F DEBUG   :     x16 0000000000000001  x17 000000794d4e4c20  x18 00000076354de000  x19 b4000076c6e94670
09-02 09:05:33.548 26720 26720 F DEBUG   :     x20 b4000076d6ec8d90  x21 000000763700a000  x22 0000000000000000  x23 b400007726eadba0
09-02 09:05:33.548 26720 26720 F DEBUG   :     x24 0000000000000001  x25 b400007726eabf80  x26 b400007756ec42b0  x27 b400007726eac010
09-02 09:05:33.548 26720 26720 F DEBUG   :     x28 b400007776ebca30  x29 00000076370094b0
09-02 09:05:33.548 26720 26720 F DEBUG   :     lr  0000007946fb6bf8  sp  00000076370094a0  pc  0000007946fb6c00  pst 0000000060001000
09-02 09:05:33.548 26720 26720 F DEBUG   : backtrace:
09-02 09:05:33.548 26720 26720 F DEBUG   :       #00 pc 0000000000141c00  /system/lib64/libandroid_runtime.so (std::__1::__function::__func<android::nativeSetTransactionHangCallback(_JNIEnv*, _jclass*, long, _jobject*)::$_1, std::__1::allocator<android::nativeSetTransactionHangCallback(_JNIEnv*, _jclass*, long, _jobject*)::$_1>, void (bool)>::destroy_deallocate()+116) (BuildId: 652257cd0faef901accde2659193d1c3)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #01 pc 00000000000ee60c  /system/lib64/libgui.so (android::BLASTBufferQueue::~BLASTBufferQueue()+160) (BuildId: ace2c60f89988a3283d095c4ac870e91)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #02 pc 00000000000ee550  /system/lib64/libgui.so (android::BLASTBufferQueue::~BLASTBufferQueue()+24) (BuildId: ace2c60f89988a3283d095c4ac870e91)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #03 pc 0000000000012cbc  /system/lib64/libutils.so (android::RefBase::decStrong(void const*) const+156) (BuildId: 5a0d720732600c94ad8354a1188e9f52)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #04 pc 00000000000d57cc  /system/lib64/libgui.so (android::BBQSurface::~BBQSurface()+60) (BuildId: ace2c60f89988a3283d095c4ac870e91)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #05 pc 00000000000d577c  /system/lib64/libgui.so (android::BBQSurface::~BBQSurface()+16) (BuildId: ace2c60f89988a3283d095c4ac870e91)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #06 pc 0000000000012cbc  /system/lib64/libutils.so (android::RefBase::decStrong(void const*) const+156) (BuildId: 5a0d720732600c94ad8354a1188e9f52)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #07 pc 0000000000017510  /system/lib64/libEGL.so (android::egl_surface_t::~egl_surface_t()+136) (BuildId: f7b27cec8464273f3f930678324abd0d)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #08 pc 000000000001679c  /system/lib64/libEGL.so (android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*)+564) (BuildId: f7b27cec8464273f3f930678324abd0d)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #09 pc 000000000001f344  /system/lib64/libEGL.so (android::eglMakeCurrentImpl(void*, void*, void*, void*)+376) (BuildId: f7b27cec8464273f3f930678324abd0d)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #10 pc 000000000001c2a8  /system/lib64/libEGL.so (eglMakeCurrent+64) (BuildId: f7b27cec8464273f3f930678324abd0d)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #11 pc 0000000000222454  /data/app/~~XkF6r-V5SZOtlzDnzASigg==/com.totebo.edgerace-TG3MGjpllgn8n39NtZIyBQ==/lib/arm64/libEdgeRace.so (make_current+20) (BuildId: e32f41f049005390c760f3743b5177b6)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #12 pc 00000000002233dc  /data/app/~~XkF6r-V5SZOtlzDnzASigg==/com.totebo.edgerace-TG3MGjpllgn8n39NtZIyBQ==/lib/arm64/libEdgeRace.so (glfwAndroidFlushEvents+236) (BuildId: e32f41f049005390c760f3743b5177b6)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #13 pc 00000000001b872c  /data/app/~~XkF6r-V5SZOtlzDnzASigg==/com.totebo.edgerace-TG3MGjpllgn8n39NtZIyBQ==/lib/arm64/libEdgeRace.so (dmHID::Update(dmHID::Context*)+48) (BuildId: e32f41f049005390c760f3743b5177b6)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #14 pc 00000000000680bc  /data/app/~~XkF6r-V5SZOtlzDnzASigg==/com.totebo.edgerace-TG3MGjpllgn8n39NtZIyBQ==/lib/arm64/libEdgeRace.so (dmEngine::Step(dmEngine::Engine*)+300) (BuildId: e32f41f049005390c760f3743b5177b6)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #15 pc 0000000000068874  /data/app/~~XkF6r-V5SZOtlzDnzASigg==/com.totebo.edgerace-TG3MGjpllgn8n39NtZIyBQ==/lib/arm64/libEdgeRace.so (dmEngineUpdate(dmEngine::Engine*)+20) (BuildId: e32f41f049005390c760f3743b5177b6)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #16 pc 00000000000641c4  /data/app/~~XkF6r-V5SZOtlzDnzASigg==/com.totebo.edgerace-TG3MGjpllgn8n39NtZIyBQ==/lib/arm64/libEdgeRace.so (dmEngine::RunLoop(dmEngine::RunLoopParams const*)+92) (BuildId: e32f41f049005390c760f3743b5177b6)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #17 pc 0000000000064148  /data/app/~~XkF6r-V5SZOtlzDnzASigg==/com.totebo.edgerace-TG3MGjpllgn8n39NtZIyBQ==/lib/arm64/libEdgeRace.so (EngineMainThread(void*)+124) (BuildId: e32f41f049005390c760f3743b5177b6)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #18 pc 00000000001f3168  /data/app/~~XkF6r-V5SZOtlzDnzASigg==/com.totebo.edgerace-TG3MGjpllgn8n39NtZIyBQ==/lib/arm64/libEdgeRace.so (dmThread::ThreadStartProxy(void*)+40) (BuildId: e32f41f049005390c760f3743b5177b6)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #19 pc 00000000000b62b8  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 058e3ec96fa600fb840a6a6956c6b64e)
09-02 09:05:33.548 26720 26720 F DEBUG   :       #20 pc 0000000000052fb8  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 058e3ec96fa600fb840a6a6956c6b64e)
09-02 09:05:33.563   872   872 E tombstoned: Tombstone written to: tombstone_25
09-02 09:05:33.565  2095 26723 W ActivityTaskManager:   Force finishing activity com.totebo.edgerace/com.dynamo.android.DefoldActivity
1 Like

That’s interesting. We have a similar issues that we haven’t been able to reproduce ourselves: https://github.com/defold/defold/issues/6299

Have you tried on multiple devices? What kind of phone are you testing on?

Just one; Pixel 5, Android v13. I haven’t seen this issue before. It appears to work on iOS.

There’s one Pixel 5 and one Pixel 5a. Which one is it? It might actually be worth it for us to buy one if the issue can be reproduced on that phone.

Have you managed to reproduce it on any other devices?

It’s the regular Pixel 5. It’s a great phone! :slight_smile: Update: Tested it on Samsung S20, and on this device it works without any issues. Android 12.

1 Like

I don’t know whether this is at all related, but I get an error to do with bytecode, too since updating.

Which OS are you using? Are you building and running from the editor or is this from a bundle? If so, for which platform and architecture?

Could you please try the 1.3.6 beta which was released earlier this week?

I am on a Mac mini M1, updated yesterday to Monterey 12.5.1. The extension didn’t work before the OS update either, stopped working since Defold 1.3.5.

.

.

Ok, is this when building and running from the editor or when your bundle for a platform? If so for which one?