Comments (13)
Please run tests on your computer. You must change server address and share name in tests.
from amsmb2.
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
from amsmb2.
Also...how is possibile that with the same code on Xcode10.1 works perfectly and with latest version all is broken?
from amsmb2.
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.
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
from amsmb2.
Any news?
from amsmb2.
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.
@emilhornlund that's very interesting, what's your environment? Xcode/iOS version?
from amsmb2.
macOS 10.14.5, Xcode 10.2.1, Simulator 12.2, iPhone 12.1.2
from amsmb2.
i'll try it out
from amsmb2.
@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.
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.
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)
- SPM and xcframework HOT 1
- Unable to connect to windows 10 machine
- listShares error HOT 1
- Xcode compile for iOS target with swift package HOT 9
- iOS 15 fails with STATUS_LOGON_FAILURE HOT 4
- Multiple file upload HOT 3
- SPM Support HOT 5
- can someone know how to fix this HOT 1
- Upload the file keeping the original creation date HOT 1
- Cannot obtain data from Windows shares HOT 1
- Cannot extract data, move, download, copy; etc. from Linux or Windows shares with latin characters in file name HOT 8
- Which thread does amsmb2 run on HOT 1
- Connect to a Distributed File System-Namespaces HOT 1
- Uploading a folder HOT 1
- import AMSMB2 to xCode HOT 1
- macOS arm64 architecture missing HOT 2
- No such module 'SMB2' HOT 1
- Long delay when processing delete requests of recently uploaded items. HOT 1
- Struct smb2_context has removed member is_connected for the latest libsmb2? HOT 1
- Need support for M1 iphone simulator "arm64-apple-ios-simulator" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amsmb2.