General

Reply
Accepted Solution

What's This ? A Bug ?

[ Edited ]

 

Exception

Message: A null value was found where an object instance was required.
Source: System

Stack Trace:
at (wrapper delegate-end-invoke) <Module>:end_invoke_int__this___IAsyncResult (System.IAsyncResult)
at System.Net.FtpDataStream.EndRead (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
at System.Net.FtpDataStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
at System.IO.Stream.CopyTo (System.IO.Stream destination, Int32 bufferSize) [0x00000] in <filename unknown>:0

 

=============================================================================

is it a bug ? i'm confused.. what's exactly happened ? it's happen everytime i downloading a large file > 100mb on PSVita (not simulator).. midway FTP response stream throws unknown exception :smileysad: 

 

EDIT: is GC faulty ? it seems GC collect Stream object earlier than expected... :smileyindifferent:

 

EDIT2: i'm not so adept in C# so i dunno how GC works :smileyindifferent:

 

EDIT3: GC.KeepAlive() no effect :smileyindifferent: 

Please use plain text.

Level 2

Level 2
ProfessorOhki
Posts: 17
Registered: ‎19-04-2012
Message 2 of 4 (181 Views)

Re: What's This ? A Bug ?

[ Edited ]
See : http://community.eu.playstation.com/t5/General/96MB-memory-for-apps/td-p/15898599

96 MB of space for an app, so your FTP functions are probably seeing full flash.

Edit: That thread was talking about RAM, but I bet it's either related or flash has its own cap. At exactly what size file does it present this behavior?
Please use plain text.

Re: What's This ? A Bug ?

[ Edited ]

any size.. and besides i'm not copying all the file from server's content to memory.. i'm using 64K buffer.. and writing it to the file.. 

it's still throw exception even when im using read and write not copyto

 

EDIT: BTW it's inside BackgroundWorker DoWork procedure :smileyindifferent:

 

here's the snippet:

CopyTo version:

FtpWebResponse response = (FtpWebResponse)request.GetResponse();
Stream responseStream = response.GetResponseStream();
FileStream fs = new FileStream(local_path,FileMode.Create);

responseStream.CopyTo(fs,65536);

 

Read Write Version:

FtpWebResponse response = (FtpWebResponse)request.GetResponse();
Stream responseStream = response.GetResponseStream();
FileStream fs = new FileStream(local_path,FileMode.Create);

byte[] buff = new byte[65536];

while((readed = responseStream.Read(buff,0,65536)) > 0){
fs.Write(buff,0,readed);
}


Please use plain text.

Re: What's This ? A Bug ?

i started the wireshark and found out that PSVita FtpWebRequest and FtpWebResponse only sending request not getting any response code from server and while transfering file after sometime post QUIT command ???? it's weird.... while on PS Suite Simulator FtpWebRequest and FtpWebResponse behaving correctly... It seems bug on PSVita Mono Implementation.. :smileyindifferent:

 

SOLUTION: fix the bugs.. another solution create ftplib from scratch my own.. :smileyindifferent:

Please use plain text.
This widget could not be displayed.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。






Recent News