Fwd: Re: Javascript and konq crash

Eva Brucherseifer <[email protected]>
Newsgroups gmane.comp.kde.devel.kfm,gmane.comp.kde.devel.konq-e
Organization basysKom GmbH
Message-ID <[email protected]>
Hi konq & kjs people,

maybe you can have a look at it and help Yan out? I already mailed another 
mail about the problem some days ago. 
How about the current code from trunk? Does it make sense to try code from 
there instead? Or kdelibs 3.5.2? Right now we are using kdelibs 3.5.1 (tag).

(Yan: kjs people are subscribed to kfm-devel, not to konq-e)

Greetings,
eva

----------  Weitergeleitete Nachricht  ----------

Subject: Re: Javascript and konq crash
Date: Samstag, 25. März 2006 01:16
From: yan seiner <[email protected]>
To: For discussion of Konqueror/Embedded <[email protected]>

Luciano Montanaro wrote:
>On Friday 24 March 2006 14:26, Yan Seiner wrote:
>>Eva Brucherseifer wrote:
>>>Hi Yan,
>>>
>>>can you have a look at it? We are pretty busy with fixing other stuff...
>>>
>>>Greetings,
>>>eva
>>
>>OK, I've looked at it.... It's a scary mess.
>>
>>In your javascript that fails, are you calling any floating point?
>>sin/cos? log?
>>
>>The code that fails for us uses a good bit of floating point....  It
>>would be good to confirm that suspicion....
>
>The dtoa code is really quite intricated.
>It seem to be called from a single point in kjs, in ustring.
>Perhaps for testing purposes another conversion method (with sprintf or a
>stringstream) could be used. If that works, the problem is indeed in dtoa.
>
>Luciano

OK, some testing....

Floating point in Javascript on ARM seems to be badly broken -

document.getElementById("xa"+idx).value =
                depth * 100 /
                document.getElementById("ha"+idx).value;

which should be

0.5 * 100 / 3 = 16.66667 - and in fact shows up as 16.6667 in Firefox on
x86 - shows up as -0.0003 just before konq crashes....

The big question is where is it broken?  Can the kjs folks look at it?

I can tarball the code I am using if that will help....  But for now I
am going to walk around and clear my head....

--Yan
_______________________________________________
konq-e mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/konq-e

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

-- 
Eva Brucherseifer
General Manager

basysKom GmbH
Robert-Bosch-Str. 7 | 64293 Darmstadt | Germany
Tel: +49 6151 3969-961 | Fax: -736 | Mobile: +49 170 5533642
[email protected] | www.basyskom.de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.