Recent

Author Topic: Why does LAMW crashes when resizing Tbitmap on it?  (Read 2185 times)

loaded

  • Hero Member
  • *****
  • Posts: 825
Why does LAMW crashes when resizing Tbitmap on it?
« on: March 08, 2019, 06:56:46 am »
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][+][-]
  1. procedure TAndroidModule1.jButton1Click(Sender: TObject);
  2. var
  3.   buffer:Tbitmap; //  Add Uses Graphics,
  4. begin
  5.   LogDebug('I','Start Op');
  6.   buffer:=Tbitmap.Create; LogDebug('I','Bitmap Buffer Created');
  7.   buffer.Width:=512; LogDebug('I','Bitmap Buffer Width Sized');
  8.   LogDebug('I','Stop Op');
  9. end;
  10.  


Crash Log
Code: Pascal  [Select][+][-]
  1. Project Name   : AppLAMWProject7
  2. Package Name :com.applamw
  3.  
  4. 03-08 08:43:19.751 18360 18360 D I       : Start Op
  5. 03-08 08:43:19.752 18360 18360 D I       : Bitmap Buffer Created
  6. 03-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)
  7. 03-08 08:43:19.756  6272  6289 D [ACT]:ao: processing priority = LOW
  8. 03-08 08:43:19.813 18386 18386 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
  9. 03-08 08:43:19.814   872   872 I /system/bin/tombstoned: received crash request for pid 18360
  10. 03-08 08:43:19.815 18386 18386 I crash_dump32: performing dump of process 18360 (target tid = 18360)
  11. 03-08 08:43:19.816 18386 18386 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  12. 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'
  13. 03-08 08:43:19.816 18386 18386 F DEBUG   : Revision: '0'
  14. 03-08 08:43:19.816 18386 18386 F DEBUG   : ABI: 'arm'
  15. 03-08 08:43:19.816 18386 18386 F DEBUG   : pid: 18360, tid: 18360, name: applamwproject7  >>> com.applamw.applamwproject7 <<<
  16. 03-08 08:43:19.816 18386 18386 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
  17. 03-08 08:43:19.816 18386 18386 F DEBUG   : Cause: null pointer dereference
  18. 03-08 08:43:19.816 18386 18386 F DEBUG   :     r0 00000000  r1 00000014  r2 ffa1b9dc  r3 00000000
  19. 03-08 08:43:19.816 18386 18386 F DEBUG   :     r4 d702b0f0  r5 d702b0f0  r6 f358c110  r7 ffa1bf58
  20. 03-08 08:43:19.816 18386 18386 F DEBUG   :     r8 00000000  r9 f2b8f000  sl ffa1bd40  fp ffa1b8f4
  21. 03-08 08:43:19.816 18386 18386 F DEBUG   :     ip 00000f54  sp ffa1b8a8  lr d6fd31f8  pc d702a1c0  cpsr 60070010
  22. 03-08 08:43:19.817 18386 18386 F DEBUG   :
  23. 03-08 08:43:19.817 18386 18386 F DEBUG   : backtrace:
  24. 03-08 08:43:19.817 18386 18386 F DEBUG   :     #00 pc 0012a1c0  /data/app/com.applamw.applamwproject7-C4eR1A6R6X6P4g5wLAwqig==/lib/arm/libcontrols.so
  25. 03-08 08:43:19.817 18386 18386 F DEBUG   :     #01 pc 000d31f4  /data/app/com.applamw.applamwproject7-C4eR1A6R6X6P4g5wLAwqig==/lib/arm/libcontrols.so
  26. 03-08 08:43:19.851  1896  1896 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
  27. 03-08 08:43:19.851  3374  3374 I BatteryInfoReceiver: ACTION_BATTERY_CHANGED
  28. 03-08 08:43:19.852  3570  3723 D PowerCheckerService: onBatteryChanged, mBatteryLevel = 53, status = 2, level = 53, plug = 2
  29. 03-08 08:43:19.852  1896  1896 D KeyguardUpdateMonitor: handleBatteryUpdate
  30. 03-08 08:43:20.370 18386 18386 E crash_dump32: cannot open libmiuindbg.so: No such file or directory
  31. 03-08 08:43:20.372   872   872 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_02
  32. 03-08 08:43:20.374  3570  3666 D PowerKeeper.Event: notifyAMCrash packageName: 0, pid:1563
  33. 03-08 08:43:20.375  1563 18387 W ActivityManager:   Force finishing activity com.applamw.applamwproject7/.App
  34. 03-08 08:43:20.376  2458  2490 I octvm_klo: get event file: /data/tombstones/tombstone_02
  35. 03-08 08:43:20.376  2458  2490 I octvm_klo: klo lock
  36. 03-08 08:43:20.384  2458  2490 I octvm_klo: summary:[signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
  37. 03-08 08:43:20.384  2458  2490 I octvm_klo: ]
  38. 03-08 08:43:20.384  2458  2490 I octvm_klo: summary: [/data/app/com.applamw.applamwproject7-C4eR1A6R6X6P4g5wLAwqig==/lib/arm/libcontrols.so]
  39. 03-08 08:43:20.384  2458  2490 I octvm_klo: summary: [/data/app/com.applamw.applamwproject7-C4eR1A6R6X6P4g5wLAwqig==/lib/arm/libcontrols.so]
  40. 03-08 08:43:20.384  2458  2490 I octvm_klo: start gathering logcat log...
  41. 03-08 08:43:20.384  1563 18387 D ActivityTrigger: ActivityTrigger activityPauseTrigger
  42. 03-08 08:43:20.386  1563  2254 I OpenGLRenderer: Initialized EGL, version 1.4
  43. 03-08 08:43:20.386  1563  2254 D OpenGLRenderer: Swap behavior 2
  44. 03-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=0x9
  45. 03-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!
  46. 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)'
  47. 03-08 08:43:20.411   825   825 I Zygote  : Process 18360 exited due to signal (11)
  48. 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.DropBoxEntryAddedReceiver
  49. 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/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
  50. 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.DropBoxEntryAddedReceiver
  51. 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/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
  52. 03-08 08:43:20.418  1563  1611 W zygote64: kill(-18360, 9) failed: No such process
  53. 03-08 08:43:20.418  1563  1611 I zygote64: Successfully killed process cgroup uid 10583 pid 18360 in 0ms
  54.  
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Why does LAMW crashes when resizing Tbitmap on it?
« Reply #1 on: March 09, 2019, 04:52:54 pm »

You can try LAMW  "jBitmap"
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

loaded

  • Hero Member
  • *****
  • Posts: 825
Re: Why does LAMW crashes when resizing Tbitmap on it?
« Reply #2 on: March 10, 2019, 05:08:32 am »
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 ?
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

 

TinyPortal © 2005-2018