I am trying to run my cocoa application from root with Objective-c, when I run it very first time after starting Xcode it runs properly, but as a stop the application and run again it show me error -
"Problems with launching via XPC. XPC error : Connection interrupted" , though I haven't use XPC in my project.
I am using Xcode version 11.1
Error Details -
"Details
Could not launch “test2”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: Problems with launching via XPC. XPC error : Connection interrupted
Problems with launching via XPC. XPC error : Connection interrupted
Domain: IDEDebugSessionErrorDomain
Code: 3
"
Related
When I tried to make automation with robot, there is an error when apps change from native to webview. This is the error message.
WebDriverException: Message: An unknown server-side error occurred
while processing the command. Original error: Could not proxy. Proxy
error: Could not proxy command to the remote server. Original error:
timeout of 240000ms exceeded
I'm trying to set up a Windows Server 2016 instance to automatically create a crash dump when a .Net process exits with an unhandled exception. I've tried the following:
Windows Error Reporting (as described here: https://learn.microsoft.com/en-us/windows/win32/wer/wer-settings) [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\MyApplication.exe]
"DumpType"=dword:00000002
"DumpCount"=dword:00000005
"DumpFolder"="C:\dumps"
WinDbg as postmortem debugger (windbg -I, as descibed here: https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/enabling-postmortem-debugging)
procdump as postmortem debugger (procdump -ma -i C:\dumps, as described also in the above link.)
I've tried running my application in a way that will generate an exception. All I have to do is start it twice in the same configuration, and the second instance crashes on a socket bind exception. However, in none of the cases above does the crash generate a dump file. Is there something special I have to do on Windows Server 2016, or something special I need to do to my .Net application to get it to trigger a dump on an unhandled exception?
I found the reason: we are using TopShelf to host our process. By default TopShelf handles uncaught exceptions and exits cleanly.
For any who come afterwards, please note that TopShelf has an undocumented feature from late last year to disable this behavior:
x.UnhandledExceptionPolicy = Topshelf.Runtime.UnhandledExceptionPolicyCode.TakeNoAction;
in the service configuration will do it. With this code, I was able to get a crash dump.
I've got the following error in the Xcode console:
Received XPC error Connection interrupted for message type 3 kCFNetworkAgentXPCMessageTypePACQuery.
By the way, I used Xcode 9.0 and language was Objective-C.
And I also want to know the meaning of kCFNetworkAgentXPCMessageTypePACQuery.
Errors:
02/15 09:33:30: Launching app
$ adb push C:\Users\hp\AndroidStudioProjects\recevienotfirebase\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.hp.recevienotfirebase
$ adb shell pm install -r "/data/local/tmp/com.example.hp.recevienotfirebase"
Success
$ adb shell am start -n "com.example.hp.recevienotfirebase/com.example.hp.recevienotfirebase.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Connected to process 2360 on device Nexus_6P_API_24 [emulator-5554]
I/art: Not late-enabling -Xcheck:jni (already on)
W/art: Unexpected CPU variant for X86 using defaults: x86
W/System: ClassLoader referenced unknown path: /data/app/com.example.hp.recevienotfirebase-1/lib/x86
I/InstantRun: Instant Run Runtime started. Android package is com.example.hp.recevienotfirebase, real application class is null.
[ 02-15 09:33:38.693 1497: 1520 D/ ]
HostConnection::get() New Host Connection established 0x8fdb9800, tid 1520
W/System: ClassLoader referenced unknown path: /data/app/com.example.hp.recevienotfirebase-1/lib/x86
D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
W/InstanceID/Rpc: Found 10012
D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
I/FA: App measurement is starting up, version: 10084
I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
D/FA: Debug-level message logging enabled
D/FA: AppMeasurement singleton hash: 91568628
V/FA: Collection enabled
V/FA: App package, google app id: com.example.hp.recevienotfirebase, 1:1056127560632:android:663d67b615c99e63
I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.example.hp.recevienotfirebase
V/FA: Registered activity lifecycle callback
I/FirebaseInitProvider: FirebaseApp initialization successful
V/FA: State of service unknown
V/FA: Checking service availability
W/GooglePlayServicesUtil: Google Play services out of date. Requires 10084000 but found 9452470
D/FA: Service container out of date
V/FA: Setting useService: true
V/FA: Using measurement service
V/FA: Connecting to remote service
W/GooglePlayServicesUtil: Google Play services out of date. Requires 10084000 but found 9452470
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
V/FA: onActivityCreated
V/FA: Using measurement service
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 51631
W/gralloc_ranchu: Gralloc pipe failed
[ 02-15 09:33:52.817 2360: 2360 D/ ]
HostConnection::get() New Host Connection established 0x9e59ea40, tid 2360
W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
V/FA: Session started, time: 61634
I/FA: Tag Manager is not found and thus will not be used
D/FA: Logging event (FE): _s, Bundle[{_o=auto, _sc=MainActivity, _si=-2727167516359703917}]
V/FA: Using measurement service
V/FA: Connecting to remote service
W/GooglePlayServicesUtil: Google Play services out of date. Requires 10084000 but found 9452470
W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
W/FA: Tasks have been queued for a long time
Google Play services out of date. Requires 10084000 but found 9452470
You may want to check this thread which states that you'll get this error when the activity is not exported. Be noted that the activity has to be exported to be accessible from adb.
Also, based from this SO post, you have to add the following to your android manifest: <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/> or maybe the problem was that the onTokenRefresh() method was not called when the app was starting. Try calling FirebaseInstanceId.getInstance().getToken() in the MainActivity and see if it works.
This is about using Trace in multi threaded web app
I am attempting to use tracing in a new thread started with
ThreadPool.QueueUserWorkItem(AddressOf WorkMethod, autoEvent)
My code works without crashing until I add
Trace.warn(message,category)
to a function called within the new thread
The error is below, the crash usually stops the application pool, so the page fails to load and the error message must be extracted from the IIS event log
An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/5/ROOT
Process ID: 2576
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace: at System.Web.UI.Page.get_Trace()