Coder Social home page Coder Social logo

Comments (11)

marmelroy avatar marmelroy commented on July 24, 2024 1

Thanks @adrianchifor. I'll investigate tonight.

from phonenumberkit.

marmelroy avatar marmelroy commented on July 24, 2024

Thanks @nrako. Didn't know about this issue. Will investigate...

from phonenumberkit.

nrako avatar nrako commented on July 24, 2024

Thanks @marmelroy

I also have an SIGABRT error sometimes but I have the feeling it's related so I'm reporting it here.

screen shot 2016-03-04 at 16 38 39

screen shot 2016-03-04 at 16 38 48

console:

myapp(46653,0x700000d5f000) malloc: *** error for object 0x7f8f4a5b54f0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Sorry for "screenshooting" this issue 😬 , let me know if I can help in another way.

from phonenumberkit.

adrianchifor avatar adrianchifor commented on July 24, 2024

Happens to me as well. Got the same stacktrace as @nrako

from phonenumberkit.

marmelroy avatar marmelroy commented on July 24, 2024

Thanks @adrianchifor. Do you have reproducible steps / code I can look at? It will be super useful...

from phonenumberkit.

adrianchifor avatar adrianchifor commented on July 24, 2024

This is where it crashes:

screen shot 2016-04-19 at 13 36 27

screen shot 2016-04-19 at 13 37 14

The stacktrace:

screen shot 2016-04-19 at 13 37 35

from phonenumberkit.

adrianchifor avatar adrianchifor commented on July 24, 2024

@marmelroy Managed to solve this for my project. Turned out that the issue was being caused by passing a string to PhoneNumber.init from a strings array which was passed by reference to my function. The strings array was modified on another thread which caused EXC_BAD_ACCESS because PhoneNumberKit was trying to use a string that was no longer there.

from phonenumberkit.

marmelroy avatar marmelroy commented on July 24, 2024

Oh, okay. In that case I have a cool generalised solution in mind. Will commit in a few hours.

from phonenumberkit.

marmelroy avatar marmelroy commented on July 24, 2024

Discovered a few possible issues here. Have a fix that I want to test more before pushing.

from phonenumberkit.

marmelroy avatar marmelroy commented on July 24, 2024

Should be fixed by 40410c8 (new release soon).

from phonenumberkit.

Jean-Daniel avatar Jean-Daniel commented on July 24, 2024

This crash is due to concurrent access to the regularExpresionPool in RegexManager.

from phonenumberkit.

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.