bugGnash - The GNU Flash player - Bugs: bug #24224, unable to read SOL written by self

 
 

bug #24224: unable to read SOL written by self

Submitted by:  Sandro Santilli <strk>
Submitted on:  Mon 08 Sep 2008 02:08:56 PM UTC  
 
Category: RTMP and AMFSeverity: 5 - Blocker
Release: trunkStatus: Fixed
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 11 Sep 2008 12:49:53 PM UTC, comment #4:

`nough tested.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Tue 09 Sep 2008 11:13:42 PM UTC, comment #3:

Committed revision 9709.
Multiple definitions of gnash::PropsSerializer confused
the linker (and NO warning !!).

Sandro Santilli <strk>
Project MemberIn charge of this item.
Tue 09 Sep 2008 10:31:34 PM UTC, comment #2:

I've added log_debug statements in PropsSerializer (the one in SharedObject.cpp) and it appears it's call operator never gets called. No wonder gnash produces a smaller .sol file ...

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 08 Sep 2008 02:28:05 PM UTC, comment #1:

strk@gnash:~/src/gnash/build/head/gtk_agg_ffmpeg$ hexdump -C /tmp/gnash.sol 00000000 00 bf 00 00 00 16 54 43 53 4f 00 04 00 00 00 00 |......TCSO......|
00000010 00 06 74 65 73 74 30 31 00 00 00 00 |..test01....|
0000001c
strk@gnash:~/src/gnash/build/head/gtk_agg_ffmpeg$ hexdump -C /tmp/adobe.sol

                1. 00 bf 00 00 00 37 54 43 53 4f 00 04 00 00 00 00 |.....7TCSO......|

00000010 00 06 74 65 73 74 30 31 00 00 00 00 00 01 6f 03 |..test01......o.|
00000020 00 01 6d 00 40 00 00 00 00 00 00 00 00 00 09 00 |..m.@...........|
00000030 00 01 6d 00 40 00 00 00 00 00 00 00 00 |..m.@........|
0000003d

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 08 Sep 2008 02:08:56 PM UTC, original submission:

Use following code for testing:

so = SharedObject.getLocal("test01");
trace(so.data.m); // read from file
so.data.m = 2; // set it
so.flush(); // write to disk

If you run the adobe player against the result, then
copy the .sol file to Gnash expected directory, gnash
can read it.

After reading (the player is expected to write also)
the version of .sol gnash writes will not be understood
by gnash again, so looks a problem with the writer.

The error you get while reading is: ERROR: Reading SharedObject /home/strk/.gnash/SharedObjects//localhost//home/strk/src/gnash/build/head/gtk_agg_ffmpeg/out.swf/test01.sol: Premature end of AMF stream

Attached the .sol files as produced by gnash and adobe.

Sandro Santilli <strk>
Project MemberIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #16451:  adobe.sol added by strk (61B - application/octet-stream)
file #16450:  gnash.sol added by strk (28B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jasonwoof
  • -unavailable- added by strk (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 11 Sep 2008 12:49:53 PM UTCstrkStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Wed 10 Sep 2008 12:01:15 AM UTCjasonwoofCarbon-Copy-=>Added jasonwoof
    Tue 09 Sep 2008 11:13:42 PM UTCstrkStatusNone=>Ready For Test
      Assigned toNone=>strk
    Mon 08 Sep 2008 02:28:05 PM UTCstrkReleaseNone=>trunk
    Mon 08 Sep 2008 02:08:57 PM UTCstrkAttached File-=>Added gnash.sol, #16450
      Attached File-=>Added adobe.sol, #16451

    Back to the top


    Powered by Savane 3.1-cleanup1