ganado / redtamarin

Automatically exported from code.google.com/p/redtamarin
Other
2 stars 0 forks source link

crash #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
when i test  this code .

FileSystem.writeByteArray("test.abc", Domain.currentDomain.domainMemory);

I hav the following error

bad 0014Error #1065 null
avmplus crash: exception 0xC0000005 occurred
Writing minidump crash log to avmplusCrash.dmp

Original issue reported on code.google.com by n.maucci...@gmail.com on 29 Apr 2011 at 4:06

Attachments:

GoogleCodeExporter commented 9 years ago
what's the code inside test.abc ?

Original comment by zwetan on 1 May 2011 at 7:29

GoogleCodeExporter commented 9 years ago
hello i recreate a project in flashdevelop;
and in programe.as I put this code :
// references (list all classes to compile)

// run
import avmplus.System; 
import avmplus.Domain;
import avmplus.FileSystem;
FileSystem.writeByteArray("test.abc", Domain.currentDomain.domainMemory); 
/////////////

And then i hav the same error

avmplus crash: exception 0xC0000005 occurred
Writing minidump crash log to avmplusCrash.dmp

Original comment by n.maucci...@gmail.com on 1 May 2011 at 7:48

Attachments:

GoogleCodeExporter commented 9 years ago
So, after test :
I can say to thinks 
1 - Domain.currentDomain.domainMemory is null 
2 - call FileSystem.writeByteArray("test.abc",  
null/*Domain.currentDomain.domainMemor*/ ); give the crash
-------------------
import avmplus.System; 
import avmplus.Domain;
import avmplus.FileSystem;
 if (Domain.currentDomain.domainMemory == null) {
     trace("Domain.currentDomain.domainMemory is null");
 }
FileSystem.writeByteArray("test.abc",  Domain.currentDomain.domainMemory ); 

---------------------

Original comment by n.maucci...@gmail.com on 1 May 2011 at 8:16

GoogleCodeExporter commented 9 years ago
I need also the "test.as" that generate the "test.abc"

and yeah trying to write a null ByteArray should crash
as writeByteArray() does not test for null

but I didn't do any test with Domain.currentDomain.domainMemory
maybe there is a problem there too

Original comment by zwetan on 5 May 2011 at 12:21

GoogleCodeExporter commented 9 years ago
Hello !
The full project is attached !

Original comment by n.maucci...@gmail.com on 5 May 2011 at 7:59

Attachments:

GoogleCodeExporter commented 9 years ago
ok won't fix for redtamarin v0.3

2 reasons

- you can not directly write to the domain memory like you try to do
   check this article
   http://obtw.wordpress.com/2013/04/03/making-bytearray-faster/#more-150

- accessing the domain memory is supported only in the last tamarin-redux
  it will work when using redtamarin v0.4 , not with v0.3

Original comment by zwetan on 20 Nov 2013 at 5:11