
inside custom component

Native Development

Posts: 317
Registered: ‎05-07-2009
My Carrier: Telus

momentics frustrations

It's late, I'm tired, and I'm getting really frustrated with moment is right now. I'm not expecting a response but I need to vent.

I'm on the latest beta of momentics and although this worked fine for me yesterday and at least 3 days last week momentics has decided to forget everything it knows.

I want to run my apps on my device. It is always on the IP address and occasionally also plugged in via USB thus also available via the IP.

It appears that momentics has a hard time grasping that for all existing projects and ALL future projects these are the IP addresses I will want to deploy to.

Momentics is constantly telling me it can't connect to these devices yet when I import info from my devices debug token it always finds the device!

When I do straighten it out and try to deploy it complains that the connected device doesn't have a debug token or the device is not in debug mode (both of which are incorrect!)

/end grumble...

Ok so what I'd like to suggest is that momentics be fixed in the following ways:

1.) enable device profiles to be used across all projects without any special re-setup

2.) split the error messages. The device either doesn't have a debug token. It has one but it isn't valid, or the device is not in debug mode. Those are 3 distinct scenarios.

3.) I have no idea why momentics does this but when I point to a file to use as my app icon it adds the path to the assets list and for unknown reasons this trips up the compiler. What is the recommended way to add / specify the icon?

4.) even when things are working correctly momentics still claims 1 out of 5 deploys that my device has no debug token. I have no idea what the tool is actually doing to make this determination but my guess us somewhere in there there is some stale cache data or faulty logic. If I choose to create a new one... and not deploy it... it loads my app just fine... EVERY time.

5.) I'm patient... most times... but the other outstanding bugs in momentics don't help when dealing with the above. the drag and drop controls that append to the end instead of where you insert them is a pita. The auto formatting that ignores your configuration to use X spaces or tabs is annoying and lastly the previews that completely fail as soon as you add a custom component are really, really, trying.... we would much prefer they be skipped from the rendering.

Again, I'm tired and in a rotten mood right now... but it feels like the last 4 hours of development were fruitless due to momentics issues. hopefully after removing all device profiles, another reboot, new profiles added and fresh coffee in the morning this starts to work again.

PlayBook Apps: DataMine, Dots + Boxes, 5 Marbles
Please use plain text.
Posts: 1,282
Registered: ‎04-08-2010
My Carrier: Telekom.de, O2, Vodafone

Re: momentics frustrations

Momentics 10.2 is Beta and there are some bugs, so you should be patient and report bugs if they're not known yet


for the DebugToken to be created again:

this also happens from time to time for me,

but I simply let create and deploy a new one, which is harmless


problems with targets not found if connected via WIFI / USB:

I had some situations where the same device was connected via USB and via WIFI and then also WIFI IP changed and it could happen that Momentics couldn't detect your device

so my rules now are:

have only one target definition for each device

if switching from WIFI to USB or back delete the old target definition

if deleteing a target: always check the box 'delete on disk' (or similar named)

I already have reported this


Your application icon should always be at <projectdir>/icon.png

if you're using localized icons, yopu should also place them at project root,

per ex. <projectdir>/icon_xx.png

then if adding this Icon from bar descriptor localization add only enter the name of the Icon,

don't use one of the buttons 'Workspace...' 'File System...'

should worj without any problems then

ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Posts: 317
Registered: ‎05-07-2009
My Carrier: Telus

Re: momentics frustrations

Thanks ekke... I appreciate the response and some of the joint suffering.

Regarding the creating a new debug token each time and just let it go... I can't and the reason is that (a) I'm not always online, and (b) I've found that the percentage of failed attempts to upload said created debug token from within momentics is greater than 85% for me. yet I don't have any issue when I generate and deploy my debug tokens via command line.

I agree that the workspace/file folder buttons for choosing the application icon are more trouble than they are worth... which begs the question if they don't work and cause errors why were they ever added (or enabled in beta) if this is a known issue?

As for the IP addresses I specifically have my router assign to my Z10 based on the Mac address to overcome any change in IP address.

I haven't retried this morning so I'll see if momentics cooperates more today. It's just very frustrating when "someone else's code" is grinding your progress to a halt.

I should also note that I realize momentics is built in top of Eclipse... which is far from the best IE to start with... and full of its own issues and quirks so I'm not blaming momentics for all my woes ;-)

Anyway I've had some sleep... let me start over today and see if things reset themselves.

PlayBook Apps: DataMine, Dots + Boxes, 5 Marbles
Please use plain text.
BlackBerry Development Advisor
Posts: 669
Registered: ‎12-16-2008
My Carrier: Bell

Re: momentics frustrations

We definitely want to fix any issues you are having with our tools, so please log them in our developer issue tracker: DIT


Use the BlackBerry 10 project for any issues you run into while developing a BlackBerry 10 app.


Regarding your debug token issue specifically, have you tried explicitly creating a debug token for the device in the "Debug Token Details" menu in BlackBerry Tools when you right click on the target, and not having it auto created when you try and deploy? That seems to work better in the current beta.

Paul Bernhardt
Application Development Consultant

Found a bug? Report it to the Developer Issue Tracker
Please use plain text.