Anyone can prove JNI is safe? My application crashes after many calls.
I heard that JNI is not safe. In fact I made an application base on many JNI calls.
C level is API supplied by IBM. And I was told the C API is tested and safe.
Java application and JNI calls is writen by myself. It crashed after about 3000 times call. I tried other JDK and other OS. On some platform, the thread hold there after many calls. No error, no crash. But others crashed even early.
Here's my JNI call's code:
JNIEXPORT void JNICALL Java_com_ibm_mm_sdk_cim_internal_PServiceFACImp_cEvaluate
(JNIEnv *env, jclass jobj, jlong jhandle, jstring jmanualedListFilename, jstring jclassedListFileName, jstring jresultFilename){
char *manualedListFilename = jstringToWindows(env, jmanualedListFilename);
char *classedListFileName = jstringToWindows(env, jclassedListFileName);
char *resultFilename = jstringToWindows(env, jresultFilename);
int rc; // API return code
void* handle; // FAC Handle
// convert C pointer from java long type
handle = (void*)jhandle;
rc = KmFAC_Evaluate(
handle, // FAC Handle
(char*)manualedListFilename, // File name of list of files
(char*)classedListFileName, // File name of list of files
(char*)resultFilename // Result file
if (manualedListFilename)
free(manualedListFilename);
if (classedListFileName)
free(classedListFileName);
if (resultFilename)
free(resultFilename);
if (rc != KM_RC_OK) {
//Throw exception
jclass exceptClass; // JNI exception class
char errorMsg[256]; // Used to build error msg for exceptions
jmethodID methodid; // Exception constructor method id
sprintf(errorMsg, "KmFAC_Evaluate() [CKM=%d]", (int)rc);
exceptClass = env->FindClass("com/ibm/mm/sdk/cim/DKServiceExceptionCIM");
methodid = env->GetMethodID(exceptClass,"<init>","(Ljava/lang/String;II)V");
jstring str = env->NewStringUTF(errorMsg);
jthrowable excobj = (jthrowable)env->NewObject(exceptClass,methodid,str,100, (int)rc);
env->Throw(excobj);
return;
I agree with fury88. Try the code below it works fine!
// **************** Java portion ************************
public class Test {
// Load the dll that exports functions callable from java
static {System.loadLibrary("TestImp");}
// Imported function declarations
public native void print(String msg);
public void Test() {
public static void main(String [] args) {
Test t = new Test();
// Printf example
t.print("->Testing JNI - Hello from c++\n");
// **************** Windows portion - TestImp.dll **********************
// Exported function
JNIEXPORT void JNICALL Java_Test_print(JNIEnv *env, jobject obj, jstring msg)
const char *str = env->GetStringUTFChars(msg, 0);
printf("%s\n", str);
env->ReleaseStringUTFChars(msg, str);
// Entry point
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
switch(ul_reason_for_call)
case DLL_PROCESS_ATTACH:
return TRUE;
case DLL_PROCESS_DETACH:
return TRUE;
return TRUE;
}
Similar Messages
-
Still can't sign into icloud in system preferences after many calls with support. Beyond frustrated!
Do you have 2-step verification on for your Apple ID? I may have a solution.
When I upgraded to Yosemite and subsequently updated my Apple ID, I would get errors when I tried to sign into iMessage and FaceTime using my apple ID (and my new password), I similarly was not able to sign in. On FaceTime, I would get errors like "unable to sign in at this time" or some times just nothing at all (the spinning 'processing' graphic would grind away until it presumably just timed out).
Turns out that I enabled 2-step notification on for my Apple ID (totally forgot about it, I set it up a couple years ago), and apparently the regular Apple ID password that you choose is not usable when you try to log in to iMessage or FaceTime through the programs themselves (intuitively, this makes sense since these programs do not have a way to prompt you for the "2nd step" code).
To solve, you have to log in to your Apple ID online (appleid.apple.com or whatever), and look for the option to "Generate App-Specific Passwords". These are unique, random passwords which are made to work around issues like these since they can be used in iMessage or FaceTime or what not. This is the same idea as to what you have to do to log into gmail on your iPhone if you have Google 2-step verification on.
This solved my issue (after lots of swearing and hair pulling!). Would have been nice if a I got some sort of warning when updating my Apple ID password that "Hey, you have 2-step enabled. Go make some app-specific passwords or you will lose 5 hours of your life trying to solve this mystery"
Hopefully this may solve yours -
Can't see EJB objects in Application Navigator after migration
Hello
I can't see any objects in Application Navigator after migration from previous version of JDeveloper (9.2.0.5), in System Navigator view I can see all sources. Has somebody any idea what the reason is?
TomIn the application navigator you should see one node per EJB, when you stand on it you'll see the various source files in the structure window.
-
Application crashes after IOS 5
Application crashes after installing IOS 5
OK, thanks for sharing that information.
Now, how about more details, assuming you are looking for assistance, here, such as the name of the application? It's impossible for anyone here to offer even a guess with so little to go on. Have you checked for an update to said app, or contacted the developer to ask for help?
Regards. -
Applications Crashing After Installing New Softwarre
Hi Folks,
Just wondering if anyone can help with an issue I'm having. After installing certain software (1st time this happened it was Skype, 2nd time it was Google Earth), applications such as Safari and Firefox crash when I either go to Print or Page setup within those applications.
When I use the Disk Utility (Verify Disk) it says:
Verifying volume “Macintosh HD”
Checking HFS Plus volume.
Checking Extents Overflow file.
Checking Catalog file.
Invalid sibling link
The volume Macintosh HD needs to be repaired.
Error: The underlying task reported failure on exit
1 HFS volume checked
Volume needs repair
At this point Repair Disk is not an option. If I wipe the drive and reinstall OSX from the install dvd the disk is fine. This makes me think it is a software issue, but it is hard for me to identify what exactly is going on. This is a new system, only a few months old, so I am hoping it isn't a hardware issue.
I've pasted in the Problem Report from Safari below.
At any rate, any insight would be greatly appreciated!
Cheers,
Ryan
Date/Time: 2007-07-22 14:48:52.594 -0400
OS Version: 10.4.10 (Build 8R2232)
Report Version: 4
Command: Safari
Path: /Applications/Safari.app/Contents/MacOS/Safari
Parent: WindowServer [57]
Version: 2.0.4 (419.3)
Build Version: 13
Project Name: WebBrowser
Source Version: 4190300
PID: 219
Thread: 0
Exception: EXCBADACCESS (0x0001)
Codes: KERNPROTECTIONFAILURE (0x0002) at 0x00000020
Thread 0 Crashed:
0 com.apple.CoreFoundation 0x90848cc3 CFBundleGetFunctionPointerForName + 14
1 ...apple.print.framework.Print 0x92cc8546 PJCPrepareAppKitPageSetupDialog + 74
2 ...apple.print.framework.Print 0x92cc9868 PMPrepareAppKitPageSetupDialog + 98
3 com.apple.AppKit 0x93671cfd -[NSPageLayout beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:] + 213
4 com.apple.AppKit 0x93601030 -[NSDocument runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo:] + 230
5 com.apple.AppKit 0x93600eeb -[NSDocument runPageLayout:] + 117
6 com.apple.AppKit 0x9335fd88 -[NSApplication sendAction:to:from:] + 107
7 com.apple.Safari 0x0002b083 0x1000 + 172163
8 com.apple.AppKit 0x9340dce7 -[NSMenu performActionForItemAtIndex:] + 455
9 com.apple.AppKit 0x9340da29 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 103
10 com.apple.AppKit 0x9333ee16 _NSHandleCarbonMenuEvent + 477
11 com.apple.AppKit 0x932727fc _DPSNextEvent + 1491
12 com.apple.AppKit 0x93272056 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 137
13 com.apple.Safari 0x00006cea 0x1000 + 23786
14 com.apple.AppKit 0x9326bddb -[NSApplication run] + 512
15 com.apple.AppKit 0x9325fd2f NSApplicationMain + 573
16 com.apple.Safari 0x0005f54a 0x1000 + 386378
17 com.apple.Safari 0x0005f471 0x1000 + 386161
Thread 1:
0 libSystem.B.dylib 0x90009cd7 machmsgtrap + 7
1 com.apple.CoreFoundation 0x9082d2b3 CFRunLoopRunSpecific + 2014
2 com.apple.CoreFoundation 0x9082cace CFRunLoopRunInMode + 61
3 com.apple.Foundation 0x92829d3a -[NSRunLoop runMode:beforeDate:] + 182
4 com.apple.Foundation 0x92829c36 -[NSRunLoop run] + 75
5 com.apple.WebKit 0x94d30d29 +[WebFileDatabase _syncLoop:] + 198
6 com.apple.Foundation 0x927f42e0 forkThreadForFunction + 123
7 libSystem.B.dylib 0x90024227 pthreadbody + 84
Thread 2:
0 libSystem.B.dylib 0x90009cd7 machmsgtrap + 7
1 com.apple.CoreFoundation 0x9082d2b3 CFRunLoopRunSpecific + 2014
2 com.apple.CoreFoundation 0x9082cace CFRunLoopRunInMode + 61
3 com.apple.Foundation 0x92829a0f +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 259
4 com.apple.Foundation 0x927f42e0 forkThreadForFunction + 123
5 libSystem.B.dylib 0x90024227 pthreadbody + 84
Thread 3:
0 libSystem.B.dylib 0x90009cd7 machmsgtrap + 7
1 com.apple.CoreFoundation 0x9082d2b3 CFRunLoopRunSpecific + 2014
2 com.apple.CoreFoundation 0x9082cace CFRunLoopRunInMode + 61
3 com.apple.Foundation 0x92850bc2 +[NSURLCache _diskCacheSyncLoop:] + 206
4 com.apple.Foundation 0x927f42e0 forkThreadForFunction + 123
5 libSystem.B.dylib 0x90024227 pthreadbody + 84
Thread 4:
0 libSystem.B.dylib 0x9001a1cc select + 12
1 libSystem.B.dylib 0x90024227 pthreadbody + 84
Thread 5:
0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
1 com.apple.Foundation 0x9284a26c -[NSConditionLock lockWhenCondition:] + 39
2 com.apple.Syndication 0x999f4966 -[AsyncDB _run:] + 181
3 com.apple.Foundation 0x927f42e0 forkThreadForFunction + 123
4 libSystem.B.dylib 0x90024227 pthreadbody + 84
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x92cc850a ecx: 0xa0813d04 edx: 0x11fda030
edi: 0xa2cc6244 esi: 0x00000000 ebp: 0xbffff278 esp: 0xbffff260
ss: 0x0000001f efl: 0x00010286 eip: 0x90848cc3 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
Binary Images Description:
0x1000 - 0xdbfff com.apple.Safari 2.0.4 (419.3) /Applications/Safari.app/Contents/MacOS/Safari
0x1fa000 - 0x1fbfff com.apple.textencoding.unicode 2.1 /System/Library/TextEncodings/Unicode Encodings.bundle/Contents/MacOS/Unicode Encodings
0xe495000 - 0xe9b8fff com.macromedia.Flash Player.plugin 9.0.28 (1.0.4f22) /Library/Internet Plug-Ins/Flash Player.plugin/Contents/MacOS/Flash Player
0x8fe00000 - 0x8fe4afff dyld 46.12 /usr/lib/dyld
0x90000000 - 0x90171fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x901c1000 - 0x901c3fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x901c5000 - 0x90202fff com.apple.CoreText 1.1.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
0x90229000 - 0x902fffff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
0x9031f000 - 0x90774fff com.apple.CoreGraphics 1.258.75 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
0x9080b000 - 0x908d3fff com.apple.CoreFoundation 6.4.7 (368.28) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x90911000 - 0x90911fff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90913000 - 0x90a07fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a57000 - 0x90ad6fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90aff000 - 0x90b63fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
0x90bd2000 - 0x90bd9fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x90bde000 - 0x90c51fff com.apple.framework.IOKit 1.4.8 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90c66000 - 0x90c78fff libauto.dylib /usr/lib/libauto.dylib
0x90c7e000 - 0x90f24fff com.apple.CoreServices.CarbonCore 682.26 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
0x90f67000 - 0x90fcffff OSServices /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
0x91008000 - 0x91046fff com.apple.CFNetwork 129.20 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
0x91059000 - 0x91069fff com.apple.WebServices 1.1.3 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
0x91074000 - 0x910f3fff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
0x9112d000 - 0x9114bfff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
0x91157000 - 0x91165fff libz.1.dylib /usr/lib/libz.1.dylib
0x91168000 - 0x91307fff com.apple.security 4.5.2 (29774) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x91405000 - 0x9140dfff com.apple.DiskArbitration 2.1.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x91414000 - 0x9141bfff libbsm.dylib /usr/lib/libbsm.dylib
0x9141f000 - 0x91445fff com.apple.SystemConfiguration 1.8.6 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
0x91457000 - 0x914cdfff com.apple.audio.CoreAudio 3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x9151e000 - 0x9151efff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
0x91520000 - 0x9154cfff com.apple.AE 314 (313) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
0x9155f000 - 0x91633fff com.apple.ColorSync 4.4.9 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
0x9166e000 - 0x916e1fff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
0x9170f000 - 0x917b8fff com.apple.QD 3.10.24 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
0x917de000 - 0x91829fff com.apple.HIServices 1.5.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
0x91848000 - 0x9185efff com.apple.LangAnalysis 1.6.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
0x9186a000 - 0x91885fff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
0x91890000 - 0x918cdfff com.apple.LaunchServices 182 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
0x918e1000 - 0x918edfff com.apple.speech.synthesis.framework 3.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x918f4000 - 0x91934fff com.apple.ImageIO.framework 1.5.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
0x91947000 - 0x919f9fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x91a3f000 - 0x91a55fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x91a5a000 - 0x91a78fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91a7d000 - 0x91adcfff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91aee000 - 0x91af2fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91af4000 - 0x91b7afff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91b7e000 - 0x91bbbfff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91bc1000 - 0x91bdbfff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91be0000 - 0x91be2fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91be4000 - 0x91cc2fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x91cdf000 - 0x91cdffff com.apple.Accelerate 1.3.1 (Accelerate 1.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91ce1000 - 0x91d6ffff com.apple.vImage 2.5 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
0x91d76000 - 0x91d76fff com.apple.Accelerate.vecLib 3.3.1 (vecLib 3.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
0x91d78000 - 0x91dd1fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
0x91dda000 - 0x91dfefff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
0x91e06000 - 0x9220ffff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
0x92249000 - 0x925fdfff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
0x9262a000 - 0x92717fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x92719000 - 0x92796fff com.apple.DesktopServices 1.3.6 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
0x927d7000 - 0x92a07fff com.apple.Foundation 6.4.8 (567.29) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92b21000 - 0x92b38fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92b43000 - 0x92b9bfff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92baf000 - 0x92baffff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x92bb1000 - 0x92bc1fff com.apple.ImageCapture 3.0.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
0x92bd0000 - 0x92bd8fff com.apple.speech.recognition.framework 3.6 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
0x92bde000 - 0x92be4fff com.apple.securityhi 2.0.1 (24742) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
0x92bea000 - 0x92c7bfff com.apple.ink.framework 101.2.1 (71) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
0x92c8f000 - 0x92c93fff com.apple.help 1.0.3 (32.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
0x92c96000 - 0x92cb4fff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
0x92cc6000 - 0x92cccfff com.apple.print.framework.Print 5.2 (192.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
0x92cd2000 - 0x92d35fff com.apple.htmlrendering 66.1 (1.1.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
0x92d5c000 - 0x92d9dfff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
0x92dc4000 - 0x92dd2fff com.apple.audio.SoundManager 3.9.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
0x92dd9000 - 0x92ddefff com.apple.CommonPanels 1.2.3 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
0x92de3000 - 0x930d8fff com.apple.HIToolbox 1.4.9 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
0x931de000 - 0x931e9fff com.apple.opengl 1.4.16 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x931ee000 - 0x93209fff com.apple.DirectoryService.Framework 3.2 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
0x93259000 - 0x93259fff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x9325b000 - 0x93911fff com.apple.AppKit 6.4.8 (824.42) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x93c92000 - 0x93d0dfff com.apple.CoreData 91 (92.1) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x93d46000 - 0x93e00fff com.apple.audio.toolbox.AudioToolbox 1.4.5 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x93e43000 - 0x93e43fff com.apple.audio.units.AudioUnit 1.4.2 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x93e45000 - 0x94006fff com.apple.QuartzCore 1.4.12 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x9404c000 - 0x9408dfff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
0x94095000 - 0x940cffff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
0x940d4000 - 0x940eafff com.apple.CoreVideo 1.4 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x94182000 - 0x941c0fff com.apple.vmutils 4.0.2 (93.1) /System/Library/PrivateFrameworks/vmutils.framework/Versions/A/vmutils
0x94204000 - 0x94215fff com.apple.securityfoundation 2.2.1 (28150) /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
0x94223000 - 0x94261fff com.apple.securityinterface 2.2.1 (27695) /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
0x9427d000 - 0x9428cfff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x94293000 - 0x9429efff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x942ea000 - 0x94304fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x9430a000 - 0x94609fff com.apple.QuickTime 7.1.6 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
0x9478b000 - 0x948d1fff com.apple.AddressBook.framework 4.0.5 (487) /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
0x9495d000 - 0x9496cfff com.apple.DSObjCWrappers.Framework 1.1 /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
0x94973000 - 0x9499cfff com.apple.LDAPFramework 1.4.2 (69.1.1) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
0x949a2000 - 0x949b1fff libsasl2.2.dylib /usr/lib/libsasl2.2.dylib
0x949b5000 - 0x949dafff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
0x949e6000 - 0x94a03fff libresolv.9.dylib /usr/lib/libresolv.9.dylib
0x94d2e000 - 0x94dc1fff com.apple.WebKit 419.2.1 /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
0x94e1b000 - 0x94e9dfff com.apple.JavaScriptCore 418.3 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/JavaScriptCor e.framework/Versions/A/JavaScriptCore
0x94ed6000 - 0x951b5fff com.apple.WebCore 418.22.2 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
0x95334000 - 0x95357fff libxslt.1.dylib /usr/lib/libxslt.1.dylib
0x96ef0000 - 0x96f04fff com.apple.audio.CoreAudioKit 1.0.1 /System/Library/Frameworks/CoreAudioKit.framework/Versions/A/CoreAudioKit
0x999f2000 - 0x99a29fff com.apple.Syndication 1.0.6 (54) /System/Library/PrivateFrameworks/Syndication.framework/Versions/A/Syndication
0x99a45000 - 0x99a57fff com.apple.SyndicationUI 1.0.6 (54) /System/Library/PrivateFrameworks/SyndicationUI.framework/Versions/A/Syndicatio nUI
Model: iMac5,1, BootROM IM51.0090.B08, 2 processors, Intel Core 2 Duo, 2 GHz, 2 GB
Graphics: ATI Radeon X1600, ATY,RadeonX1600, PCIe, 128 MB
Memory Module: BANK 0/DIMM0, 1 GB, DDR2 SDRAM, 667 MHz
Memory Module: BANK 1/DIMM1, 1 GB, DDR2 SDRAM, 667 MHz
AirPort: spairportwireless_card_type_airportextreme (0x14E4, 0x87), Broadcom BCM43xx 1.0 (4.80.79.1)
Bluetooth: Version 1.9.0f8, 2 service, 1 devices, 1 incoming serial ports
Network Service: Built-in Ethernet, Ethernet, en0
Serial ATA Device: ST3500641AS Q, 465.76 GB
Parallel ATA Device: MATSHITADVD-R UJ-85J
USB Device: Built-in iSight, Micron, Up to 480 Mb/sec, 500 mA
USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 500 mA
USB Device: Apple Optical USB Mouse, Primax Electronics, Up to 1.5 Mb/sec, 100 mA
USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 250 mA
USB Device: Bluetooth USB Host Controller, Apple, Inc., Up to 12 Mb/sec, 500 mA
USB Device: IR Receiver, Apple Computer, Inc., Up to 12 Mb/sec, 500 mA
Imac 5.1 Mac OS X (10.4.10)Hi Teoryan, Welcome to Apple Discussions.
After installing new software you should repair permissions
Repair Permissions: This should be done after all software installs and updates.
1. Navigate to Utilities/DiskUtility and launch Disk Utility.
2. Choose your volume (usually the second icon)
3. Choose "First Aid" tab
4. Click on "Repair Permissions"
(that's an aside).
The reason your "Repair Disk" is grayed out is that you cannot repair a disk if you are booted from it. The disk cannot be "mounted" during the repair process. What you need to do is boot from your CD/DVD:
Also run "verify" disk. If the disk needs repair:
Repair Disk:
Steps for using Disk Utility
1. Insert the Mac OS X Tiger Install disc or Install Disk 1 that came with your computer, then restart the computer while holding the C key.
2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.) Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
3. Click the First Aid tab.
4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
5. Select your Mac OS X volume.
6. Click Repair.
If you repair errors run it until no errors found.
Let us know the results.
-mj
[email protected]
Message was edited by: macjack -
Applications crashing after 10.8.4 update
I've had multiple applications crashing either immediately on opening or within a few seconds. Apps include Mail, Safari, Chrome, Numbers, Pages and others. This seems to coincide roughly with updating to 10.8.4.
I've restored from Time Machine Backups 3 times, re-installed Mountain Lion (and 10.8.4) from scratch at least once, ran Disk Repair and Repair Permissions from the recovory parition multiple times. After a restore or re-install, the problem appears to go away for couple of days but then rears it's head again. I've ran a full scan of the HD using Drive Genius and it seems fine (hard drive is not original, 750 GB Seagate Momentus XT, the "hybrid" version). I've also downloaded the free version of Norton AV and scans fine as well.
I have and use Drive Genius but I've no way to test hardware such as RAM and such. Just wondering if there's any *free* hardware utilities that can fully test the CPU, RAM, etc. Need to get to the bottom of this....this 13" MacBook Pro is not even a year old. Needing to know if I've got a failing HD or if it goes deeper than that.
TerryPlease read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test. -
Applications Crash After Use Of Open/Save/Pick File or Folder Dialog
Hi, all.
This has been a problem since I installed 10.6 (the day it was released).
The 10.6.1 helped somewhat, but this is still a real problem.
I'll describe what happnes:
I'll be in a program (any program: MS Word, TextEdit, Safari, anything) and I'll use any of the following dialogs:
-Open
-Save Pick
--a-file
-Pick-a-folder
or anything like that.
Then, never during the time I'm using the dialog, always soon (there's often a delay of a few seconds) afterward, I'll get a message saying that the program quit unexpectedly. It says that an error report has been sent, and gives me the option the reopen the program or ignore the quit. (Except MS Word; it has it's own error reporting system).
Now, this is a BAD program because it happens when I save something.
It is important for me to note that this doesn't happen all the time. Some programs seem more stable than others, and some file formats (the one I select) stabler than others. Also, it seems that (at least with Safari) I can do things to reduce the likelihood of this crash happening. Sometimes opening using Rosetta helps. Sometimes 64-Bit helps. Sometimes disabling the cache helps.
It all seems pretty random.
Bottom line: this is REALLY annoying, especially when it occurs after use of the save dialog. Apple needs to fix this.
Is there a way for me to fix this myself?
Apple Hardware Test comes out clean. No problems with my startup disk, as far as I know.
It is nice to have QuickLook available in these dialogs, but if that's what's causing the problem, it'd be worth it to me to disable it. Any way to do that, just to try?
Anyone have any other ideas?
Thanks!
-NateThanks for the reply and info!
All right, so I found crash reports for each recent such crash.
Here's the most recent one, caused by either an open or a save (I can't remember which) dialog. I think I clicked Cancel on that dialog, but it crashed anyway. Here's the part of the log you mentioned (Sorry for the links in that, they aren't supposed to be there, and I sure didn't make them myself):
The .crash file can be found here.
Process: TextEdit [550]
Path: /Applications/TextEdit.app/Contents/MacOS/TextEdit
Identifier: com.apple.TextEdit
Version: 1.6 (264)
Build Info: TextEdit-2640000~1
Code Type: X86-64 (Native)
Parent Process: launchd [93]
Date/Time: 2009-10-10 08:09:47.315 -0700
OS Version: Mac OS X 10.6.1 (10B504)
Report Version: 6
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Application Specific Information:
abort() called
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff85b7eff6 __kill + 10
1 libSystem.B.dylib 0x00007fff85c20072 abort + 83
2 libSystem.B.dylib 0x00007fff85b37095 free + 128
3 com.apple.DesktopServices 0x00007fff8571fcbe TFSInfo::~TFSInfo() + 38
4 com.apple.DesktopServices 0x00007fff85720195 TFSInfo::RemovePtrReference() + 37
5 com.apple.DesktopServices 0x00007fff85738114 TNode::IsUnresolved() const + 52
6 com.apple.DesktopServices 0x00007fff8572cc40 TNode::SetAliasTarget(TNodePtr const&, bool) + 246
7 com.apple.DesktopServices 0x00007fff8575c185 TNode::ClearAliasTarget(bool) const + 55
8 com.apple.DesktopServices 0x00007fff8575ceca TNode::RemoveSelf(TNodeEventPtrSet&) + 170
9 com.apple.DesktopServices 0x00007fff8575d347 TNode::RemoveAllChildren(bool, TNodeEventPtrSet&) + 473
10 com.apple.DesktopServices 0x00007fff8575d400 TNode::RecursivelyRemoveAllChildren(bool) const + 72
11 com.apple.DesktopServices 0x00007fff8575dc8a TNode::Finalize(TNodePtr*&) + 58
12 com.apple.DesktopServices 0x00007fff8575df09 TNode::Finalize() + 229
13 com.apple.DesktopServices 0x00007fff85775dd4 NodeContextClose + 466
14 com.apple.AppKit 0x00007fff8645e73b _NSSavePanelContextEnd + 66
15 com.apple.Foundation 0x00007fff8003b500 __NSFireDelayedPerform + 404
16 com.apple.CoreFoundation 0x00007fff82207a78 __CFRunLoopRun + 5480
17 com.apple.CoreFoundation 0x00007fff8220603f CFRunLoopRunSpecific + 575
18 com.apple.HIToolbox 0x00007fff8315dc4e RunCurrentEventLoopInMode + 333
19 com.apple.HIToolbox 0x00007fff8315da53 ReceiveNextEventCommon + 310
20 com.apple.HIToolbox 0x00007fff8315d90c BlockUntilNextEventMatchingListInMode + 59
21 com.apple.AppKit 0x00007fff85db1520 _DPSNextEvent + 718
22 com.apple.AppKit 0x00007fff85db0e89 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
23 com.apple.AppKit 0x00007fff85d76a7d -[NSApplication run] + 395
24 com.apple.AppKit 0x00007fff85d6f798 NSApplicationMain + 364
25 com.apple.TextEdit 0x0000000100000fb8 0x100000000 + 4024
Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x00007fff85b49b16 kevent + 10
1 libSystem.B.dylib 0x00007fff85b4ba19 dispatch_mgrinvoke + 154
2 libSystem.B.dylib 0x00007fff85b4b6d6 dispatch_queueinvoke + 195
3 libSystem.B.dylib 0x00007fff85b4b1f6 dispatch_workerthread2 + 244
4 libSystem.B.dylib 0x00007fff85b4ab28 pthreadwqthread + 353
5 libSystem.B.dylib 0x00007fff85b4a9c5 start_wqthread + 13
Thread 2:
0 libSystem.B.dylib 0x00007fff85b4a94a _workqkernreturn + 10
1 libSystem.B.dylib 0x00007fff85b4ad5c pthreadwqthread + 917
2 libSystem.B.dylib 0x00007fff85b4a9c5 start_wqthread + 13
Thread 3:
0 libSystem.B.dylib 0x00007fff85b4a94a _workqkernreturn + 10
1 libSystem.B.dylib 0x00007fff85b4ad5c pthreadwqthread + 917
2 libSystem.B.dylib 0x00007fff85b4a9c5 start_wqthread + 13
Thread 4:
0 libSystem.B.dylib 0x00007fff85b749f2 select$DARWIN_EXTSN + 10
1 com.apple.CoreFoundation 0x00007fff82228252 __CFSocketManager + 818
2 libSystem.B.dylib 0x00007fff85b69f66 pthreadstart + 331
3 libSystem.B.dylib 0x00007fff85b69e19 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000004 rcx: 0x00007fff5fbfe2c8 rdx: 0x0000000000000000
rdi: 0x0000000000000226 rsi: 0x0000000000000006 rbp: 0x00007fff5fbfe2e0 rsp: 0x00007fff5fbfe2c8
r8: 0x0000000000000e03 r9: 0x0000000000000000 r10: 0x00007fff85b7b036 r11: 0x0000000000000206
r12: 0x0000000100847600 r13: 0x0000000100043000 r14: 0x0000000000000000 r15: 0x00000001001bad10
rip: 0x00007fff85b7eff6 rfl: 0x0000000000000206 cr2: 0x0000000100401000
And, now that you mention it, yes: there are aliases in the CrashReporter folder to some of the crash files in the DiagnosticReports folder. Oddly, only those that belong to AppleScript Editor are present.
As for the system.log:
Here's what happens right after one of the crashes (Again, sorry for the mystery links):
Oct 10 17:30:15 nathan-greensteins-macbook com.apple.launchd.peruser.501[97] ([0x0-0x36036].com.apple.TextEdit[463]): Job appears to have crashed: Segmentation fault
Oct 10 17:30:16 nathan-greensteins-macbook ReportCrash[546]: Saved crash report for TextEdit[463] version 1.6 (264) to /Users/ngreenst/Library/Logs/DiagnosticReports/TextEdit2009-10-10-173016nathan-greensteins-macbook.crash
So, what's a Segmentation Fault? That looks like the problem right there.
Thanks again!
-Nate -
Powerbuilder application crashes after upgrade to 12.5.2 (build 5006)
I have already seen few similar posts on this forum for similar issue. However, I feel mine is different from those and could be some basic steps am missing. Thanks in advance for any comments.
We are evaluating the effort and benefits of migrating our PB 10.2.1 (build 9731) application to PB 12.5 Classic. After downloading the trial version from the SAP site, I could migrate the application easily with only a handful of warnings. However, while running the application either from build (EXE) or from IDE, it crashes (windows application failure) frequently. In addition to that, few of our application screens opens as blank screen (doesn’t display anything in the DW attached).
My operating system is Windows 7 (32 bit) Service Pack 1. The application has many calls external DLLs (both windows standard and custom), as samples at the bottom. I believe that the correct (from PB 12.5) DLLs are copied to Powerbuilder home directory (C:\Software\Sybase\PowerBuilder 12.5 & C:\Software\Sybase\Shared\PowerBuilder) and the source code directory in my attempt to ensure that there are no issues with DLLs. However, initially I had installed powerbuilder 12.5 also under the same root as Power builder 10.0, but as I read few posts that DLLs from different version residing in same place can cause issues, uninstalled and installed PB 12.5 on different location.
Our PB application also interact with the .Net modules of the application by communicating through a custom DLL. However, that seems still working and I am able to open the .Net screens from the migrated application.
Below are the main scenarios in which the application crashes and every time I get a DLL error as given below.
1. While running the application from IDE and selecting ‘Exit’ from the main window. This will close any instantiated objects and close the mutex by calling the windows API.
function ulong CreateMutexA(ulong lpMutexAttributes, boolean bInitialOwner, ref string lpName) library "kernel32.dll" alias for "CreateMutexW" function ulong GetLastError() library "kernel32.dll" alias for "GetLastError;Ansi"
function ulong CloseHandle(ulong hMutex) library "kernel32.dll" alias for "CloseHandle;Ansi"
This will result in the below crash.
Faulting application name: PB125.EXE, version: 12.5.2.5006, time stamp: 0x50f93412
Faulting module name: kernel32.dll, version: 6.1.7601.17932, time stamp: 0x503275b9
Exception code: 0xc0000005 Fault offset: 0x0004c372
Faulting process id: 0x2bdc
Faulting application start time: 0x01cf3e72371227c9
Faulting application path: C:\Software\Sybase\PowerBuilder 12.5\PB125.EXE
Faulting module path: C:\Windows\system32\kernel32.dll
Report Id: 8feef8fc-aa65-11e3-8049-f500274aecdc
2. Opening of certain windows results in the below crash. If I try to debug the code and move mouse over the line of code being executed, then also I get the same crash. I don’t do the mouse move then I can proceed with the same line, however it will crash at a later line calling ‘classname’.
Problem Event Name: APPCRASH
Application Name: PB125.EXE
Application Version: 12.5.2.5006
Application Timestamp: 50f93412
Fault Module Name: PBVM125.dll
Fault Module Version: 12.5.2.5006
Fault Module Timestamp: 50f93437
Exception Code: c0000005
Exception Offset: 00175357
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 3081
Additional Information 1: 38ca
Additional Information 2: 38ca6ad0537dbd0555785bd862b8e94f
Additional Information 3: 0cd5
Additional Information 4: 0cd54a5b6672f15bf2ca366539d89c12
3. Few of the application screen opens but doesn’t display the datawindow attached to it.... many calls external DLLs (both windows standard and custom),
You have a very complex application and it is unlikely that you will receive much help in this type of setting. As Chris has already pointed out, previous efforts appear to have been done in a sloppy manner; something indicated by the ANSI qualifiers on API functions that are not needed or relevant. In addition, the PB alias of CreateMutexA for the API function CreateMutexW is also suggestive.
I believe that the correct (from PB 12.5) DLLs are copied to Powerbuilder home directory (C:\Software\Sybase\PowerBuilder 12.5 & C:\Software\Sybase\Shared\PowerBuilder)
You should be very very careful about doing things like this. One should not simply scatter DLLs across directories without very good reasons as it often leads to strange problems. On a machine with the IDE installed, you should allow PB to install everything where it wants them. Copying or moving files is something done as a last resort - it is certainly something that you need to document in case you need to undo it or redo it at a later time.
Lastly, you might reconsider attempting this with the trial version. I don't how "current" the trial version is but I suspect it might be a bit buggier than the most current maintenance build. I'm guessing that you will have to do a bit more than recompiling to get the functionality related to "opening .Net screens" working. It might help to try creating a new application and put in some basic functionality to interact with all of these external processes, screens, dlls, etc since I suspect this is where the bulk of your problems exist. -
Application crashes after closing LabVIEW instance with Scilab 5.2.2
I use LV 8.21 with the LabVIEW to Scilab Gateway software Version 1.1 (new version from NI homepage)
I have Scilab Version 5.2.2 installed. We will do some calculation with the LabVIEW Scilab script node.
Mainly use a call "exec (functionA,-1) Scilab script node. The functionA is a scriptfile outside of the application.
So far everything is working fine, I can build a LabVIEW application with the application builder.
If I run the application the calculation inside the Scilab script node are proceeding; I can call
it many times in a loop without no problem.
But if I close the instance (the VI with the Scilab script node inside) the application crashes.
The same problem I have in the LabVIEW development environment
Is there a way to "unload" Scilab before I close the VI without a crash. After the Scilab
calculation I have to close the calling VI and call some other VIs for further calculation
(but this VIs have no Scilab call)
I tried with the "exit" and "quit" command in Scilab script node, no success
any suggestion
Attachments:
scilab.GIF 5 KBHello
thanks for the advice. I tried with version 5.1.1 ... but no success!
So I went straight back to version 4.1.1 and it works fine, of course I had to remove the comments from the script node
So fare I can work with this version.
So what are the time schedule to fix this problem? It is a very useful tool an I would like to use the latest version of scilab and not an old version.
Thank you -
Application crashes after sometime using UIGetScreenImage()
Hi,
I've the following code to take the screenshots in iPhone:-
*+ (UIImage )imageWithScreenContents
* CGImageRef cgScreen = UIGetScreenImage();*
* if (cgScreen) {*
*UIImage *result = [UIImage imageWithCGImage:cgScreen];*
* CGImageRelease(cgScreen);*
*return result;*
*return nil;*
I'm calling the above code in a timer of 1/1.0 seconds as:
*[array addObject:[UIImage imageWithScreenContents]];*
where imagewithScreenContents is a function. But after some seconds i.e after adding 90 frames application crashes. I'm unable to understand the problem.
Can somebody help me in solving the problem ?
Thanks in Advance.Hi,
first please use the structure(without the minus sign in the parenthesis) below in order to
properly post code:
{-code}
Place code here!
{-code}
Second, I am no iPhone developer but still I think you need to be more careful what and when you
are releasing(especially with a timer). I myself have an application that uses multiple timers, so may
be this will be helpful(without seeng your actual error message can't tell for sure). My first clue would be to ask you how you create your array object and what do you do with it. The second one,
I am not sure if this is needed but can't you define a property called 'screenShotImage' or so and
give it value in your 'imageWithScreenContents' function? What I am trying to say is:
-(UIImage*) screenShotImage
return screenShotImage;
-(void) setScreenShotImage: (UIImage*) input
[screenShotImage release];
screenShotImage = [input retain];
and then in your imageWithScreenContents method:
[self setScreenShotImage: [UIImage imageWithCGImage: cgScreen]];
CGImageRelease(cgScreen);
I am pretty sure that you are not handling your memory allocation/deallocation properly, do a
little research on the topic, I am also pretty sure that you have to be extra careful with memory
when implementing an iPhone app. Hope some of this helps.
Regards,
-artOf... -
Adobe Air Application Crash After installation
Hi,
We have developed a windows application "DsNetHTML5Player" in Adobe Air which shows HTML pages in sequence using <mx:HTML> control. When I run application in "Flash Builder" all plays fine.After creating its build and installing on system (Windows 7) application crashes with following error.
Faulting application name: DsNetHTML5Player.exe, version: 0.0.0.0, time stamp: 0x4d7a7dd2
Faulting module name: WebKit.dll, version: 6531.9.0.0, time stamp: 0x50fcd627
Exception code: 0xc0000005
Fault offset: 0x000a99ac
Faulting process id: 0x19c0
Faulting application start time: 0x01d00ae266bc2b46
Faulting application path: C:\Program Files\DsNetHTML5Player\DsNetHTML5Player.exe
Faulting module path: c:\Program Files\Common Files\Adobe AIR\Versions\1.0\Resources\WebKit.dll
Report Id: 99882a24-76d6-11e4-a3ad-005056c00008
If anyone has any idea what the problem could be here, please let me know.
Thanks
UmairCould you open a new bug report on this over at bugbase.adobe.com. Please include a copy of your app (or a sample project) along with steps to reproduce. Once added, please let me know the bug number and I'll have somone take a look ASAP.
Thanks,
Chris -
Apple Applications Crash After Time Machine Restore
I recently had to do a full system restore using Time Machine. Ever since the restore completed, most of the Apple applications on my iMac immediately crash when I try to open them. Luckily, Disk Utility is one of the applications that does not crash, so I tried to verify/restore permissions, however, when I try to, I am given this:
Repairing permissions for “Macintosh HD”
Warning: SUID file "Applications/Utilities/Keychain Access.app/Contents/Resources/kcproxy" has been modified and will not be repaired.
Warning: SUID file "System/Library/Printers/IOMs/LPRIOM.plugin/Contents/MacOS/LPRIOMHelper" has been modified and will not be repaired.
Warning: SUID file "System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Reso urces/Locum" has been modified and will not be repaired.
Warning: SUID file "System/Library/PrivateFrameworks/Install.framework/Versions/A/Resources/runner " has been modified and will not be repaired.
Warning: SUID file "usr/bin/login" has been modified and will not be repaired.
Warning: SUID file "usr/bin/newgrp" has been modified and will not be repaired.
Warning: SUID file "usr/bin/passwd" has been modified and will not be repaired.
Warning: SUID file "usr/lib/sa/sadc" has been modified and will not be repaired.
Warning: SUID file "usr/libexec/chkpasswd" has been modified and will not be repaired.
Warning: SUID file "usr/sbin/scselect" has been modified and will not be repaired.
Warning: SUID file "usr/sbin/traceroute" has been modified and will not be repaired.
Warning: SUID file "usr/sbin/traceroute6" has been modified and will not be repaired.
Permissions differ on "usr/share/derby", should be drwxr-xr-x , they are lrwxr-xr-x .
Repaired "usr/share/derby".
Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.
Permissions repair complete
However, according to this KB article: http://support.apple.com/kb/TS1448, those are all errors that I can "safely ignore".
This is what the Problem Report says when one of the applications crashes (this one is for iTunes, but they are pretty much all the same):
Process: iTunes [334]
Path: /Applications/iTunes.app/Contents/MacOS/iTunes
Identifier: com.apple.iTunes
Version: ??? (???)
Build Info: iTunes-9022501~2
Code Type: X86 (Native)
Parent Process: launchd [176]
Date/Time: 2009-12-29 01:16:52.530 -0500
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6
Interval Since Last Report: 1707 sec
Crashes Since Last Report: 203
Per-App Crashes Since Last Report: 7
Anonymous UUID: 3178C0CD-1A80-48E0-A6EC-2DC6D5EC88CC
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
Symbol not found: __ZNK3JSC6JSCell17getTruncatedInt32ERi
Referenced from: /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
Expected in: /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
in /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
Model: iMac9,1, BootROM IM91.008D.B08, 2 processors, Intel Core 2 Duo, 3.06 GHz, 4 GB, SMC 1.45f0
Graphics: NVIDIA GeForce GT 130, NVIDIA GeForce GT 130, PCIe, 512 MB
Memory Module: global_name
AirPort: spairportwireless_card_type_airportextreme (0x14E4, 0x8E), Broadcom BCM43xx 1.0 (5.10.91.26)
Bluetooth: Version 2.2.4f3, 2 service, 0 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: AirPort, AirPort, en1
Network Service: Parallels Shared Networking Adapter, Ethernet, en3
Network Service: Parallels Host-Only Networking Adapter, Ethernet, en4
Serial ATA Device: ST31000342ASQ, 931.51 GB
Serial ATA Device: HL-DT-ST DVDRW GA11N
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8502, 0x24400000
USB Device: Hub, 0x050d (Belkin Corporation), 0x0307, 0x24300000
USB Device: EPSON Scanner, 0x04b8 (Seiko Epson Corp.), 0x0119, 0x24360000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x04500000
USB Device: Vendor-Specific Device, 0x4542, 0x4149, 0x04100000
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06100000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8215, 0x06110000
USB Device: Keyboard Hub, 0x05ac (Apple Inc.), 0x1006, 0x26400000
USB Device: Apple Optical USB Mouse, 0x05ac (Apple Inc.), 0x0304, 0x26430000
USB Device: Apple Keyboard, 0x05ac (Apple Inc.), 0x0220, 0x26420000
In addition to not being able to run about 95% of my Apple applications, I can also no longer connect to my Time Capsule Time Machine backups. I am able to SEE the files in the built-in hard drive, but I can not mount the sparsebundle for the backups of any of my computers. I am however able to access them on a different computer. Also, if I try to use System Recovery from my Snow Leopard install disk again, it can't find any backups on my Time Capsule, even though my other computer can view the files with no problem.
Any help with any of these problems would be greatly appreciated.I had a couple of apps start crashing today, with basically the same stuff in the crash reports.
Reinstalling Safari (which also reinstalls the WebKit and JavascriptCore frameworks, which seem to be part of the problem) worked for me.
I found that solution here, after Googling for "Symbol not found: __ZNK3JSC6JSCell17getTruncatedInt32ERi":
http://www.meproxsoft.de/tag/time-machine/
I know very little German (even though I took German in high school-- it might have helped if the teacher actually knew English), but I managed to get "repair permissions" and "reinstall Safari" from all that. -
Applications crashing after / trying to save files - access finder
Hi
I am having problems with Snow Leopard. Any application which seems to access the finder to store/retrieve files crashes. I can repeat this to make the error occur.
Example
Create a new mail and add an attachment then cancel it - crash
Create a new mail add an attachment and click add - likely crash
Fireworks
Export an image - crash after about 2-3 exports
Xcode
Add files into a project - select some....crash
Safari
Save a PDF of a page....you guessed it - crash !
I've ran disk permissions, checked the disk and at somewhat of a loss to explain what is occurring ! The only thing I can think of is that somehow the finder part of snow leopard is corrupt for my install over leopard - I never had this problem in Leopard.
Any help much appreciated.Alternatively, there's a conflict or corruption amongst the original preference files (plists) that you need to resolve. While logged into the newly created admin account, backup the bad account's folder, delete the bad account, selecting the save data option (which is stored in /Users/Deleted Users/ as a disk image), recreate the bad account using the same username/password combo, log out and back into the recreated original account. Open the saved data dmg file in /Users/Deleted Users/, open the /Library/Preferences/ folder from the saved data, open the current /Users/restored account/Library/Preferences/ folder, and slowly copy plist files from the saved data folder to the current one that don't exist in it. Log out and back in to ensure there's no conflict and things still work correctly. Resolving conflicts or identifying corrupt plist files is a laborious process. Good luck.
-
IPod Application Crashes after 2.1 Update
Did the 2.1 update this morning and everything seemed to go fine. Then I checked out mail, contacts, clock, third-party apps, etc. and they all worked just fine. Then I tapped the orange iPod icon and the splash screen appears, then goes black and back to the Home page. A classic application crash.
Did a hard reset (twice), synced twice, called Apple, they never heard of that kind of crash yet, and suggested a total restore (of course).
Any other similar crashes? I'm hoping this is widespread and will be solved with an update rather than spending the next hour doing a restore and backup and then having the same problem with 2.1.This guy found the bug!
http://discussions.apple.com/messageview.jspa?messageID=8071675 -
Application crashes after getting oci-24550
Hello ,
I am working on Oracle 11.1.0.7 database on IBM AIX os.
I am using Oracle client 11.1.0.7 on our app servers.
We are getting following erros at oracle client side and after this application crashes.
I have not found any error in alert log file , but at application server log files are keep generated and application crashes every after few minutes..
We have chanded our sql net .ora file as oracle metalink suggested -
DIAG_ADR_ENABLED=OFF
DIAG_SIGHANDLER_ENABLED=FALSE
DIAG_DDE_ENABLED=FALSE
But it did not worked ..
Any idea where to check and what colud be the reason..
Dump file /home/LM1/oradiag_LM1/diag/clients/user_LM/host_23432154125_11/incident/incdir_3457/ora_28219_3934123156_i3457.trc
Dump continued from file: /home/LM1/oradiag_LM1/diag/clients/user_LM1/host_719854125_11/trace/ora_28219_3923427456.trc
oci-24550 [11] [[si_signo=11] [si_errno=0] [si_c] [] [] [] [] [] []
========= Dump for incident 3457 (oci 24550 [11]) ========
Call Stack Trace
calling call entry argument values in hex
location type point (? means dubious value)Hello Helios,
Yes we checkd this document...it says to set some parameter in sql net .ora file , if using OCI 7 ..but i am not not sure
what OCI oracle 11g is using .. OCI 7 or OCI 8
sqlnet.ora for parameter(s)
SEC_USER_AUDIT_ACTION_BANNER=<path>/banner.txt
SEC_USER_UNAUTHORIZED_ACCESS_BANNER=<path>/banner.txt
What could be the value of path and banner ...where to look for these values..?
It is about seting stop unauthorizes access.. is this is related to application crash ..?
any idea on this ...
Maybe you are looking for
-
dose anyone know how to get iphone 4 with ios 7.1 to sync to itunes
-
I have problems when I try to install an updated version of I tunes or when I try to uninstall I tunes. In both cases I get a message which says that the facility that I am trying to use is not available, a second message says that the path I am try
-
Can not move whole album to playlist
when i try to move a whole album to a playlist with the album highlited and drop it on playlist then go to burn a cd i only get the song that was listed under the album line that i moved how do i get whole album i'm following proper drop and drag out
-
Error code 0x8E5E0442 windows 7
Need help. I can't connect to my local wireless network and seems it is related to my wireless card... I tried to repair but each time I try to repair or update this error codes comes up: 0x8E5E0442...It seems a registry problema but because of the e
-
Please, please, please help!
Ok. This is an ongoing problem from me. Maybe someone on here can suggest something that I may have missed. This is my setup: MSI K8N NEO4 Ultra the bios that came with the board 1.1 I think? AMD Athlon 64 3200+ MUSHkin RAM PC3200 DDR400 2x512 1 200G