Ive trained a couple action classifier models, and a few object detection models with no issues. Recently tho everything started crashing, not sure why, i have not updated anything on my computer. Does anybody know how to debug the application? I've been looking for documentation, however I have not been able to find any info that would help me debug common errors. More info below on issues i've had.
I am having multiple issues depending on what I am trying to train. I have another question open for an ioaf code error. While waiting on response, i started working on another model, on a different laptop. This model is to recognize users action. However, this one is now failing with "asset contains no video tracks". this is not making any sense, to me. I am unable to find any documentation to debug or read any error logs from CreateML, and their technical support is no support.
Has anybody run into a similar issue, or know how to debug the application? Im trying to figure out where its failing, i've opened several of the video files to see if they are corrupted and so far none have been. This is not a good debug method for small teams and your dealing with hours of video clips or thousands of images.
Sometimes I have this issue when some python libraries be updated and change import things, like the imput structure. So check this. I reccommend you to upload your errors in order to help you. Try also to work on other editor like google colab, but not that there every variable is global.
Related
So I need to understand the contents of this picture.
I have searched through the other articles related to this on StackOverflow and I haven't found an answer or even another URL to a reference explaining this.
A little bit of context:
I am using UIPasteboard.general to copy some text and whenever I send the app to the background and enter any other application the former app crashes.
Now what's confusing is that I can still successfully paste what UIPasteboard has copied but still the app has crashed.
So I would like to troubleshoot but I do not have the slightest idea of where to begin looking at this.
So any insight anyone can give in this would be greatly appreciated!
The Basics
So I've been working with Xamarin a decent bit recently, and am looking for a solution to a current problem. I've been using the WoWonder script recently, and launched it on a site. i can confirm that the site is working well, without any hiccups. Although I've reworked some of the UI / UX, and basic functionality, I haven't delved extremely deep into it.
I'm currently using the Mobile Timeline applications to link into the network. I've had to debug a decent amount of problems so far with the NuGet packages, syntax errors, as well as authentication / decryption errors. I solved the first two, and solved the last by switching the SSL & TLS options in the Android Options area.
I would normally seek help from the author of said project, but given people in the comments haven't always gotten their answers, and instead got the runaround (Not to mention the broken english), I thought Stack would be the better option.
So far, I've asked around, and looked around, but haven't found anything. This is my last attempt before I start breaking everything down, line-by-line. I haven't found anyone else having a similar problem, other than the Xamarin > WP8 issue.
The Problem
Screenshots:
https://1drv.ms/u/s!Aub_kvZQCqk8ii7fW8ntcn4dxh-W
https://1drv.ms/u/s!Aub_kvZQCqk8ii9Ksd86tPIHLXMo
SideNote: The project does use 'Xamarin Components," and the syntax / order of things is a mess. It's nothing that breaks anything or issues too many warnings, it just parses a lot that it can't find, or isn't relevant / needed / is outdated.
Edit:
It's difficult to copy the context of the error in the emulator, since it doesn't seem to be showing up in visual studio. I'll transcribe it below.
Code Snippet:
System.Net.HttpRequestException: 500 (Internal Server Error) at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()[0x0002a] in <dcbf7ae3bce147228fa58d5bc31257ae>:0 at WowonderPhone.MainPage+<OnLoginClicked>d_2.MoveNext()[0x00252] in <1284583bda884ff38ca175979b310f47>:0
This has since been fixed. It was a problem on the server side, but had to do with the script, as the person previously mentioned. It wasn't a problem with Apache directives, or heightened security, just an inconsistency in the script syntax. Unfortunately, since another person solved this directly, I don't know the exact margin of error.
I wanted to install Code Combat locally to be also able to understand it better. I have followed the steps (for Mac OSX, I have Yosemite) described at: https://github.com/codecombat/codecombat/wiki/Developer-environment
Everything worked. I have all the scripts running, without problems, mongo is up and running, the game is starting, but then, the game itself can't be proceeded.
I haven't restored the mongo dump, which is 2GB fat and which I can't download easily with my current internet connection, but it seems to be optional.
Looking on the console, I have a couple 404 that I can't explain, see below. If somebody could help me to get the game running locally, I would be very grateful.
GET /db/thang.type/529ffbf1cf1818f2be000001/version 404
GET /db/level/dungeons-of-kithgard/session 404
As well as the mp3 files, which I am fine not to have.
Thanks in advance,
Matthieu
PS: I would have liked to specify more tags, but as it concerns many languages and doesn't have a specific tag, I didn't know which one to add
OK, it's mandatory to have a mongo dump to have the base elements for the levels. But 2GB is too much and a solution will attempt to be found to be able to export only the required data. 200MB should be enough
UPDATE: With the following ticket being implemented, the size is reduced to less than 100MB: https://github.com/codecombat/codecombat/issues/1988
As I am new to web2py, I wonder what are the ways available for debugging a web2py application. So far, I've come across the following scenarios:
when a runtime error occurs in a web2py app, an error ticket is generated and normally useful information is contained in the ticket.
however, sometimes only a plain error message is available on a page, for example, 'bad request'. that's it. So what would be the best way in this case to track down what goes wrong? Logging? If so, how do we do it properly?
if no obvious error message is shown, but the app doesn't perform as expected. Usually, I use a debugger with breakpoints to check it out. Any other suggestion?
Any experience/insight is extremely welcome.
You can detect errors at your model or controller layer by adding unit tests. That will help narrow your debugging efforts, especially when the error ticket system breaks down. Unfortunately the web2py documentation doesn't stress the importance of unit tests enough. You can run doctests on your controllers with
python web2py.py -T <application_name>
Since the model layers run for each controller, you will at least find syntax errors in your at the model layer.
The latest version has an integrated debugger. You can set breakpoints on your code and step through it.
The other suggestions are good. I would also suggest the Wing IDE debugger. It isn't very expensive, and works well with Python generally and web2py specifically.
Wing has a capability to do remote debugging -- very useful when you're working through production-style deployment with remote app servers. That capability saved my bacon any number of times.
As #Derek pointed out there is an
integrated debugger for web2py
You can set a breakpoint from the integrated Web2py editor (clicking on 'toggle breakpoint') or setting it manually as indicated in the above link.
Once you hit the breakpoint, you can open http://localhost:8000/admin/debug/interact (if running locally to evaluate any expression at that point.
I've Googled around a bit on this issue and haven't been able to come up with anyone else having an issue to this one, so a) I apologize if this is a known issue; and b) I'm thinking this proves that I must be doing something horrifically wrong, yeah? :-)
My application has a very rich landing page which is the first page that is shown after a new launch. It has a panorama control, a large background image (but much smaller than the 2000x2000 limit) and recurring and ongoing animations. Prior to updating my tools to the January refresh, this page ran relatively smoothly. After updating and running the app in the emulator, the background of this page is white (despite the fact that the emulator is on the "dark" theme), performance is quite poor (both in terms of swiping through the panorama and in terms of my recurring animations). When I run the same project on my device, all is well (since, quite obviously, my device's OS is not on the updated image).
Clearly I must be doing something grievously wrong to merit such a cataclysm, but I'm not sure what it might be. I've tried disabling bitmap caching in the places where I'm using it, removing third party tools I'm using such as Peter Torr's awesome tilt effect and his memory usage counter, and several other hail-Mary-style moves, and the problem remains. I also looked through the provided resources and change log to see if perhaps something related has changed, but I didn't see anything.
I'll try to provide example code later if it would be of any use to any would-be saviors out there, but the app is pretty complex and large in terms of lines of code and file size, so it might be a bit tricky. i just thought I'd toss this out there and see if anyone might happen to see it and think of an obvious solution.
Thanks so much in advance for your time and help.
P.S.: I cross-posted this question on the official WP7 dev forums. Sorry if that's against the rules - I'm not a regular SP-poster, as you can tell. If it's a problem, let me know and I can delete the other post.
I was ultimately able to resolve this by creating a brand new project using the updated tools and copying my code, assets, and relevant project settings into it. The app now runs flawlessly on the emulator (or, at least, the flaws in it are my flaws and not the emulator's :-)).
I believe I originally created the project on an earlier version of the SDK, so maybe I had some kind of invalid or incorrect project settings. If I get a moment later, I'll compare the project files to see if I can identify a setting or difference that explains the disparity.
Thanks to all who looked (and to Matt, who even responded :-)). I'll report back if I have any more information that might be of help.
UPDATE: Updating for anyone who might be having this issue as well - my resolution above was a false positive. Creating a new solution and copying stuff in does indeed work, but only until you save and close the new solution. Upon reopening, the problem recurs. Grrrr. I'll post back if I come up with anything else.