OSX: 10.6.8
Xcode: 4.0.2
Phonegap: 1.4.1.js or Cardova-1.7.0
Following simple HiWorld example http://phonegap.com/start produces the following error from:
AppDelegate.m:
self.viewCOntroller = [[[MainViewCOntroller alloc] init] autorelease];
ERROR:
Thread 1: Program received signal: "EXC_BAD_ACCESS"
EDIT: I was using the ipad 3.2 Simulator, as soon as I changed it to iphone 4.0 or above the problem went away.
This is (in my opinion), the most common error in iOs development.
The error means that you're trying to access something that has already been released.
You may be trying to access the viewController sometime after having already released it.
Remove autorelease and see what happens.
Related
I have a problem with QFileDialog. I used this code:
fileDialog = new QFileDialog(this);
fileDialog->setFileMode(QFileDialog::Directory);
fileDialog->setReadOnly(true);
if (fileDialog->exec()){
ui->FilePath->setText(fileDialog->directoryUrl().toString());
}
In application out, it told me this:
shell\comdlg32\fileopensave.cpp(9456)\comdlg32.dll!00007FF9A3A2260A:
(caller: 00007FF9A3A2A866) ReturnHrPreRelease tid(2110) 80070490
Élément introuvable.
CallContext:[\PickerModalLoop\InitDialog\FileDialogInitEnterpriseData]
I use Qt creator 3.5.0 and Qt5.5.0 on Windows 10.
Does anybody have a solution for this?
This issue has been answered in the following thread :
How to debug …\comdlg32\fileopensave.cpp
TLDR : not an issue. message is an extra debug message from win10 api.
I'm getting the following error message when I try different operations such as installing an application to a Firefox OS simulator:
Operation timed out: installing and running app
I've tried versions 1.3, 1.4, 2.0 of the simulator - all have the same error.
The application does get deployed to the simulator and runs. However, console.log() output does not get displayed in the WebIDE Console.
For the location of the error message, see the screenshot below
My Firefox Version is - 42.0a1 (2015-07-16)
This is running on Ubuntu 14.04 x64.
When I click on the Troubleshooting link, I can't find any tips for troubleshooting a simulator.
Any ideas?
The steps I followed were:
Open WebIDE. Terminal output:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Start Firefox OS 2.0 simulator, simulator displays. Terminal output:
console.log: Connection status changed: connecting
console.log: Connection status changed: connected
Project >> Open Packaged App, and select my application. No Terminal output.
Project >> Install and Run. Application displays on simulator. Terminal output:
console.log: Installing app from /home/snowch/tmp/Scratch/myapp/hw_chs
console.log: Starting bulk upload
console.log: File size: 14253
console.log: Bulk upload done
After about 10 seconds the error message is shown as per the screenshot.
Update
The jconsole error messages:
Simulating large screen devices (Operation timed out: installing and running app)
Simulating small screen devices, after clicking on the spanner (Operation timed out: opening toolbox)
It looks like you've run into several bugs with older simulator versions.
For the issue with app install when the screen is set to Via Vixen, I filed bug 1186929. For myself, it only reproduced on 2.0, but please comment in that bug if you have more specifics.
For the "opening toolbox" issue, I believe that is a compatibility problem that needs to be resolved with older simulators, which is bug 1161131.
I tried asking several times in the comments above if you ever actually see the toolbox appear, or if you just get error messages. It would still help to know the answer here.
As a workaround, you should be able to use Simulator 2.2 or later to avoid these issues until they are resolved.
The last time I had my Windows Store app open (last night), I had a XAML error in it. I (tried to) open it tonight to try to fix it, but got all kinds of errors about things not being able to be loaded. Here are the important excerpts from the ActivityLog.xml file:
460
2014/12/25 01:39:17.198
Error
VisualStudio
SetSite failed for package [LocalHistoryPackage]
{3A6E8827-8C64-42EC-B83A-9CA32DA7BBF5}
80131500
No exports were found that match the constraint:
ContractName Microsoft.VisualStudio.Text.ITextDocumentFactoryService
RequiredTypeIdentity Microsoft.VisualStudio.Text.ITextDocumentFactoryService
. . .
935
2014/12/25 01:43:39.091
Error
VisualStudio
SetSite failed for package [LocalHistoryPackage]
{3A6E8827-8C64-42EC-B83A-9CA32DA7BBF5}
80131500
No exports were found that match the constraint:
ContractName
Microsoft.VisualStudio.Text.ITextDocumentFactoryService
RequiredTypeIdentity
Microsoft.VisualStudio.Text.ITextDocumentFactoryService
. . .
937
2014/12/25 01:43:39.092
Warning
VisualStudio
Package failed to load; error message suppressed by skip flag
{3A6E8827-8C64-42EC-B83A-9CA32DA7BBF5}
. . .
966
2014/12/25 01:43:52.147
Error
VisualStudio
SetSite failed for package [Microsoft.VisualStudio.Editor.Implementation.EditorPackage]
{E269B994-EF71-4CE0-8BCD-581C217372E8}
80131500
No exports were found that match the constraint:
ContractName
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
RequiredTypeIdentity
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
I shut VS down, reopened it and the project and, although I didn't see all those err msgs, and the project was ostensibly open, there was nothing in the Solution Explorer (no files displayed). I tried opening MainPage via File > Open, but that just resulted in another err msg.
The only other thing that changed the last time I had the project open was that I updated SQLite from version 3.8.7.1 to 3.8.7.2
What could be the solution (no pun intended)?
UPDATE
On trying to shut down Visual Studio, I got over and over again: "No exports were found that match the constraint...(bla bla bla)" until I had to stop it via Ctrl+Alt+Del
UPDATE 2
Here's what's even more bizarre: I can open the project and, although Solution Explorer is completely empty/no files
visible, if I build the project via Ctrl+Shift+B, it does give me the errors in the Error List (XAML errors in MainPage.xaml).
2-clicking them brings up nothing in the editor, though.
If I try to open MainPage.xaml, I get this:
But, although I just saved this file (the screen shot above), the date on it is 10/19/2014 - more than two months in the past. What the...?!?
What must I do to get this back to normal?
UPDATE 3
I do see this with the Team Explorer tab open (this app is not under version control):
Page '3185ed96-1cbd-4381-a439-636973542e50' not found.
I fixed the XAML issue by opening MainPage.xaml in Notepad ++ and changing the XAML around. I was then able to successfully build the app in Visual Studio, but trying to run the app caused VS to crash and then start up again (still with no files in Solution Explorer).
UPDATE 4
Now I get, "Package Designer Package failed to load" when I try to open MainPage.xaml via File > Open in VS 2013...
UPDATE 5
Now I can run the app (sort of); F5 causes the splash screen to display, and then it just goes gray-black. When I Alt+F4 to shut that down, VS starts back up again (apparently after shutting down - I intended to only shut down my running app, not Visual Studio.
AutoHistory tells me:
An exception was encountered while constructing the content of this frame. This information is also logged in "C:\Users\Clay\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml".
Exception details:
System.Exception: Exception of type 'System.Exception' was thrown.
at Microsoft.VisualStudio.Shell.Interop.IVsShell5.LoadPackageWithContext(Guid& packageGuid, Int32 reason, Guid&
context)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.GetPackage()
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()
Anyway, I then notice that I do have a (literal) red flag, and mashing it shows me an "Renew your developer license" message.
I was able to update my dev license, but my solution is still wacky in the same ways as before.
UPDATE 6
Answering Walt Ritscher, I get this in AutoHistory on starting VS (no solution opened):
An exception was encountered while constructing the content of this frame. This information is also logged in "C:\Users\Clay\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml".
Exception details:
System.Exception: Exception of type 'System.Exception' was thrown.
at Microsoft.VisualStudio.Shell.Interop.IVsShell5.LoadPackageWithContext(Guid& packageGuid, Int32 reason, Guid& context)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.GetPackage()
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()
Then, when opening another project that was working fine the last time I had it open, it, too, shows no files in the Solution Explorer. If I try to run it, I get that same "No exports were found" err msg.
So VS itself is hosed, it seems. What need I do? Uninstall/reinstall?
It seems likely that your VS install is hosed. You can try a repair first, before doing a reinstall.
last week I have faced the similar problem with my Visual Studio . I think these problems occurs due to the Pc Cleaners/Pc problem fixer and others like that. I just reinstalled the windows and visual studio and the same code executed fine.
So VS itself is hosed, it seems. What need I do? Uninstall/reinstall?
I would definitely try that. However, first I would copy the project to another machine with VS installed and try there. If it works on another machine then there is a problem on the first machine, possibly VS, possibly some extension or add-in. If it doesn't work on another machine then there is a problem with the code.
I usually use trigger.io to generate my ipa-Files for iOS. Now when I want to generate the file, I get the following error message:
Failed when running /usr/bin/codesign: codesign_allocate: object: /Users/mherceg/Desktop/ag-app/development/ios/device-ios.app/Forge malformed object (unknown load command 39)
/Users/mherceg/Desktop/ag-app/development/ios/device-ios.app: object file format unrecognized, invalid, or unsuitable
It worked yesterday, but now it doesn't. Any help is very welcome.
Thanks,
enne
This is probably to do with v1.4.16 of our platform, where we switched over to building on Xcode 4.5: I'd recommend upgrading Xcode and make sure the Command-line Tools (Preferences ↦ Downloads) are installed.
Hello i am getting the following error when I am running my app in the simulator.
LLVM ERROR: Cannot yet select: ...
It seems that other have reported similar issues for the same combo:
* New sandy bridge MBP
* Iphone 4.3 Simulator
* opengl
Anyone have some clue?
Here is a short excerpt from the log:
LLVM ERROR: Cannot yet select: 0xa0237d8: v16i8 = bit_convert 0xa02aa48 [ORD=259] [ID=170]
0xa02aa48: v8i16 = X86ISD::PSHUFLW 0xa02a828, 0xa02a608 [ID=166]
0xa02a828: v8i16 = X86ISD::PSHUFHW 0xa0235b8, 0xa02a608 [ID=162]
0xa0235b8: v8i16 = llvm.x86.sse2.packssdw.128 0xa023530, 0xa0234a8, 0xa023420 [ORD=256] [ID=158]
0xa023530: i32 = Constant<647> [ORD=256] [ID=21]
0xa0234a8: v4i32 = bit_convert 0xa023310 [ORD=255] [ID=139]
0xa023310: v4f32 = llvm.x86.sse.cmp.ps 0xa023200, 0xa028d70, 0xb03c4e8, 0xa023288 [ORD=252] [ID=130]
0xa023200: i32 = Constant<784> [ORD=252] [ID=19]
I'm getting this same error. I just got the new sandy bridge MBP today, and on my previous computer, I do not have this problem.
Changing the target to iPad 4.2 instead of iPad 4.3 resolves the issue.
Here's how to change the target in the new version of Xcode:
http://developer.apple.com/library/mac/#documentation/IDEs/Conceptual/Xcode4TransitionGuide/Orientation/Orientation.html
I had the same Error on my MacBook Pro Intel Core i7 in the 4.3 simulator. I updated to Xcode 4.0.2 and now its working again.
This means that LLVM cannot do the instruction selection for some code. Usually this happens when you request some target-specific stuff in the code and disable the features via cmdline.
For example, if you'll use sse2 gcc intrinsics, but will compile for, say, i486, the same sort of message might occur (if not caught earlier by a frontend).
It's hard to say anything more definite without the full error line.
I had the same situation. It looks like a bug of LLVM 2.8 for the new sandy bridge. The work around is to use 4.2 simulator as NoEvilPeople said.
OpenGL apps exit in 4.3 Sim but work...
MacRuby build issues with LLVM
Attempt to force LLVM to treat sandy bridge as core2
In case this helps anyone, I was having the same problem too, but don't have the older SDK for the other fix here. Kazuki posted a link to a discussion over at Apple, and it looks like its a bug that a few people have reported, but that it has something to do with the simulator. That being said, the app I was having a problem with runs fine on-device for me, so that's another potential workaround while this is looked at more.