[BUG] minor MPEG bug under Linux?
Karl Ramberg
karl.ramberg at chello.se
Fri Aug 10 18:02:19 UTC 2001
John Hinsley wrote:
>
> Karl Ramberg wrote:
> >
> > Lex Spoon wrote:
> > >
> > > > > Odd. The only way I can see for primHasVideo: to fail is if the
> > > > > "handle" argument isn't a valid file handle. e.g., it is nil, or it
> > > > > isn't a ByteArray... I wonder how that could ever happen?
> > > >
> > > > Stranger still, it doesn't always happen: sometimes I open up Squeak and
> > > > there is no debugger! But this is nowt but a (very) minor annoyance:
> > > > I'll go buy another sound card and see what happens.
> > > >
> > >
> > > Whoa, open MPEG files don't survive snapshot+restart, any more than open
> > > FileStreams. If you reload an image, you need to reopen your MPEG
> > > files, too.
> > >
> > > (Arguably, they should try to do a re-open, but currently they don't.)
> >
> > They should do... both John and I have added support for that in the
> > various classes.
> > Karl
>
> Well, I'm not sure what *should* happen ;-) But this error can generally
> be reproduced (on my system at least).
>
> SuSE 6.4, glibc 2.1.3, Squeak 3.1a 4173 built from Lex's sources. squeak
> -memory 60m
>
> Ok, open up an mpeg morph and load and play an mpeg.
Which of them: the crude orange one (MPEGPlayerMorph)
or the nicer blue one (MPEGMoviePlayerMorph)?
> Use the X halo to collapse the morph.
The X handle (halo) that deletes the morph ?
> Save and quit. Re-start Squeak. 8 times out of 10,
> the debugger pops up.
Whats in the debugger ? My first guess is that this is a bug that
occur on *nix because the MPEGfile path is invalid.
I did some hacking to force stuff to work: The MPEGPlugin chocked
on filenames with uppercase suffixes. So I forced lowercase because
HFS ignores cases. And I probably did some other hacks too...
> (This isn't really a problem unless you've run a
> few mpegs, where the debuggers sometimes seem to block the mouse -- they
> refuse to either close/collapse or cancel -- quitting again seems to
> clear this.) Killing the debuggers and running Smalltalk garbageCollect
> seems to result in a fully functioning system.
I do not see any of this on my Mac system.
>
> Any tests you'd like me to try, please let me know. The Mpeg plug in
> itself is superb: I've yet to find anything it won't run.
The plugin is great! It also plays MP3s so a soundcard is recomended.
Karl
More information about the Squeak-dev
mailing list
|