Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
2.3: WebView's JavaScriptInterface throwing exception 100% of time
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jsdf  
View profile  
 More options Dec 7 2010, 11:10 am
From: jsdf <jasons...@gmail.com>
Date: Tue, 7 Dec 2010 08:10:48 -0800 (PST)
Local: Tues, Dec 7 2010 11:10 am
Subject: 2.3: WebView's JavaScriptInterface throwing exception 100% of time
Hi all,
Has anyone played with the 2.3, WebViews, and the JavaScript to Java
interface?
If so, have you gotten it working?

I, and a number of others, have seen this fail 100% of the time.
http://code.google.com/p/android/issues/detail?id=12987

This is a very serious issue.

Anyone have suggestions?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony  
View profile  
 More options Dec 7 2010, 5:07 pm
From: Tony <tony.cassan...@gmail.com>
Date: Tue, 7 Dec 2010 14:07:51 -0800 (PST)
Local: Tues, Dec 7 2010 5:07 pm
Subject: Re: 2.3: WebView's JavaScriptInterface throwing exception 100% of time
Hey,

I reported the issue that you linked to.  I'm trying to find a
workaround but have yet to see any possible way of getting things up
and running.  Anyone out there with any thoughts?  Or someone at
Google who can let us know the status of this?

I'm really hoping that someone just screwed up the emulator build and
that this won't affect the production builds...

tony

On Dec 7, 8:10 am, jsdf <jasons...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jsdf  
View profile  
 More options Dec 8 2010, 8:04 am
From: jsdf <jasons...@gmail.com>
Date: Wed, 8 Dec 2010 05:04:57 -0800 (PST)
Local: Wed, Dec 8 2010 8:04 am
Subject: Re: 2.3: WebView's JavaScriptInterface throwing exception 100% of time
Thanks for reporting it Tony.
I've contacted everyone I know at Google and outside.
I found one workaround, but it's ugly.  I'll post it on the issue
itself.

On Dec 7, 4:07 pm, Tony <tony.cassan...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan  
View profile  
 More options Dec 8 2010, 10:02 am
From: Stefan <skyntc...@gmail.com>
Date: Wed, 8 Dec 2010 07:02:30 -0800 (PST)
Local: Wed, Dec 8 2010 10:02 am
Subject: Re: 2.3: WebView's JavaScriptInterface throwing exception 100% of time
I also found this to cause be a repeatable crash in 2.3 emulator. The
crash log always starts with:

12-08 09:35:15.945: WARN/dalvikvm(8823): JNI WARNING: jarray
0x40540b30 points to non-array object (Ljava/lang/String;)

then

12-08 09:35:16.185: INFO/DEBUG(7347): signal 11 (SIGSEGV), code 1
(SEGV_MAPERR), fault addr deadd00d
12-08 09:35:16.185: INFO/DEBUG(7347):  r0 fffffebc  r1 deadd00d  r2
00000026  r3 00000000
12-08 09:35:16.185: INFO/DEBUG(7347):  r4 81da45c8  r5 40540b30  r6
81d8592c  r7 00263230

At this point all we can do is vote for the issue (http://
code.google.com/p/android/issues/detail?id=12987 ) and hope it is an
"emulator only" issue or it gets fixed before the final build makes it
to the devices.

On Dec 8, 8:04 am, jsdf <jasons...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony  
View profile  
 More options Dec 8 2010, 2:25 pm
From: Tony <tony.cassan...@gmail.com>
Date: Wed, 8 Dec 2010 11:25:39 -0800 (PST)
Local: Wed, Dec 8 2010 2:25 pm
Subject: Re: 2.3: WebView's JavaScriptInterface throwing exception 100% of time
Yeah, it's a bad pointer in the native libraries (which is why I'm
hoping someone just screwed up the emulator build and included a bad
library).  You can see the pointer address is "deadd00d", which would
be humorous if it weren't such a terrible crash.

I also posted a comment with respect to your workaround.  I think it'd
be easier to use the onJSAlert method to do what you've said, but that
still requires non-trivial rewrites of all code since you can't return
values without using callback chaining.  Oh well...

Anyway, it'd be nice to get a response from someone at Google to let
us know the status of this.  Does it affect hardware?  Is this being
looked at?  This could very well cause crashes of a huge number of
current apps in the market.

tony

On Dec 8, 7:02 am, Stefan <skyntc...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony  
View profile  
 More options Dec 8 2010, 9:49 pm
From: Tony <tony.cassan...@gmail.com>
Date: Wed, 8 Dec 2010 18:49:58 -0800 (PST)
Local: Wed, Dec 8 2010 9:49 pm
Subject: Re: 2.3: WebView's JavaScriptInterface throwing exception 100% of time
Hey guys, someone from google replied on the bug and said that this
does not happen on the Nexus S.  So good news...  Guess we'll have to
wait to test on device.

tony

On Dec 8, 11:25 am, Tony <tony.cassan...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Kerns  
View profile  
 More options Dec 9 2010, 2:32 am
From: Bob Kerns <r...@acm.org>
Date: Wed, 8 Dec 2010 23:32:45 -0800 (PST)
Local: Thurs, Dec 9 2010 2:32 am
Subject: Re: 2.3: WebView's JavaScriptInterface throwing exception 100% of time
Yes, everyone knows you should initialize unused memory to #xdeadbeef!
:=)

On Dec 8, 11:25 am, Tony <tony.cassan...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
String  
View profile  
 More options Dec 9 2010, 5:04 am
From: String <sterling.ud...@googlemail.com>
Date: Thu, 9 Dec 2010 02:04:56 -0800 (PST)
Local: Thurs, Dec 9 2010 5:04 am
Subject: Re: 2.3: WebView's JavaScriptInterface throwing exception 100% of time

Just yesterday I was getting a segfault from 2.2 at 0xdeadbaad. Not
consistently, but I certainly saw that address show up a couple of
times. Hah.

String


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »