Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
shnuffy
Posts: 268
Registered: ‎08-19-2009
My Device: Bold 9700
Accepted Solution

Ripple hanging on openDatabase call

[ Edited ]

Hi,

 

This just started happening yesterday. Not sure why. Ripple hangs when I load the following project:

 

index.html:

<!DOCTYPE html">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
    <meta name="viewport" id="viewport" content="initial-scale=1.0,user-scalable=no"></meta>
    <script src="json2.js" type="text/javascript"></script>
	<script src="utils.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="styles/main.css"></link>

    <title>App</title>
  </head>
  
  
  <body onload="setTimeout('init()',300)">
  
	<div id="stylized" class="main">
	<div align="center" ><img src="resources/logo.png"></div>
	</div>
  </body>
</html>

 utils.js:

var db 				= null;

function init()
{	
	try
	{
		db = window.openDatabase('users', '1.0', 'users', 1000);
	}
	catch (err)
	{
		//log it
	}
}

 

 

This hasn't been an issue in the past. The openDatabase call is hanging Ripple. I even tried manually deleteing the existing databases in the \Users\_username_\AppData\Local\Google\Chrome\User Data\Default\databases folder in windows.

 

The crash log doesn't have much information besides "appHang", and I didn't see anything in the event viewer.

 

Any ideas?

Developer
shnuffy
Posts: 268
Registered: ‎08-19-2009
My Device: Bold 9700

Re: Ripple hanging on openDatabase call

As I had suspected the database had become corrupted, but I deleted the wrong the one.

 

After deleting the database found at:

 

C:\Users\[user]\Application Data\Research In Motion\Ripple\Databases\[my localhost folder]

 

The crashes stopped and the database was re-created.

Retired
jeffheifetz
Posts: 518
Registered: ‎07-18-2011
My Device: Bold

Re: Ripple hanging on openDatabase call

You can also remove databases from within WebInspector using traditional SQl (ie DROP Table )



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Developer
shnuffy
Posts: 268
Registered: ‎08-19-2009
My Device: Bold 9700

Re: Ripple hanging on openDatabase call

The WebInspector that runs with Ripple would freeze along with Ripple itself, so I couldn't access it. Then, of course, running my app in Chrome places the db in a different location.