Titanium JIRA Archive
Alloy (ALOY)

[ALOY-2] Mobileweb red screen on load of master_detail sample

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-19T11:52:00.000+0000
Affected Version/s2012 Sprint 14
Fix Version/s2012 Sprint 14
ComponentsRuntime
Labelsn/a
ReporterTony Lukasavage
AssigneeTony Lukasavage
Created2012-05-16T14:32:21.000+0000
Updated2012-07-19T11:52:00.000+0000

Description

The master_detail sample works as expected on android and ios, but fails immediately on mobileweb with the exception captured in the attached screenshot. Need to dig into the exception, which unfortunately gives very little information in its call stack.

Attachments

FileDateSize
Screen Shot 2012-05-16 at 5.32.00 PM.png2012-05-16T14:32:21.000+000017231

Comments

  1. Tony Lukasavage 2012-05-16

    I've narrowed the exception down to the following line of code in runtime.js:
       var logger = require('zipti/runtime/logger')();
       
    Despite the fact that the logger module exports as a function, which works fine on ios and android, mobileweb does not recognize the require() statement as a function. Commenting this line makes it work on mobilewen but obviously prevents us from using the logger. MOre investigation will need to be done to find the root of this problem.
  2. Russell McMahon 2012-05-16

    You might ping Chris B.
  3. Tony Lukasavage 2012-05-17

    details here: [https://github.com/appcelerator/ZipTi/commit/dc80be7b7e7054132688f97b782e7f21df351dce](https://github.com/appcelerator/ZipTi/commit/dc80be7b7e7054132688f97b782e7f21df351dce)

JSON Source