bugGnash - The GNU Flash player - Bugs: bug #20355, HaXe "Hello world"...

 
 

bug #20355: HaXe "Hello world" displays nothing (no default font is set)

Submitter:  Martin Guy <martinwguy>
Submitted:  Thu 05 Jul 2007 12:15:22 PM UTC
   
 
Category:  ActionScript Severity:  3 - Normal
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  strk
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 13 Jul 2007 02:34:40 AM UTC, comment #3: 

It works fine for me. Are you using OpenGL renderer ? OpenGL is known to be bogus when it comes to render device fonts.

Sandro Santilli <strk>
Group Member
Thu 12 Jul 2007 11:43:36 PM UTC, comment #2: 

I just tried a HelloWorld with Mtasc, with CVS Gnash version. It seems that something displayed but not what expected. Screen shoot, source and binary are attached.
Cheers
Younes

(file #13324, file #13325,

Younes <younes>
Thu 12 Jul 2007 12:31:02 PM UTC, comment #1: 

<changed title to different bug with same testcase>

Asger:

The assert bug reported yesterday has been fixed, but the test case is not wrking yet: Nothing appears on the screen. It seems that Gnash decides not to display anything if a font has not been set - contrary to Adobe Flash. When run with -v, it says:

ERROR: error: text style with undefined font; font_id = -1

strk:

I just committed a patch to complete implementation of createTextField
and adding use of a default font when not available.

Please try again.

Martin Guy <martinwguy>
Thu 05 Jul 2007 12:15:22 PM UTC, original submission:  

2007/7/5, Asger Ottar Alstrup <asger@area9.dk>:

I'm trying to see if CVS Gnash of today can run a .SWF made with haXe (see http://www.haxe.org).

I'm using this Hello.hx file:

class Hello {
  static public function main() {
    trace("Hello");
  }
}

and compiling with

  haxe -main Hello -swf hello.swf

which produces the attached .swf file.

When I run this, I get:

  $ gnash -a hello.swf
  * (lt-gnash:11554): WARNING *: Couldn't find pixmap file: GnashG.png
  lt-gnash: ../server/vm/fn_call.h:82: gnash::as_value& gnash::fn_call::arg(unsigned int) const: Assertion `n < nargs` failed.
  Aborted (core dumped)

I expected a window with the text "Hello.hx:3: Hello" in it.

Any ideas what is wrong?

Martin Guy <martinwguy>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #13324:  hello.swf added by younes (328B - application/x-shockwave-flash)
file #13325:  Hello.as added by younes (238B - application/octet-stream)
file #13326:  Capture-hello.swf.png added by younes (5KiB - image/png)
file #13252:  Hello.hx added by martinwguy (74B - application/octet-stream)
file #13253:  hello.swf added by martinwguy (3KiB - application/x-shockwave-flash)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by younes (Updated the item)
  • -email is unavailable- added by strk (Updated the item)
  • -email is unavailable- added by martinwguy (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 15 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-07-22 strk StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2007-07-12 younes Attached File- Added hello.swf, #13324
        Attached File- Added Hello.as, #13325
        Attached File- Added Capture-hello.swf.png, #13326
    2007-07-12 martinwguy StatusFixed Ready For Test
        Open/ClosedClosed Open
        SummaryHaXe &quot;Hello world&quot; provokes &quot;Assertion `n &lt; nargs` failed.&quot; HaXe "Hello world" displays nothing (no default font is set)
    2007-07-05 strk StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2007-07-05 strk StatusNone In Progress
        Assigned toNone strk
    2007-07-05 alstrup Carbon-Copy- Added -email is unavailable-
    2007-07-05 martinwguy Attached File- Added hello.swf, #13253
    2007-07-05 martinwguy Attached File- Added Hello.hx, #13252

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code