Why does LAMW crashes when resizing Tbitmap on it? lazarus / 43-Android ---------------------------------------------------------------------- loaded · 2019-03-08 05:56 Hello to everyone In Lamw, I want to use an object from the Tbitmap class to use it as a buffer in the graphics application. I create the object, but when I want to resize, the program crashes. I am very pleased if there is information about the reason and its solution. Respects. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.jButton1Click(Sender: TObject);var  buffer:Tbitmap; //  Add Uses Graphics,begin  LogDebug('I','Start Op');  buffer:=Tbitmap.Create; LogDebug('I','Bitmap Buffer Created');  buffer.Width:=512; LogDebug('I','Bitmap Buffer Width Sized');  LogDebug('I','Stop Op');end; Crash Log Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Project Name   : AppLAMWProject7 Package Name :com.applamw 03-08 08:43:19.751 18360 18360 D I       : Start Op03-08 08:43:19.752 18360 18360 D I     : Bitmap Buffer Created03-08 08:43:19.752 18360 18360 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 18360 (applamwproject7), pid 18360 (applamwproject7)03-08 08:43:19.756  6272  6289 D [ACT]:ao: processing priority = LOW03-08 08:43:19.813 18386 18386 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone03-08 08:43:19.814   872   872 I /system/bin/tombstoned: received crash request for pid 1836003-08 08:43:19.815 18386 18386 I crash_dump32: performing dump of process 18360 (target tid = 18360)03-08 08:43:19.816 18386 18386 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***03-08 08:43:19.816 18386 18386 F DEBUG   : Build fingerprint: 'xiaomi/vince/ vince:8.1.0/OPM1.171019.019/V10.0.4.0.OEGMIFH:user/release-keys'03-08 08:43:19.816 18386 18386 F DEBUG   : Revision: '0'03-08 08:43:19.816 18386 18386 F DEBUG   : ABI: 'arm'03-08 08:43:19.816 18386 18386 F DEBUG   : pid: 18360, tid: 18360, name: applamwproject7  >>> com.applamw.applamwproject7 <<<03-08 08:43:19.816 18386 18386 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x003-08 08:43:19.816 18386 18386 F DEBUG   : Cause: null pointer dereference03-08 08:43:19.816 18386 18386 F DEBUG   :     r0 00000000  r1 00000014  r2 ffa1b9dc  r3 0000000003-08 08:43:19.816 18386 18386 F DEBUG   :     r4 d702b0f0  r5 d702b0f0  r6 f358c110  r7 ffa1bf5803-08 08:43:19.816 18386 18386 F DEBUG   :     r8 00000000  r9 f2b8f000  sl ffa1bd40  fp ffa1b8f403-08 08:43:19.816 18386 18386 F DEBUG   :     ip 00000f54  sp ffa1b8a8  lr d6fd31f8  pc d702a1c0  cpsr 6007001003-08 08:43:19.817 18386 18386 F DEBUG   : 03-08 08:43:19.817 18386 18386 F DEBUG   : backtrace:03-08 08:43:19.817 18386 18386 F DEBUG   :     #00 pc 0012a1c0  /data/app/com.applamw.applamwproject7- C4eR1A6R6X6P4g5wLAwqig==/lib/arm/libcontrols.so03-08 08:43:19.817 18386 18386 F DEBUG   :     #01 pc 000d31f4  /data/app/com.applamw.app lamwproject7-C4eR1A6R6X6P4g5wLAwqig==/lib/arm/libcontrols.so03-08 08:43:19.851  1896  1896 D KeyguardUpda]"]>Blockednitor: received broadcast android.intent.action.BATTERY_CHANGED03-08 08:43:19.851  3374  3374 I BatteryInfoReceiver: ACTION_BATTERY_CHANGED03-08 08:43:19.852  3570  3723 D PowerCheckerService: onBatteryChanged, mBatteryLevel = 53, status = 2, level = 53, plug = 203-08 08:43:19.852  1896  1896 D KeyguardUpda]"]>Blockednitor: handleBatteryUpdate03-08 08:43:20.370 18386 18386 E crash_dump32: cannot open libmiuindbg.so: No such file or directory03-08 08:43:20.372   872   872 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_0203-08 08:43:20.374  3570  3666 D PowerKeeper.Event: notifyAMCrash packageName: 0, pid:156303-08 08:43:20.375  1563 18387 W ActivityManager:   Force finishing activity com.applamw.applamwproject7/.App03-08 08:43:20.376  2458  2490 I octvm_klo: get event file: /data/tombstones/tombstone_0203-08 08:43:20.376  2458  2490 I octvm_klo: klo lock03-08 08:43:20.384  2458  2490 I octvm_klo: summary:[signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x003-08 08:43:20.384  2458  2490 I octvm_klo: ]03-08 08:43:20.384  2458  2490 I octvm_klo: summary: [/data/app/com.applamw. applamwproject7-C4eR1A6R6X6P4g5wLAwqig==/lib/arm/libcontrols.so]03-08 08:43:20.384  2458  2490 I octvm_klo: summary: [/data/app/com.applamw. applamwproject7-C4eR1A6R6X6P4g5wLAwqig==/lib/arm/libcontrols.so]03-08 08:43:20.384  2458  2490 I octvm_klo: start gathering logcat log...03-08 08:43:20.384  1563 18387 D ActivityTrigger: ActivityTrigger activityPauseTrigger 03-08 08:43:20.386  1563  2254 I OpenGLRenderer: Initialized EGL, version 1.403-08 08:43:20.386  1563  2254 D OpenGLRenderer: Swap behavior 203-08 08:43:20.404  1563  1709 W InputDispatcher: channel 'ee3e268 com.applamw.applamwproject7/com.applamw.applamwproject7.App (server)' ~ Consumer closed input channel or an error occurred.  events=0x903-08 08:43:20.404  1563  1709 E InputDispatcher: channel 'ee3e268 com.applamw.applamwproject7/com.applamw.applamwproject7.App (server)' ~ Channel is unrecoverably broken and will be disposed!03-08 08:43:20.406  1563 10892 W InputDispatcher: Attempted to unregister already unregistered input channel 'ee3e268 com.applamw.applamwproject7/com.applamw.applamwproject7.App (server)'03-08 08:43:20.411   825   825 I Zygote  : Process 18360 exited due to signal (11)03-08 08:43:20.417  1563  1608 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x11 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver03-08 08:43:20.417  1563  1608 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x11 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$Persisten tTrustedReceiver03-08 08:43:20.417  1563  1608 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x11 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver03-08 08:43:20.417  1563  1608 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x11 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$Persisten tTrustedReceiver03-08 08:43:20.418  1563  1611 W zygote64: kill(-18360, 9) failed: No such process03-08 08:43:20.418  1563  1611 I zygote64: Successfully killed process cgroup uid 10583 pid 18360 in 0ms ---------------------------------------------------------------------- jmpessoa · 2019-03-09 15:52 You can try LAMW  "jBitmap" ---------------------------------------------------------------------- loaded · 2019-03-10 04:08 Thank you very much for your reply jmpessoa. jDrawingView, I want to shorten the drawing process on the long- lasting process. in that I think I need to use a bitmap as a buffer object. The reason I want to use Tbitmap is to have canvas. Yes, I want to use jbitmap, but I don't have Canvas? Can I add canvas to Jbitmap? What can be done? I do not know ?