Comments (14)
Hi Narendra,
the maximum block size you can write in a SMB write command is 65535-64 (64 is the size of headers for this message).
Could you give crash logs ?
from libdsm.
thanks for the response and error i got is ;
**(220,0x16e0a3000) malloc: * error for object 0x15711d600: incorrect checksum for freed object - object was probably modified after being freed.
Maximum times its giving this error and in some times at the initialstage itself crashing.
from libdsm.
hello,
Just to confirm not only on above comment, its crashing on
netbios_session_packet_recv: : Connection reset by peer
netbios connection not reachable
netbios_session_packet_send: Unable to send (full?) packet: Broken pipe
netbios_session_packet_recv: : Broken pipe
while uploading file to shared folder giving these types of messages and app crashing .
Please have a look on it and plz help me on this how to handle.
Thanks,
Narendra V.
from libdsm.
Hello,
please provide sample app/code to reproduce the issue
from libdsm.
Hello,
i have attached sample project and please check
// code to upload file/write file
[self.rootController uploadFileTosession:self.session atFilePath:_selectedPath withDestinationPath:nil];
please find this line to check the upload/write to file code.
Add any large file to resources and fetch path from resources (code already available in SMBSessionUpload.m)
Thanks,
Narendra.
from libdsm.
Ok I've made some tests with your sample app and I managed to upload files (tried a 3.5MB file and a 1.07GB file) on my servers with no issue/crash !
I guess that the problem is a compatibility problem with the SMB server you are using then ! Could you tell which server you are connecting to ?
BTW, there are some personal login/passwords in your archive, I hope for you that this is not a password you are using online, else way change it ASAP where is it used ...
from libdsm.
Im using my mac shared folder instead of server and i will try with NAS server and Im also able to upload 1.3 GB of data and if i try 2 GB or More than 2 GB app crashes.Cold you please try with 2GB file .
~ please let me know that the code is proper to upload file .
Thanks,
from libdsm.
hello i observed one more thing here ..
Im able to upload the zip file from my shared folder and if try to unzip manually (in MAC) it works fine, if try to unzip the file using iOS Library (SSZipArchive or ZipArchive) it throws an error as BADZIP file.
The problem with only uploaded files and normal files (manually zipped from mac files) i can able to unzip through SSZipArchive.
While Upload its creating more file size than actual file size.
Please help on this what i can do.
Thanks,
Narendra V.
from libdsm.
I've just tested uploading a 3.2GB file with no issue :-/
from libdsm.
I'd just like to note it's happening to me as well. I've opened similar issue here: TimOliver/TOSMBClient#26, but it seems to be a problem of libdsm
, used inside TOSMBClient project.
As for me it happens during smb_fread
. You can peek into the TOSMBSessionDownloadTask
for more details about the implementation.
The crash happens when I disconnect from Samba device I'm downloading from.
My logs:
netbios_session_packet_recv: : Invalid argument
netbios_session_packet_recv: : Invalid argument
netbios_session_packet_send: Unable to send (full?) packet: Broken pipe
netbios_session_packet_send: Unable to send (full?) packet: Broken pipe
netbios_session_packet_send: Unable to send (full?) packet: Broken pipe
[etc ...]
We're using such device as SMB server: http://www.ravpower.com/rp-wd03-filehub-6000mah-power-bank-portable-wireless-router.html.
from libdsm.
Any backtrace?
from libdsm.
@jbkempf I just found a bug in TOSMBClient, so sorry for the false alarm, the bug was not from here. In case you'd like to see what happened: TimOliver/TOSMBClient#27.
from libdsm.
Hi All,
any updates about malloc issue? I experienced the same error when using smb_fwrite.
Any help is appreciated thanks.
from libdsm.
Hi,
Try to reduce buffer size to 64000
from libdsm.
Related Issues (20)
- Domain Based Access HOT 1
- Fail to call `smb_fstat()` when the file name contains char like "で"
- I hereby raise an objection to the 'Portable, Theoretically' claim HOT 4
- Move to meson buildsystem HOT 2
- What means a DSM_ERROR_NT ? HOT 1
- dsm raises SIGPIPE after network disconnect HOT 1
- Incorrect dependency on asn1Parser
- Meson build is broken HOT 9
- Can it build on Windows (Visual Studio 2019)? HOT 1
- Do we support ADS (alternate data streams)? HOT 5
- please help HOT 4
- 0.4.0 fail to build HOT 3
- 0.4.0 fails to configure for tvOS HOT 10
- add support to compile this lib for windows HOT 3
- Whether to support creating files HOT 3
- Compilation issues on Linux with Tasn1 (version 4.19.0) & clock_gettime.c HOT 2
- How to compile HOT 1
- wiki HOT 1
- is using meson build system? HOT 1
- how to build it for iOS? 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 libdsm.