The first thing you should try when facing similar problems would
be reducing the testcase. Omit sections of your source code to
get the smallest testcase possible.
When that's done, next step would be trying it in C, as all scripting
(plus C++) bindings are just wrappers around the C lib.
--strk;
On Mon, Dec 18, 2006 at 11:36:51AM -0800, Hieg Khatcherian wrote:
> Hi all, I'm running the 0.4-beta php module with apache2 and the code
> below is causing apache to seg fault with this message in the error log:
>
> [Mon Dec 18 11:31:34 2006] [notice] child pid 13348 exit signal
> Segmentation fault (11)
>
> Any thoughts?
>
> Ming_setScale(20.00000000);
> ming_useswfversion(6);
> $movie=new SWFMovie();
> $movie->setDimension($this->getBanner()->getW(),$this->getBanner()->getH());
> $movie->setBackground(0x00,0x00,0x00);
> $movie->setRate(31);
> $mc = new
> SWFPrebuiltClip(fopen(SWF_PATH.SEP.$this->getBanner()->getSwf(), "r"));
> $f1 = $movie->add($mc);
> $f1->setName("amc");
>
> if($this->getBanner()->getW() < $this->getBanner()->getH()){
> if($this->getPoll()->getO1()){$a .= $this->getPoll()->getO1()."\n";}
> if($this->getPoll()->getO2()){$a .= $this->getPoll()->getO2()."\n";}
> if($this->getPoll()->getO3()){$a .= $this->getPoll()->getO3()."\n";}
> if($this->getPoll()->getO4()){$a .= $this->getPoll()->getO4()."\n";}
> if($this->getPoll()->getO5()){$a .= $this->getPoll()->getO5()."\n";}
> }else{
> if($this->getPoll()->getO1()){$a .= $this->getPoll()->getO1()." ";}
> if($this->getPoll()->getO2()){$a .= $this->getPoll()->getO2()." ";}
> if($this->getPoll()->getO3()){$a .= $this->getPoll()->getO3()." ";}
> if($this->getPoll()->getO4()){$a .= $this->getPoll()->getO4()." ";}
> if($this->getPoll()->getO5()){$a .= $this->getPoll()->getO5()." ";}
> }
>
> if($this->getFontSize() > 0){
> $font_size = $this->getFontSize();
> }
>
> if($this->getFontSizeGif() > 0){
> $size = $this->getFontSizeGif();
> }else{
> $size = $this->getBanner()->getFontSize();
> }
>
> $strAction="_root.myQuestionText=\"".html_entity_decode($this->getPoll()->getQuestionShort(),ENT_COMPAT,"UTF-8")."\n\n".ff($a)."\";\n";
> if($this->getVendorLink()){$strAction .=
> "_root.LINK_URL=\"".$this->getVendorLink()."\";\n";}
> if($font_size){$strAction .= "_root.POINT_SIZE=".$font_size.";\n";}
> $movie->add(new SWFAction($strAction));
> $movie->save(BANNER_PATH.SEP.$this->getBannerName(),9);
>
> --
> Hieg
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Ming-devr mailing list
> Ming-devr@...
> https://lists.sourceforge.net/lists/listinfo/ming-devr
--
/"\ ASCII Ribbon Campaign
\ / Respect for low technology.
X Keep e-mail messages readable by any computer system.
/ \ Keep it ASCII.
|