i am having this error when i run my app on the device ( iPhone 7 ), but when i run it in the emulator works fine.
Its really strange.
The code is:
Ti.API.info( json );
var renglon = Ti.UI.createTableViewRow({
id: id,
width: Ti.UI.FILL,
height: '80dp',
});
In the emulator works OK, but in the device i got an error, the error appears just after the json is printed in the log.
[WARN] : Attempted to load TiUITableViewRowProxy: Could not find class definition.
[ERROR] : Script Error {
[ERROR] : column = 2875;
[ERROR] : line = 1;
[ERROR] : message = "invalid method (createTableViewRow) passed to UIModule";
[ERROR] : sourceURL = "file:///var/containers/Bundle/Application/B99CA23F-183D-4C5F-A5DC-FA9CFC614186/CarWash.app/src/vistas/personal.js";
[ERROR] : stack = "[native code]\nagregarRenglonPersonal#file:///var/containers/Bundle/Application/B99CA23F-183D-4C5F-A5DC- FA9CFC614186/CarWash.app/src/vistas/personal.js:1:2875\nonload#file:///var/contain ers/Bundle/Application/B99CA23F-183D-4C5F-A5DC- FA9CFC614186/CarWash.app/src/vistas/personal.js:1:3651";
[ERROR] : }
-- End application log -------------------------------------------------------
i'm using:
Titanium appcelerator studio build: 4.9.0.201705302345
SDK: 6.1.0GA
Thanks in advance.
We are run into the same error today!
Wrong source code in respect of the table view was the reason, a stupid C&P error:
var tableView = Ti.UI.createLabel({...});
instead of
var tableView = Ti.UI.createTableView({...});
First of all: i do not really like Appcelerator Studio, did you try compiling with the cli? appc run -p ios
If that does not work it would be intresting to see more code than the snippet you posted
Did you try with older sdks? If not then try this code with older sdk and still you get same error then i would like to see more code.
Related
I wrote simple example code in the WebStorm EAP
void main() {
var main = new Element.html('<div class="main"></div>');
document.body.children.add(main);
}
in Dartium - all is well, after pub:debug - - all is well,
but after pub:build project, in realise/index.html I do not see anything, only an error in the console:
"main.dart.js:1159 Uncaught TypeError: Cannot read property 'at' of null"
Please explain to me what is the problem, and how can I get the correct build files.
When running my app in development it works fine. but when deployed, it throws this error :
Error: [$injector:unpr] Unknown provider: e
The url to the app : http://shimizu.leafycode.com/panel/signin
The js files : https://gist.github.com/THPubs/3a9e088ad3410e18030c
I followed other stack-overflow answers and fixed my app accordingly but still the problem is there! Please help.
Your code is being minified and I can see at least one place in app.js where you are not using the array notation when calling .config and .run
So in your app.js update the line
.config(function($mdThemingProvider) {
to
.config(['$mdThemingProvider', function($mdThemingProvider) {
// ... Your code ...
}])
and the line
.run(function($rootScope, $templateCache) {
to
.run(['$rootScope', '$templateCache', function($rootScope, $templateCache) {
// .. Your code ...
}])
Double check other places in your code that you are injecting services.
I got this error when I run Fastlane's Snapshot tool:
UIAutomation Error: Script threw an uncaught JavaScript error: Can't find variable: captureLocalizedScreenshot on line 8 of snapshot.js
This is my snapshot.js file:
#import 'SnapshotHelper.js'
var target = UIATarget.localTarget();
var app = target.frontMostApp();
var window = app.mainWindow();
target.delay(3);
captureLocalizedScreenshot('0-LandingScreen');
The problem was the single quote on the import statement.
For anyone like me, addicted to code stylers, make sure it doesn't change this first line.
It should be:
#import "SnapshotHelper"
I'm trying the communication between javascript and Ros.
I use the example code of
"github.com/RobotWebTools/roslibjs/blob/develop/examples/simple.html "
with these changes:
var cmdVel = new ROSLIB.Topic({
ros : ros,
name : '/fromRos2Can',
messageType : 'ackermann_msgs/AckermannDrive'
});
and
var twist = new ROSLIB.Message({
speed:1.0,
acceleration:2.0,
jerk:3.0,
steering_angle:4.0,
steering_angle_velocity:5.2
});
and I receive these two error message:
[ERROR] [WallTime: 1404116229.210210] [Client 2] [id: advertise:/fromRos2Can:1] advertise: Unable to load the manifest for package ackermann_msgs. Caused by: ackermann_msgs
[ERROR] [WallTime: 1404116229.213060] [Client 2] [id: publish:/fromRos2Can:2] publish: Cannot infer topic type for topic /fromRos2Can as it is not yet advertised
My c++ program works with AckermannDrive.msg and a test with a std_msg/String works too.
Where is my mistake?
Thanks
There's a very similar post in answers.ros.org. Since that web site is the official QA forum for ROS I'd suggest continuing over there.
I have the following code in my bootstrapped Thunderbird add-on main.js file:
exports.main = function() {
console.log("abc");
};
When I run this code in FireFox in Add-on Builder, I get this message displayed in FireFox Error Console:
info: vladp: abc
However, when I run my extension in Thunderbird nothing is displayed. I have set up the development enviroment as described here: https://developer.mozilla.org/en-US/docs/Setting_up_extension_development_environment
How do I make it work in Thunderbird Error Console? Or is there any other way to log some debug information, apart from "dump()"?
UPDATE 1
As suggested by speedball2001, I've changed my code to:
exports.main = function() {
var Application = Components.classes["#mozilla.org/steel/application;1"].getService(Components.interfaces.steelIApplication);
Application.console.log('Bam!');
};
However, when I run Thunderbird, I get the following error in error console:
Timestamp: 2013.05.22. 16:39:07
Error: myfirstext: An exception occurred.
ReferenceError: Components is not defined
resource://jid0-7yp22cmsooypei7nicamg3n0ha0-at-jetpack/myfirstext/lib/main.js 57
How do I fix it?
Thunderbird provides an Application interface that, among other things, helps with logging:
var {Cc, Ci} = require("chrome");
var Application = Cc["#mozilla.org/steel/application;1"]
.getService(Ci.steelIApplication);
Application.console.log('Bam!');