Org.appcelerator.kroll.runtime.v8.V8Function@40580158 - is this reporting an error?

You must Login before you can answer or comment on any questions.

Hi,

I need to use javascript generated from another language environment, one that doesn't yet support commonjs, so I'm having to use Ti.include. This javascript runs fine on node.js.

When I reference this included javascript in my Titanium app, to retrieve a simple string, I get a blank white screen on my Android device, with just this text: Org.appcelerator.kroll.runtime.v8.V8Function@40580158 - Android screen shot

Is this telling me about an error in Kroll? If so, is there any advice on how to go about debugging it?

Thanks,

 Andrew
  1. Application type: Mobile
  2. Titanium SDK: [INFO] Titanium SDK version: 1.8.2 (02/23/12 17:46 59b3a90)
  3. Platform & version: Android 2.3.4
  4. Device: HTC Sensation physical phone
  5. Host Operating System: Windows 7
  6. Titanium Studio: Titanium Studio, build: 1.0.9.201202141208 / Build: jenkins-titanium-rcp-master-138 (origin/master) / Date: 14 February 2012, 12:10:43
  7. A simple test case: sorry, by its nature, tricky to produce simple test case
  8. Logs: any relevant on-screen messages, and logs from the following locations (placed within the code markdown syntax provided):
  9. Android and iOS Development:
  10. iOS Packaging: N/A
— asked 1 year ago by Andrew McQuiggin
2 Comments
  • Can we see the code ?

    — commented 1 year ago by Nick Milner

  • Yes, thanks for the prompt. I should have posted it first off.

    The call is here:

    Ti.include("Program.js");
     
        var stText = smalltalk.Hello._helloFromSmalltalk;
        //label using localization-ready strings from <app dir>/i18n/en/strings.xml
        var label = Ti.UI.createLabel({
            color:'#000000',
            //text:String.format(L('welcome'),'Titanium'),
            text: stText,
            height:'auto',
            width:'auto'
        });
        self.add(label);

    Called code

    The code I'm calling is Amber Smalltalk, which produces Javascript. This code runs fine in Node.js.

    Even though it only returns a string, the presence of the Smalltalk base classes in Javascript form makes the file too large to post here (I tried, but no response from 'preview) - so here is a link to a copy in a pastbin service: Amber Smalltalk code as Javascript

    — commented 1 year ago by Andrew McQuiggin

Your Answer

Think you can help? Login to answer this question!