Coder Social home page Coder Social logo

Comments (13)

amosavian avatar amosavian commented on June 5, 2024

Please run tests on your computer. You must change server address and share name in tests.

from amsmb2.

fabiosoft avatar fabiosoft commented on June 5, 2024

You are free to not believe but tests pass but in a project it hangs and stop and no completion is ever called... I'm getting crazy....

Sometimes it crashes on this line in Context.swift

Schermata 2019-06-28 alle 17 03 16

from amsmb2.

fabiosoft avatar fabiosoft commented on June 5, 2024

Also...how is possibile that with the same code on Xcode10.1 works perfectly and with latest version all is broken?

from amsmb2.

amosavian avatar amosavian commented on June 5, 2024

It's not about believing or not, I should be able to reproduce the exact issue in order to debug. Please create a sample project at least.

from amsmb2.

fabiosoft avatar fabiosoft commented on June 5, 2024

I prepared a sample and systematically every time timeout expires I get EXC_BAD_ACCESS
Let me know if there is a mistake or an issue

Thanks so much

sample_smb.zip

from amsmb2.

fabiosoft avatar fabiosoft commented on June 5, 2024

Any news?

from amsmb2.

emilhornlund avatar emilhornlund commented on June 5, 2024

I have the same problem. However, the problem does not appear to be in listFolderContents but in listShares where the crash actually occurs, eventually after the timeout. It is not a huge problem as it only occurs in the simulator. At least in my case. When I have more time I will do more thorough testing.

from amsmb2.

fabiosoft avatar fabiosoft commented on June 5, 2024

@emilhornlund that's very interesting, what's your environment? Xcode/iOS version?

from amsmb2.

emilhornlund avatar emilhornlund commented on June 5, 2024

macOS 10.14.5, Xcode 10.2.1, Simulator 12.2, iPhone 12.1.2

from amsmb2.

fabiosoft avatar fabiosoft commented on June 5, 2024

i'll try it out

from amsmb2.

fabiosoft avatar fabiosoft commented on June 5, 2024

@emilhornlund i have some updates:

  • Ok on macOS 10.14.3, Xcode 10.2.1, iPhone 12.3.1
  • Not working on macOS 10.14.5, Xcode 10.2.1, iPhone 12.x
  • On simulator only works if using Xcode 10.1 and AMSMB v 1.7.x, otherwise crash every timeout.

I tried samba server hosted on macOS 10.14, and 10.13 no difference.
I think something changes during build....but what? @amosavian do you have any ideas?

from amsmb2.

amosavian avatar amosavian commented on June 5, 2024

Hi, I'm busy on deadlines right now. I shall investigate but it appears it is an issue in Swift runtime on specific version.
listShares has two versions internally. Would you mind check if _swift_listShares function works in tests or not? If it works, I can fallback to that implementation in these problematic versions.

from amsmb2.

Stermop avatar Stermop commented on June 5, 2024

I have the same problem, crash happens in any possible situation, not just in simulator or specific macOS version. Is there a solution?

from amsmb2.

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.