Giter Club home page Giter Club logo

Comments (2)

facetious avatar facetious commented on May 23, 2024

I have another related (maybe identical?) error. I cannot seem to reproduce this in a simple environment; whenever I extract the innermost Uint8Array.slice operation, it succeeds without issue. Within an rxjs observable pipe chain, however, I get critical failures that crash my app internal to the v8 isolate. Below is the only information that is caught when I am debugging directly in Xcode.

I have not been able to isolate a specific operation that causes this crash, as it seems to "work" half the time. By "work", I mean that it doesn't cause a bad access crash, but the data that ends up being sliced is not the data that I expect. Here's a snippet that might crash?

const packet: Uint8Array = data.slice(index * header.chunkByteLength, (index + 1) * header.chunkByteLength);

Xcode error below:

NativeScript`v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::TypedElementsAccessor<(v8::internal::ElementsKind)17, unsigned char>, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)17> >::Get:
    0x1012bc638 <+0>:   stp    x20, x19, [sp, #-0x20]!
    0x1012bc63c <+4>:   stp    x29, x30, [sp, #0x10]
    0x1012bc640 <+8>:   add    x29, sp, #0x10            ; =0x10 
    0x1012bc644 <+12>:  ldr    x9, [x1]
    0x1012bc648 <+16>:  and    x8, x9, #0xfffffffffffc0000
    0x1012bc64c <+20>:  ldr    x8, [x8, #0x10]
    0x1012bc650 <+24>:  ldur   x10, [x9, #0x37]
    0x1012bc654 <+28>:  ldur   x9, [x9, #0x3f]
    0x1012bc658 <+32>:  add    x9, x9, x10
->  0x1012bc65c <+36>:  ldrb   w9, [x9, x2]
    0x1012bc660 <+40>:  lsl    x19, x9, #32
    0x1012bc664 <+44>:  ldr    x0, [x8, #0x1130]
    0x1012bc668 <+48>:  cbz    x0, 0x1012bc680           ; <+72>
    0x1012bc66c <+52>:  mov    x1, x19
    0x1012bc670 <+56>:  bl     0x1013429a4               ; v8::internal::CanonicalHandleScope::Lookup(unsigned long)
    0x1012bc674 <+60>:  ldp    x29, x30, [sp, #0x10]
    0x1012bc678 <+64>:  ldp    x20, x19, [sp], #0x20
    0x1012bc67c <+68>:  ret    
    0x1012bc680 <+72>:  mov    x9, #-0x8f40
    0x1012bc684 <+76>:  add    x8, x8, x9
    0x1012bc688 <+80>:  mov    w9, #0xa058
    0x1012bc68c <+84>:  add    x20, x8, x9
    0x1012bc690 <+88>:  ldp    x0, x9, [x20]
    0x1012bc694 <+92>:  cmp    x0, x9
    0x1012bc698 <+96>:  b.ne   0x1012bc6a4               ; <+108>
    0x1012bc69c <+100>: mov    x0, x8
    0x1012bc6a0 <+104>: bl     0x101342548               ; v8::internal::HandleScope::Extend(v8::internal::Isolate*)
    0x1012bc6a4 <+108>: add    x8, x0, #0x8              ; =0x8 
    0x1012bc6a8 <+112>: str    x8, [x20]
    0x1012bc6ac <+116>: str    x19, [x0]
    0x1012bc6b0 <+120>: ldp    x29, x30, [sp, #0x10]
    0x1012bc6b4 <+124>: ldp    x20, x19, [sp], #0x20
    0x1012bc6b8 <+128>: ret    

from ios.

facetious avatar facetious commented on May 23, 2024

This does not happen for me in {N}8.1. I do not know the exact version that it was resolved at.

from ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.