Skip to main content

Bug Tracker

Side navigation

#10608 closed bug (invalid)

Opened October 28, 2011 04:02PM UTC

Closed January 11, 2013 09:01AM UTC

1.7 rc1 crashes phonegap blackberry

Reported by: mike@marcucio.com Owned by: mike@marcucio.com
Priority: high Milestone: 1.next
Component: support Version: 1.7
Keywords: Cc:
Blocked by: Blocking:
Description

Just including the jquery js file in the default PhoneGap BlackBerry project (index.html) crashes the simulator when you launch the app. I can confirm that this does not happen with 1.6.4

It doesn't seem to crash my device (os 6) but not being able to debug in the simulator will make life very difficult (and not worth upgrading)

I am using the bbery simulator: 9930 (os 7).

I wish i had more debugging information but it is difficult to get any info when debugging a phonegap app.

Attachments (0)
Change History (24)

Changed October 28, 2011 04:49PM UTC by dmethvin comment:1

owner: → mike@marcucio.com
status: newpending

Does it happen on both the compressed and uncompressed versions? Can you try the older 1.7 pre-release versions so we can narrow down where the problem lies?

http://code.jquery.com/jquery-1.7b1.js

http://code.jquery.com/jquery-1.7b2.js

Changed October 28, 2011 05:38PM UTC by anonymous comment:2

I was testing a compressed 1.7rc1 version

-jquery-1.7b1.js (uncompressed) crashes

-jquery-1.7b2.js (uncompressed) crashes

-jquery-1.6.4.min.js (compressed) works

Changed October 28, 2011 09:51PM UTC by anonymous comment:3

I will try to comment out code to see where it crashes

Changed October 29, 2011 03:06AM UTC by mike@marcucio.com comment:4

status: pendingnew

I have no clue why it is crashing but if you comment out line 1635:

supports.supportsFixedPosition = (inner.offsetTop === 20 || inner.offsetTop === 15);

we no longer crash. Does this make any sense?

Changed October 29, 2011 02:36PM UTC by dmethvin comment:5

component: unfiledsupport
milestone: None1.7
owner: mike@marcucio.comdmethvin
priority: undecidedblocker
status: newassigned

Wow, thanks for digging into this! I suspect it's a duplicate of #10613 which crashes IE8 about five lines above that. Can you try a test where you include jQuery at the bottom of the page, just before the end of the body? If that works then I think we are dealing with the same problem.

Changed October 29, 2011 03:49PM UTC by mike@marcucio.com comment:6

no prob, I was already set up for it and what a great way to spend a Friday night ;)

but it still crashes if I put it before the end </body>

Changed November 04, 2011 05:28PM UTC by dmethvin comment:7

milestone: 1.71.7.1
priority: blockerhigh
version: 1.7rc11.7

Mike, does the 1.7 final still crash the simulator? We haven't given up and will be doing some other changes to 1.7.1 in the support.js area but this didn't seem critical enough to prevent the release.

Changed November 04, 2011 05:50PM UTC by mike@marcucio.com comment:8

Still happens in 1.7, I (and anyone else building PhoneGap apps for BlackBerry) will have to stick with 1.6.4 until this is fixes because there is no workaround that I am aware of.

Not a big deal for me because I do not need any of the new features in 1.7 but I would like to eventually upgrade.

Changed November 04, 2011 07:01PM UTC by timmywil comment:9

The difference is that the fixed position tests aren't run at all on pageload in 1.6.4. @mike: perhaps if you try to run http://api.jquery.com/offset in 1.6.4, you'll get the same error when it tries to determine fixed position support? I would test, but lack a bb.

Changed November 04, 2011 07:37PM UTC by mike@marcucio.com comment:10

Calling:

$(window).offset();

in 1.6.4 does not crash the app

Changed November 14, 2011 05:14PM UTC by rwaldron comment:11

milestone: 1.7.11.next

Changed March 04, 2012 07:57PM UTC by dmethvin comment:12

owner: dmethvinmike@marcucio.com
status: assignedpending

Mike, does this still occur? We don't have a simple way to reproduce so that makes it hard for us to fix as well.

Changed March 13, 2012 03:27PM UTC by u.v.poblotzki@babiel.com comment:13

Yes, it still happens; BlackBerry simulator still crashes with 1.7.1 but not with 1.6.4.

Changed March 28, 2012 08:10AM UTC by trac-o-bot comment:14

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed July 12, 2012 09:46PM UTC by dblanco.software@gmail.com comment:15

Replying to [comment:2 anonymous]:

I was testing a compressed 1.7rc1 version -jquery-1.7b1.js (uncompressed) crashes -jquery-1.7b2.js (uncompressed) crashes -jquery-1.6.4.min.js (compressed) works

I have the same problem. By using jquery.1.6.4.min.js still happening. What is the solution to test in the simulator under these conditions?

Changed July 13, 2012 03:17AM UTC by dmethvin comment:16

resolution: invalid
status: closedreopened

Changed July 13, 2012 03:18AM UTC by dmethvin comment:17

status: reopenedopen

Does the 1.8b2 release work?

What platform are you running the simulator on?

Changed July 13, 2012 03:26AM UTC by anonymous comment:18

Replying to [comment:17 dmethvin]:

Does the 1.8b2 release work? What platform are you running the simulator on?

Sorry, the version 1.6.4 if it works, but stops working in conjunction with mobile jquery 1.1.0 in the SDK simulator WebWorks.

Changed September 09, 2012 12:38AM UTC by dmethvin comment:19

status: openpending

I know it's been a while, but I'm just checking to see if later versions work here. Or perhaps RIM updated their software? Nobody else has reported this and we don't have a way to diagnose it, so I'm inclined to close.

Changed September 10, 2012 07:06AM UTC by kvinoth comment:20

We also ran into the same problem. Just including the JQuery js (compressed or uncompressed of ver 1.7.2) was causing the BB Simulator (os 7) to crash.

Do we have any solution to this yet? Is this solved in 1.8?

This is really preventing us from having a hybrid app using JQuery on BlackBerry. Please help.

Changed September 10, 2012 07:31AM UTC by dmethvin comment:21

_comment0: Commenting line below (line 1636) as recommended above solves the problem \ \ offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );1347279547017662

Commenting line below (line 1636) as recommended above solves the problem

offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );

Changed September 10, 2012 12:20PM UTC by dmethvin comment:22

status: pendingopen

Okay, not sure if we can fix this but at least we have a repro and a suspect.

Changed December 28, 2012 01:38AM UTC by dmethvin comment:23

status: openpending

Is this still a problem? Can someone who was affected test with jquery-1.9b1.js and see if it's still an issue?

Changed January 11, 2013 09:01AM UTC by trac-o-bot comment:24

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!