wasabia / three_dart

three.js rewrite by Dart, Dart 3D library. an easy to use, lightweight, cross-platform, general purpose 3D library.
MIT License
450 stars 80 forks source link

Update major versions of `http` and `image` #153

Open ert485 opened 8 months ago

ert485 commented 8 months ago

I had dependency issues in a project after adding three_dart; my project is using later major versions for http and image.

I think this would require the next version number of three_dart to have the major version number increased (since everyone currently using three_dart would potentially need to also update http and image in their projects - if they have any other dependencies on them)

ert485 commented 8 months ago

UPDATE:

I had an issue when updating the image library, but I got that figured out. The problem was a breaking change in the usage of image.getBytes in image: ^4.0.0. See also https://github.com/brendan-duncan/image/issues/474

Original comment:

Below is the crash details I was able to get from adb logcat -v threadtime -d. I'm guessing the error has more to do with flutter_gl since the error is mentioning graphics card related things (adreno)? Or it could be due to some change in the image package (image.getBytes(order: ChannelOrder.rgba))?

01-11 08:53:01.779  4238  4280 I flutter : set vertexColors: true 
01-11 08:53:01.920  4238  4280 I AdrenoGLES-0: BLTLIB: Semaphore error, disabling MT
01-11 08:53:01.922  4238  4280 F libc    : Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x6fa7119000 in tid 4280 (1.ui), pid 4238 (example.example)
01-11 08:53:01.960   706   706 D io_stats: !@   8,0 r 1524788 29231912 w 606058 14288388 d 229454 26528036 f 0 0 iot 435692 0 th 0 0 0 pt 0 inp 0 0 28690.753
01-11 08:53:02.012  4354  4354 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
01-11 08:53:02.013   773   773 I tombstoned: received crash request for pid 4280
01-11 08:53:02.014  4354  4354 I crash_dump64: performing dump of process 4238 (target tid = 4280)
01-11 08:53:02.024  1492  2669 D SemNscXgbMsL1: Probability - Cloud gaming: [5.7164364E-4]
01-11 08:53:02.024  1492  2669 D SemNscXgbMsL1: Probability - Real time: [0.15865575]
01-11 08:53:02.024  1492  2669 D SemNscXgbMsL1: Probability - Non real time: [0.7548479]
01-11 08:53:02.024  1492  2669 D SemNscXgbMsL1: 1 sample inference time: 0.685625 msecs
01-11 08:53:02.025  1492  2669 D SemNscXgbL2Rt: L2 RT 1 sample inference time: 0.887552 msecs
01-11 08:53:02.026  1492  2669 D SemNscXgbL2Nrt: L2 NRT 1 sample inference time: 0.823646 msecs
01-11 08:53:02.069  1703  2713 I bauth_FPBAuthService: pcf : 0x1012, 0 ,3 ,0 ,0 ,0 ,0, 7.0.0.0
01-11 08:53:02.070  1703  2713 I bauth_FPBAuthService: thread id : 3, preenroll_flag : 0, nd cnt : 0, cso : 0, et : 0
01-11 08:53:02.070  1703  2713 I bauth_FPBAuthService: FPBAuthService, 11511
01-11 08:53:02.254  4354  4354 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-11 08:53:02.254  4354  4354 F DEBUG   : Build fingerprint: 'samsung/z3qcsw/z3q:13/TP1A.220624.014/G988WVLS8HWK2:user/release-keys'
01-11 08:53:02.254  4354  4354 F DEBUG   : Revision: '15'
01-11 08:53:02.254  4354  4354 F DEBUG   : ABI: 'arm64'
01-11 08:53:02.254  4354  4354 F DEBUG   : Processor: '7'
01-11 08:53:02.254  4354  4354 F DEBUG   : Timestamp: 2024-01-11 08:53:02.019132806-0600
01-11 08:53:02.254  4354  4354 F DEBUG   : Process uptime: 6s
01-11 08:53:02.254  4354  4354 F DEBUG   : Cmdline: com.example.example
01-11 08:53:02.254  4354  4354 F DEBUG   : pid: 4238, tid: 4280, name: 1.ui  >>> com.example.example <<<
01-11 08:53:02.254  4354  4354 F DEBUG   : uid: 10497
01-11 08:53:02.254  4354  4354 F DEBUG   : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x0000006fa7119000
01-11 08:53:02.254  4354  4354 F DEBUG   :     x0  0000006f115bc500  x1  0000000000000001  x2  b400006fa7119038  x3  151e27171e27171e
01-11 08:53:02.254  4354  4354 F DEBUG   :     x4  151c25151c25151c  x5  0000000000000010  x6  0000000000000100  x7  1e27171e27171e27
01-11 08:53:02.254  4354  4354 F DEBUG   :     x8  b400006fa711af78  x9  b400006fa7119038  x10 b400006fa7115180  x11 b400006fa71170f8
01-11 08:53:02.254  4354  4354 F DEBUG   :     x12 0000000000010500  x13 00000000005c0000  x14 0000000000000040  x15 b400006fa711af78
01-11 08:53:02.254  4354  4354 F DEBUG   :     x16 0000000000000020  x17 b400006fa7115180  x18 0000006f34d18000  x19 b400006fa71170f8
01-11 08:53:02.254  4354  4354 F DEBUG   :     x20 0000006fb738ddc0  x21 0000000000000003  x22 0000000000000000  x23 00000000000003e8
01-11 08:53:02.254  4354  4354 F DEBUG   :     x24 0000000000000000  x25 0000000000000004  x26 0000000000000000  x27 0000000000000000
01-11 08:53:02.254  4354  4354 F DEBUG   :     x28 0000000000000000  x29 0000006fb738d610
01-11 08:53:02.254  4354  4354 F DEBUG   :     lr  0000006f9acaf020  sp  0000006fb738d530  pc  0000006f9acaf4e4  pst 0000000060001000
01-11 08:53:02.254  4354  4354 F DEBUG   : backtrace:
01-11 08:53:02.254  4354  4354 F DEBUG   :       #00 pc 00000000002974e4  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!6fd1d11959478379873bee344e3720!193b2ee!+5372) (BuildId: 0ea54a261e90e97a4c98db7d1f7d7d4a)
01-11 08:53:02.254  4354  4354 F DEBUG   :       #01 pc 0000000000266a2c  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!e9a0267a4c3f12c4fb16e257d3a26e!193b2ee!+6284) (BuildId: 0ea54a261e90e97a4c98db7d1f7d7d4a)
01-11 08:53:02.254  4354  4354 F DEBUG   :       #02 pc 000000000026b064  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!9c0715a0352375a9ec27cf88ce6933!193b2ee!+468) (BuildId: 0ea54a261e90e97a4c98db7d1f7d7d4a)
01-11 08:53:02.254  4354  4354 F DEBUG   :       #03 pc 000000000022ea6c  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!e94336f9c3a8e90238c7c8557996da!193b2ee!+2764) (BuildId: 0ea54a261e90e97a4c98db7d1f7d7d4a)
01-11 08:53:02.255  4354  4354 F DEBUG   :       #04 pc 00000000001800f0  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!0e6b00ab8c4b112f9f6effa6a8b2b5!193b2ee!+3720) (BuildId: 0ea54a261e90e97a4c98db7d1f7d7d4a)
01-11 08:53:02.255  4354  4354 F DEBUG   :       #05 pc 000000000017ccf4  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!4ecf3032464df959aad423cba1a73c!193b2ee!+1364) (BuildId: 0ea54a261e90e97a4c98db7d1f7d7d4a)
01-11 08:53:02.255  4354  4354 F DEBUG   :       #06 pc 000000000019c644  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!141e50cb152287019aff218176d094!193b2ee!+268) (BuildId: 0ea54a261e90e97a4c98db7d1f7d7d4a)
01-11 08:53:02.255  4354  4354 F DEBUG   :       #07 pc 00000000001b6430  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!838e96e6042a39f699090106d8c25f!193b2ee!+208) (BuildId: 0ea54a261e90e97a4c98db7d1f7d7d4a)
01-11 08:53:02.255  4354  4354 F DEBUG   :       #08 pc 00000000000c87d8  /vendor/lib64/egl/libGLESv2_adreno.so (glTexSubImage2D+144) (BuildId: 0ea54a261e90e97a4c98db7d1f7d7d4a)
01-11 08:53:02.255  4354  4354 F DEBUG   :       #09 pc 0000000000007bc4  [anon:dart-code]
01-11 08:53:02.272   773   773 E tombstoned: Tombstone written to: tombstone_19
01-11 08:53:02.274  1492  4359 I DropBoxManagerService: add tag=data_app_native_crash isTagEnabled=true flags=0x2

~@wasabia would you have any insight on what could be causing this crash?~

emileakbarzadeh commented 7 months ago

Hi, thanks for your great work on this! @wasabia is there anything you're waiting on for this?