I am implementing a way to change the signed in phone number of the user. To do so, first I call PhoneAuthProvider.VerifyPhoneNumber to get a SMS with the code. Then I use the code to get the credential with PhoneAuthProvider.GetCredential. Everything works fine until this point. When I call FirebaseUser.UpdatePhoneNumberCredentialAsync to finally update the phone, the app crashes. The number is actually getting updated in Firebase, but the method crashes before it's finished. Am I doing something wrong or is it a Firebase-Unity bug? Follows the error log from Logcat.
(Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
07-06 21:01:03.776 2375-2412/? W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.android.gms.internal.zzdze#7af1ff3
07-06 21:01:05.597 2375-2536/? D/FirebaseAuth: Notifying id token listeners about user ( fVZUcEX80zWZIzD5xU8cIhSloVi1 ).
07-06 21:01:05.597 2375-2375/? D/FirebaseApp: Notifying auth state listeners.
07-06 21:01:05.598 2375-2375/? D/FirebaseApp: Notified 0 auth state listeners.
07-06 21:01:05.599 2375-2375/? E/firebase: result != nullptr
07-06 21:01:05.610 20205-30810/? W/FirebaseAuth: [PhoneNumberAuthPostProcessor] postProcess starts
07-06 21:01:05.693 2375-2375/? A/zygote: java_vm_ext.cc:504] JNI DETECTED ERROR IN APPLICATION: can't call com.google.firebase.auth.FirebaseUser com.google.firebase.auth.AuthResult.getUser() on null object
java_vm_ext.cc:504] in call to CallObjectMethodV
java_vm_ext.cc:504] from void com.google.firebase.app.internal.cpp.JniResultCallback.nativeOnResult(java.lang.Object, boolean, int, java.lang.String, long, long)
java_vm_ext.cc:504] "main" prio=5 tid=1 Runnable
java_vm_ext.cc:504] | group="main" sCount=0 dsCount=0 flags=0 obj=0x736004d8 self=0xe85f5000
java_vm_ext.cc:504] | sysTid=2375 nice=-10 cgrp=default sched=0/0 handle=0xecbba4bc
07-06 21:01:05.694 2375-2375/? A/zygote: java_vm_ext.cc:504] | state=R schedstat=( 6746232415 788335286 4198 ) utm=547 stm=126 core=7 HZ=100
java_vm_ext.cc:504] | stack=0xff162000-0xff164000 stackSize=8MB
java_vm_ext.cc:504] | held mutexes= "mutator lock"(shared held)
java_vm_ext.cc:504] native: #00 pc 002c4a4b /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+130)
java_vm_ext.cc:504] native: #01 pc 003560a1 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+200)
java_vm_ext.cc:504] native: #02 pc 00352573 /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+34)
java_vm_ext.cc:504] native: #03 pc 0022ff35 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+736)
java_vm_ext.cc:504] native: #04 pc 0023032b /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+58)
java_vm_ext.cc:504] native: #05 pc 000d280b /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46)
java_vm_ext.cc:504] native: #06 pc 000d56a9 /system/lib/libart.so (_ZN3art11ScopedCheck17CheckMethodAndSigERNS_18ScopedObjectAccessEP8_jobjectP7_jclassP10_jmethodIDNS_9Primitive4TypeENS_10InvokeTypeE+1228)
java_vm_ext.cc:504] native: #07 pc 000d4427 /system/lib/libart.so (_ZN3art8CheckJNI11CallMethodVEPKcP7_JNIEnvP8_jobjectP7_jclassP10_jmethodIDSt9__va_listNS_9Primitive4TypeENS_10InvokeTypeE+514)
java_vm_ext.cc:504] native: #08 pc 000c548b /system/lib/libart.so (_ZN3art8CheckJNI17CallObjectMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+38)
java_vm_ext.cc:504] native: #09 pc 000b0513 /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN7_JNIEnv16CallObjectMethodEP8_jobjectP10_jmethodIDz+18)
java_vm_ext.cc:504] native: #10 pc 000c5d6b /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN8firebase4auth16ReadSignInResultEP8_jobjectPNS0_18FutureCallbackDataEbPv+46)
java_vm_ext.cc:504] native: #11 pc 000c5cad /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN8firebase4auth14FutureCallbackEP7_JNIEnvP8_jobjectbiPKcPv+120)
java_vm_ext.cc:504] native: #12 pc 000cf0fd /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN8firebase4util32JniResultCallback_nativeOnResultEP7_JNIEnvP8_jobjectS4_hiP8_jstringxx+116)
java_vm_ext.cc:504] native: #13 pc 000002c5 /data/data/com.company.product/cache/oat/arm/app_resources_lib.odex (Java_com_google_firebase_app_internal_cpp_JniResultCallback_nativeOnResult__Ljava_lang_Object_2ZILjava_lang_String_2JJ+164)
java_vm_ext.cc:504] at com.google.firebase.app.internal.cpp.JniResultCallback.nativeOnResult(Native method)
java_vm_ext.cc:504] at com.google.firebase.app.internal.cpp.JniResultCallback.onCompletion(JniResultCallback.java:196)
java_vm_ext.cc:504] - locked <0x071a32e1> (a com.google.firebase.app.internal.cpp.JniResultCallback)
java_vm_ext.cc:504] at com.google.firebase.app.internal.cpp.JniResultCallback$TaskCallback.onSuccess(JniResultCallback.java:106)
java_vm_ext.cc:504] - locked <0x0cae6806> (a java.lang.Object)
java_vm_ext.cc:504] at com.google.android.gms.tasks.zzj.run(unavailable:-1)
java_vm_ext.cc:504] - locked <0x04984ec7> (a java.lang.Object)
java_vm_ext.cc:504] at android.os.Handler.handleCallback(Handler.java:789)
java_vm_ext.cc:504] at android.os.Handler.dispatchMessage(Handler.java:98)
java_vm_ext.cc:504] at android.os.Looper.loop(Looper.java:164)
java_vm_ext.cc:504] at android.app.ActivityThread.main(ActivityThread.java:6938)
java_vm_ext.cc:504] at java.lang.reflect.Method.invoke(Native method)
java_vm_ext.cc:504] at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
java_vm_ext.cc:504] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
java_vm_ext.cc:504]
runtime.cc:516] Runtime aborting...
runtime.cc:516]
runtime.cc:524] JNI DETECTED ERROR IN APPLICATION: can't call com.google.firebase.auth.FirebaseUser com.google.firebase.auth.AuthResult.getUser() on null object
runtime.cc:524] in call to CallObjectMethodV
runtime.cc:524] from void com.google.firebase.app.internal.cpp.JniResultCallback.nativeOnResult(java.lang.Object, boolean, int, java.lang.String, long, long)
runtime.cc:524] "main" prio=5 tid=1 Runnable
runtime.cc:524] | group="main" sCount=0 dsCount=0 flags=0 obj=0x736004d8 self=0xe85f5000
runtime.cc:524] | sysTid=2375 nice=-10 cgrp=default sched=0/0 handle=0xecbba4bc
runtime.cc:524] | state=R schedstat=( 6746232415 788335286 4198 ) utm=547 stm=126 core=7 HZ=100
runtime.cc:524] | stack=0xff162000-0xff164000 stackSize=8MB
runtime.cc:524] | held mutexes= "mutator lock"(shared held)
runtime.cc:524] native: #00 pc 002c4a4b /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+130)
runtime.cc:524] native: #01 pc 003560a1 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+200)
runtime.cc:524] native: #02 pc 00352573 /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+34)
runtime.cc:524] native: #03 pc 0022ff35 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+736)
runtime.cc:524] native: #04 pc 0023032b /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+58)
runtime.cc:524] native: #05 pc 000d280b /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46)
runtime.cc:524] native: #06 pc 000d56a9 /system/lib/libart.so (_ZN3art11ScopedCheck17CheckMethodAndSigERNS_18ScopedObjectAccessEP8_jobjectP7_jclassP10_jmethodIDNS_9Primitive4TypeENS_10InvokeTypeE+1228)
runtime.cc:524] native: #07 pc 000d4427 /system/lib/libart.so (_ZN3art8CheckJNI11CallMethodVEPKcP7_JNIEnvP8_jobjectP7_jclassP10_jmethodIDSt9__va_listNS_9Primitive4TypeENS_10InvokeTypeE+514)
runtime.cc:524] native: #08 pc 000c548b /system/lib/libart.so (_ZN3art8CheckJNI17CallObjectMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+38)
runtime.cc:524] native: #09 pc 000b0513 /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN7_JNIEnv16CallObjectMethodEP8_jobjectP10_jmethodIDz+18)
runtime.cc:524] native: #10 pc 000c5d6b /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN8firebase4auth16ReadSignInResultEP8_jobjectPNS0_18FutureCallbackDataEbPv+46)
runtime.cc:524] native: #11 pc 000c5cad /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN8firebase4auth14FutureCallbackEP7_JNIEnvP8_jobjectbiPKcPv+120)
07-06 21:01:05.695 2375-2375/? A/zygote: runtime.cc:524] native: #12 pc 000cf0fd /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN8firebase4util32JniResultCallback_nativeOnResultEP7_JNIEnvP8_jobjectS4_hiP8_jstringxx+116)
runtime.cc:524] native: #13 pc 000002c5 /data/data/com.company.product/cache/oat/arm/app_resources_lib.odex (Java_com_google_firebase_app_internal_cpp_JniResultCallback_nativeOnResult__Ljava_lang_Object_2ZILjava_lang_String_2JJ+164)
runtime.cc:524] at com.google.firebase.app.internal.cpp.JniResultCallback.nativeOnResult(Native method)
runtime.cc:524] at com.google.firebase.app.internal.cpp.JniResultCallback.onCompletion(JniResultCallback.java:196)
runtime.cc:524] - locked <0x071a32e1> (a com.google.firebase.app.internal.cpp.JniResultCallback)
runtime.cc:524] at com.google.firebase.app.internal.cpp.JniResultCallback$TaskCallback.onSuccess(JniResultCallback.java:106)
runtime.cc:524] - locked <0x0cae6806> (a java.lang.Object)
runtime.cc:524] at com.google.android.gms.tasks.zzj.run(unavailable:-1)
runtime.cc:524] - locked <0x04984ec7> (a java.lang.Object)
runtime.cc:524] at android.os.Handler.handleCallback(Handler.java:789)
runtime.cc:524] at android.os.Handler.dispatchMessage(Handler.java:98)
runtime.cc:524] at android.os.Looper.loop(Looper.java:164)
runtime.cc:524] at android.app.ActivityThread.main(ActivityThread.java:6938)
runtime.cc:524] at java.lang.reflect.Method.invoke(Native method)
runtime.cc:524] at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
runtime.cc:524] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
runtime.cc:524]
07-06 21:01:05.846 2563-2563/? A/DEBUG: Abort message: 'java_vm_ext.cc:504] JNI DETECTED ERROR IN APPLICATION: can't call com.google.firebase.auth.FirebaseUser com.google.firebase.auth.AuthResult.getUser() on null object'
r0 00000000 r1 00000947 r2 00000006 r3 00000008
r4 00000947 r5 00000947 r6 ff95d790 r7 0000010c
r8 0000000b r9 ff95d7f1 sl 0000000a fp ff95d7f0
ip 00000000 sp ff95d780 lr e9f6e447 pc e9f9f508 cpsr 200d0010
07-06 21:01:05.856 2563-2563/? A/DEBUG: #04 pc 003ef7ad /system/lib/libart.so (_ZN7android4base10LogMessageD1Ev+456)
#05 pc 00230143 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1262)
#06 pc 0023032b /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+58)
#07 pc 000d280b /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46)
#08 pc 000d56a9 /system/lib/libart.so (_ZN3art11ScopedCheck17CheckMethodAndSigERNS_18ScopedObjectAccessEP8_jobjectP7_jclassP10_jmethodIDNS_9Primitive4TypeENS_10InvokeTypeE+1228)
#09 pc 000d4427 /system/lib/libart.so (_ZN3art8CheckJNI11CallMethodVEPKcP7_JNIEnvP8_jobjectP7_jclassP10_jmethodIDSt9__va_listNS_9Primitive4TypeENS_10InvokeTypeE+514)
#10 pc 000c548b /system/lib/libart.so (_ZN3art8CheckJNI17CallObjectMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+38)
#11 pc 000b0513 /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN7_JNIEnv16CallObjectMethodEP8_jobjectP10_jmethodIDz+18)
#12 pc 000c5d6b /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN8firebase4auth16ReadSignInResultEP8_jobjectPNS0_18FutureCallbackDataEbPv+46)
#13 pc 000c5cad /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN8firebase4auth14FutureCallbackEP7_JNIEnvP8_jobjectbiPKcPv+120)
#14 pc 000cf0fd /data/app/com.company.product-muqASgSszT-5GC-bGDgKRQ==/lib/arm/libApp-4.5.2.so (_ZN8firebase4util32JniResultCallback_nativeOnResultEP7_JNIEnvP8_jobjectS4_hiP8_jstringxx+116)
#15 pc 000002c5 /data/data/com.company.product/cache/oat/arm/app_resources_lib.odex (offset 0x2000)
07-06 21:01:17.397 20205-21357/? E/FirebaseAuth: [VerifyPhoneNumberOperation] RemoteException when sending auto retrieval timeout response.
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:761)
at car.c(:com.google.android.gms#12685025#12.6.85 (040408-197041431):1)
at bebh.c(:com.google.android.gms#12685025#12.6.85 (040408-197041431):2)
at bdyf.a(:com.google.android.gms#12685025#12.6.85 (040408-197041431):4)
at bdyd.a(:com.google.android.gms#12685025#12.6.85 (040408-197041431):1)
at bdyd.c(:com.google.android.gms#12685025#12.6.85 (040408-197041431):1)
at bdyd.handleMessage(:com.google.android.gms#12685025#12.6.85 (040408-197041431):52)
at oup.run(:com.google.android.gms#12685025#12.6.85 (040408-197041431):5)
at ovb.run(:com.google.android.gms#12685025#12.6.85 (040408-197041431):27)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at pbc.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
07-06 21:01:17.398 20205-21357/? W/FirebaseAuth: [PhoneVerificationSession] PhoneVerificationSession terminated
07-06 21:01:17.420 20205-28403/? W/FirebaseAuth: [PhoneNumberAuthPostProcessor] postProcess ends
07-06 21:01:17.433 20205-30810/? W/FirebaseAuth: [PhoneNumberAuthPostProcessor] postProcess ends
And the method I'm using:
public void UpdatePhoneNumber(string smsCode, Action<string> OnUpdatePhoneFinish)
{
Debug.Log("CODE: " + smsCode);
if (m_signupData != null)
{
m_signupData.Credetial = PhoneAuthProvider.GetInstance(m_firebaseAuth).GetCredential(m_signupData.Id, smsCode);
Debug.Log("CREDENTIAL: " + m_signupData.Credetial); // working fine until this point
m_firebaseUser.UpdatePhoneNumberCredentialAsync(m_signupData.Credetial).ContinueWith((task) =>
{
Debug.Log("Finished request"); // never reaches this debug
});
}
}
Everything works fine until I call UpdatePhoneNumberCredentialAsync. The Debug inside the callback is never reached.
Looks like this was a Firebase-Unity bug, fixed in version 5.2.0:
https://firebase.google.com/support/release-notes/unity
Related
When I try to instantiate RemoteConfig, I get this error and the app crashes (not an error, it just closes).
I've read that a workaround would be :
Workaround: go to your pub cache dir, find MethodCallHandler.java and replace this line:
properties.put(
"inDebugMode", firebaseRemoteConfigInfo.getConfigSettings().isDeveloperModeEnabled());
With this:
properties.put("inDebugMode", false);
The problem is that this file does not contain any line as it was described. Any ideas?
Full error:
E/flutter ( 4211): at android.app.ActivityThread.main(ActivityThread.java:7356)
E/flutter ( 4211): at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 4211): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/flutter ( 4211): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
E/flutter ( 4211):
F/flutter ( 4211): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(942)] Check failed: CheckException(env).
F/libc ( 4211): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 4211 (name_app), pid 4211 (name_app)
The workaround didn't work for me but in my case just changing the platform('com.google.firebase:firebase-bom:26.4.0') to implementation platform('com.google.firebase:firebase-bom') in my android/app/src/main/AndroidManifest.xmlfile fixed the problem.
Cheers
In my Nginx, I keep getting:
2020/10/02 06:08:08 [alert] 35#35: *94913 open socket #39 left in connection 8
2020/10/02 06:08:08 [alert] 35#35: *94899 open socket #23 left in connection 9
2020/10/02 06:08:08 [alert] 35#35: *94886 open socket #32 left in connection 15
2020/10/02 06:08:08 [alert] 35#35: *94903 open socket #40 left in connection 24
2020/10/02 06:08:08 [alert] 35#35: *94911 open socket #17 left in connection 31
2020/10/02 06:08:08 [alert] 35#35: *94895 open socket #37 left in connection 36
2020/10/02 06:08:08 [alert] 35#35: *94909 open socket #43 left in connection 40
2020/10/02 06:08:08 [alert] 35#35: *94898 open socket #20 left in connection 47
2020/10/02 06:08:08 [alert] 35#35: *94887 open socket #33 left in connection 54
2020/10/02 06:08:08 [alert] 35#35: *94893 open socket #36 left in connection 55
2020/10/02 06:08:08 [alert] 35#35: *94890 open socket #35 left in connection 58
2020/10/02 06:08:08 [alert] 35#35: *94889 open socket #34 left in connection 63
2020/10/02 06:08:08 [alert] 35#35: *94896 open socket #18 left in connection 71
2020/10/02 06:08:08 [alert] 35#35: aborting
2020/10/02 06:08:08 [alert] 33#33: worker process 35 exited on signal 6 (core dumped)
So I enabled a core dump by adding this to my nginx.conf
worker_rlimit_core 500M;
working_directory /tmp;
debug_points abort;
When the core is dumped, I used gdp as such:
gdb /usr/sbin/nginx /tmp/somecorefile.xxxx
backtrace full
And I am getting this output.
warning: Unexpected size of section `.reg-xstate/35' in core file.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `nginx: worker pr'.
Program terminated with signal SIGABRT, Aborted.
warning: Unexpected size of section `.reg-xstate/35' in core file.
#0 __GI_raise (sig=sig#entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace full
#0 __GI_raise (sig=sig#entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
set = {__val = {0, 93898407404718, 206158430256, 140725383938616, 140725383938416, 712653358923658240, 2, 6, 93898408092161, 2, 6, 8, 93898411815600,
140725383938672, 140725383938600, 140725383938672}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
#1 0x00007fc51604f535 in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x7fc515dc62c0, sa_sigaction = 0x7fc515dc62c0}, sa_mask = {__val = {712653358923658240, 140484452045760,
0, 140484452041200, 140484451262672, 1, 0, 93898411799280, 93898407566008, 140484451264536, 12, 93898408473376, 0, 140484452049600,
140484452057768, 93898411799280}}, sa_flags = 368698904, sa_restorer = 0x55666d7af2f0}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x000055666d377613 in ?? ()
No symbol table info available.
#3 0x000055666d3a2d68 in ?? ()
No symbol table info available.
#4 0x000055666d3a3a22 in ?? ()
No symbol table info available.
#5 0x000055666d3a1dc3 in ngx_spawn_process ()
No symbol table info available.
#6 0x000055666d3a2fd0 in ?? ()
No symbol table info available.
#7 0x000055666d3a4654 in ngx_master_process_cycle ()
No symbol table info available.
#8 0x000055666d3782bb in main ()
No symbol table info available.
And this one is a separate core dump
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/nginx...(no debugging symbols found)...done.
[New LWP 26510]
warning: Unexpected size of section `.reg-xstate/26510' in core file.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `nginx: worker pr'.
Program terminated with signal SIGABRT, Aborted.
warning: Unexpected size of section `.reg-xstate/26510' in core file.
#0 __GI_raise (sig=sig#entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace full
#0 __GI_raise (sig=sig#entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
set = {__val = {0, 9223372036854775807, 0, 0, 0, 60, 5, 0, 1288, 0, 10, 94846235324710, 1, 0, 94846235939456, 3560692332834648576}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
#1 0x00007f0e3ff4d535 in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x56431c2a3268, sa_sigaction = 0x56431c2a3268}, sa_mask = {__val = {3560692332834648576, 94846233719536,
0, 139699176612336, 139699175833808, 1, 0, 94846233719536, 94846217345720, 139699175834328, 12, 94846218253088, 0, 139699176624816,
139699176621944, 94846233719536}}, sa_flags = 1072285208, sa_restorer = 0x56431c11b2f0}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x000056431b14f613 in ?? ()
No symbol table info available.
#3 0x000056431b17ad68 in ?? ()
No symbol table info available.
#4 0x000056431b17ba22 in ?? ()
No symbol table info available.
#5 0x000056431b179dc3 in ngx_spawn_process ()
No symbol table info available.
#6 0x000056431b17afd0 in ?? ()
No symbol table info available.
#7 0x000056431b17c654 in ngx_master_process_cycle ()
No symbol table info available.
#8 0x000056431b1502bb in main ()
No symbol table info available.
My nginx version is such:
nginx version: nginx/1.14.2
built with OpenSSL 1.1.1d 10 Sep 2019
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-Cjs4TR/nginx-1.14.2=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-mail=dynamic --with-mail_ssl_module --add-dynamic-module=/build/nginx-Cjs4TR/nginx-1.14.2/debian/modules/http-auth-pam --add-dynamic-module=/build/nginx-Cjs4TR/nginx-1.14.2/debian/modules/http-dav-ext --add-dynamic-module=/build/nginx-Cjs4TR/nginx-1.14.2/debian/modules/http-echo --add-dynamic-module=/build/nginx-Cjs4TR/nginx-1.14.2/debian/modules/http-upstream-fair --add-dynamic-module=/build/nginx-Cjs4TR/nginx-1.14.2/debian/modules/http-subs-filter
Does anyone know what any of this means? And is this the correct place to report this problem?
Xamarin Forms app throws following error during on click on Navigation Button.
If I comment the following method DisplaySoccerStatus(); in the SoccerDailyStatus class then the app will work. So I assume, few records in the database which are null is causing the issue ? Not sure, how can I resolve the problem ?
SQLite.SQLiteException: Could not open database file: /data/user/0/com.companyname.soccerapp/files/.config/soccerpep (CannotOpen
public partial class SoccerDailyStatus : ContentPage
{
private SQLiteConnection conn;
SoccerAvailability status;
public SoccerDailyStatus(SoccerAvailability soccerStatus)
{
InitializeComponent();
status = soccerStatus;
BindingContext = status;
//DisplaySoccerStatus();
}
protected override async void OnAppearing()
{
conn = DependencyService.Get<Isqlite>().GetConnection();
conn.CreateTable<SoccerAvailability>();
base.OnAppearing();
async Task DisplaySoccerStatus()
{
var datetoday = DateTime.Now.ToString("ddMMyyyy");
//List<SoccerAvailability> myList = (from x in conn.Table<SoccerAvailability>() select x).ToList();
List<SoccerAvailability> myList = (from x in conn.Table<SoccerAvailability>().Where(x => x.CurrentDate == datetoday) select x).ToList();
if (myList != null)
{
SoccerAvailability soccerAvailability = new SoccerAvailability();
soccerAvailability.SoccerStatus = myList[0].SoccerStatus;
soccerAvailability.CurrentDate = DateTime.Now.ToString("ddMMyyyy");
await Navigation.PushAsync(new SoccerDailyStatus(soccerAvailability) { });
}
else
{
await DisplayAlert("Notification", "Unable to proccess status", "Cancel");
}
}
await DisplaySoccerStatus();
}
}
}
Stack Trace:
05-04 13:51:12.462 D/Mono (23709): DllImport attempting to load: '__Internal'.
05-04 13:51:12.462 D/Mono (23709): DllImport loaded library '(null)'.
05-04 13:51:12.462 D/Mono (23709): DllImport searching in: '__Internal' ('(null)').
05-04 13:51:12.462 D/Mono (23709): Searching for 'monodroid_get_system_property'.
05-04 13:51:12.462 D/Mono (23709): Probing 'monodroid_get_system_property'.
05-04 13:51:12.462 D/Mono (23709): Found as 'monodroid_get_system_property'.
05-04 13:51:12.462 D/Mono (23709): DllImport searching in: '__Internal' ('(null)').
05-04 13:51:12.462 D/Mono (23709): Searching for 'monodroid_free'.
05-04 13:51:12.462 D/Mono (23709): Probing 'monodroid_free'.
05-04 13:51:12.462 D/Mono (23709): Found as 'monodroid_free'.
05-04 13:51:12.904 D/Mono (23709): DllImport searching in: 'e_sqlite3' ('libe_sqlite3.so').
05-04 13:51:12.904 D/Mono (23709): Searching for 'sqlite3_changes'.
05-04 13:51:13.123 I/art (23709): Starting a blocking GC Explicit
05-04 13:51:13.132 I/art (23709): Explicit concurrent mark sweep GC freed 206(21KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 3MB/5MB, paused 651us total 8.285ms
05-04 13:51:13.134 D/Mono (23709): GC_TAR_BRIDGE bridges 87 objects 901 opaque 262 colors 87 colors-bridged 87 colors-visible 87 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.03ms tarjan 0.19ms scc-setup 0.04ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.74ms
05-04 13:51:13.134 D/Mono (23709): GC_BRIDGE: Complete, was running for 11.21ms
05-04 13:51:13.135 D/Mono (23709): GC_MINOR: (Nursery full) time 7.23ms, stw 7.85ms promoted 1963K major size: 2848K in use: 2132K los size: 1024K in use: 55K
05-04 13:51:13.306 D/Mono (23709): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 87 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.03ms tarjan 0.19ms scc-setup 0.04ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.02ms
05-04 13:51:13.306 D/Mono (23709): GC_BRIDGE: Complete, was running for 0.15ms
05-04 13:51:13.307 D/Mono (23709): GC_MINOR: (Nursery full) time 5.49ms, stw 5.88ms promoted 2025K major size: 4992K in use: 4209K los size: 1024K in use: 55K
05-04 13:51:13.468 D/Mono (23709): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 87 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.03ms tarjan 0.19ms scc-setup 0.04ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.03ms
05-04 13:51:13.468 D/Mono (23709): GC_BRIDGE: Complete, was running for 0.26ms
05-04 13:51:13.468 D/Mono (23709): GC_MINOR: (Nursery full) time 6.25ms, stw 6.64ms promoted 1963K major size: 7024K in use: 6222K los size: 1024K in use: 55K
05-04 13:51:13.629 D/Mono (23709): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 87 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.03ms tarjan 0.19ms scc-setup 0.04ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.03ms
05-04 13:51:13.629 D/Mono (23709): GC_BRIDGE: Complete, was running for 0.19ms
05-04 13:51:13.629 D/Mono (23709): GC_MINOR: (Nursery full) time 7.41ms, stw 7.90ms promoted 1886K major size: 9024K in use: 8157K los size: 1024K in use: 55K
05-04 13:51:13.817 D/Mono (23709): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 87 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.03ms tarjan 0.19ms scc-setup 0.04ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.03ms
05-04 13:51:13.817 D/Mono (23709): GC_BRIDGE: Complete, was running for 0.19ms
05-04 13:51:13.817 D/Mono (23709): GC_MINOR: (Nursery full) time 9.31ms, stw 9.72ms promoted 1818K major size: 10896K in use: 10021K los size: 1024K in use: 55K
05-04 13:51:14.140 I/art (23709): Starting a blocking GC Explicit
05-04 13:51:14.147 I/art (23709): Explicit concurrent mark sweep GC freed 156(9KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 3MB/5MB, paused 599us total 6.464ms
05-04 13:51:14.147 D/Mono (23709): GC_TAR_BRIDGE bridges 29 objects 29 opaque 0 colors 29 colors-bridged 29 colors-visible 29 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.04ms tarjan 0.03ms scc-setup 0.03ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.27ms
05-04 13:51:14.147 D/Mono (23709): GC_BRIDGE: Complete, was running for 7.41ms
05-04 13:51:14.147 D/Mono (23709): GC_MINOR: (Nursery full) time 7.24ms, stw 7.62ms promoted 501K major size: 11472K in use: 10539K los size: 1024K in use: 55K
05-04 13:51:14.157 D/Mono (23709): DllImport searching in: 'e_sqlite3' ('libe_sqlite3.so').
05-04 13:51:14.158 D/Mono (23709): Searching for 'sqlite3_close_v2'.
05-04 13:51:14.651 I/Choreographer(23709): Skipped 167 frames! The application may be doing too much work on its main thread.
05-04 13:51:14.688 E/EGL_emulation(23709): tid 23733: swapBuffers(531): error 0x300d (EGL_BAD_SURFACE)
05-04 13:51:14.688 W/OpenGLRenderer(23709): swapBuffers encountered EGL_BAD_SURFACE on 0x9c46bd40, halting rendering...
05-04 13:51:14.690 D/EGL_emulation(23709): eglMakeCurrent: 0xb077de80: ver 3 1 (tinfo 0x9c459e20)
Unhandled Exception:
SQLite.SQLiteException: Could not open database file: /data/user/0/com.companyname.soccerapp/files/.config/soccerpep (CannotOpen)
I think the problem is due to the async method DisplaySoccerStatus called in ctor.
A single data connection cannot be used simultaneously in two or more threads.
I suggest two things:
Call your DisplaySoccerStatus in async onAppearing and use await DisplaySoccerStatus. Oh, and use async Task DisplaySoccerStatus and not async void so you can know when task is finished.
The async void case is a "fire and forget": You start the task chain, but you don't care about when it's finished. When the function returns, all you know is that everything up to the first await has executed. Everything after the first await will run at some unspecified point in the future that you have no access to.
Move your connection in a singleton declared on app.xaml.xs as suggested in the official documentation
I am creating a web browser with Qt 5.10.1 and I would like to export it with the Qt Installer Framework. I am looking for a way to know all the dependencies (libs, plugins...) my application has to export them with the binary file. I already used ldd for the libs but I don't know how to do for the plugins.
Thanks for your help.
When I use linuxdeployqt it seems to work but when I run the program I get
QML debugging is enabled. Only use this in a safe environment.
QApplication: invalid style override passed, ignoring it.
Could not find QtWebEngineProcess
[22299:22299:0328/184840.249157:FATAL:zygote_host_impl_linux.cc(182)] Check failed: ReceiveFixedMessage(fds[0], kZygoteBootMessage, sizeof(kZygoteBootMessage), &boot_pid).
#0 0x7f2a8ffd60a5 <unknown>
#1 0x7f2a8ffebeca <unknown>
#2 0x7f2a8f62efc3 <unknown>
#3 0x7f2a8f62dc3b <unknown>
#4 0x7f2a8f62e219 <unknown>
#5 0x7f2a8f27193a <unknown>
#6 0x7f2a8f276e76 <unknown>
#7 0x7f2a8ed94600 <unknown>
#8 0x7f2a8ed95b25 <unknown>
#9 0x7f2a8ed84ee9 <unknown>
#10 0x7f2a8ed850be QtWebEngineCore::WebContentsAdapter::WebContentsAdapter()
#11 0x7f2a973fa441 <unknown>
#12 0x7f2a973faf24 QWebEnginePage::QWebEnginePage()
#13 0x7f2a97408ebb QWebEngineView::page()
#14 0x7f2a97409179 QWebEngineView::settings()
#15 0x00000040861f WebPage::WebPage()
#16 0x0000004079d6 MainWindow::addTab()
#17 0x0000004075c9 MainWindow::MainWindow()
#18 0x000000408441 Launcher::Launcher()
#19 0x000000406519 main
#20 0x7f2a94cdb830 __libc_start_main
#21 0x000000406419 _start
Received signal 6
#0 0x7f2a8ffd60a5 <unknown>
#1 0x7f2a8ed17141 <unknown>
#2 0x7f2a8ffd643d <unknown>
#3 0x7f2a94cf04b0 <unknown>
#4 0x7f2a94cf0428 gsignal
#5 0x7f2a94cf202a abort
#6 0x7f2a8ffd5dc5 <unknown>
#7 0x7f2a8ffec1ed <unknown>
#8 0x7f2a8f62efc3 <unknown>
#9 0x7f2a8f62dc3b <unknown>
#10 0x7f2a8f62e219 <unknown>
#11 0x7f2a8f27193a <unknown>
#12 0x7f2a8f276e76 <unknown>
#13 0x7f2a8ed94600 <unknown>
#14 0x7f2a8ed95b25 <unknown>
#15 0x7f2a8ed84ee9 <unknown>
#16 0x7f2a8ed850be QtWebEngineCore::WebContentsAdapter::WebContentsAdapter()
#17 0x7f2a973fa441 <unknown>
#18 0x7f2a973faf24 QWebEnginePage::QWebEnginePage()
#19 0x7f2a97408ebb QWebEngineView::page()
#20 0x7f2a97409179 QWebEngineView::settings()
#21 0x00000040861f WebPage::WebPage()
#22 0x0000004079d6 MainWindow::addTab()
#23 0x0000004075c9 MainWindow::MainWindow()
#24 0x000000408441 Launcher::Launcher()
#25 0x000000406519 main
#26 0x7f2a94cdb830 __libc_start_main
#27 0x000000406419 _start
r8: ffff80005d51c978 r9: ffff80005d51c968 r10: 0000000000000008 r11: 0000000000000206
r12: 00007fffa41a6fe0 r13: 00000000000000ac r14: 00007fffa41a7210 r15: 00007fffa41a7980
di: 000000000000571b si: 000000000000571b bp: 00007f2a9562ad40 bx: 00007fffa41a7760
dx: 0000000000000006 ax: 0000000000000000 cx: 00007f2a94cf0428 sp: 00007fffa41a6e78
ip: 00007f2a94cf0428 efl: 0000000000000206 cgf: 002b000000000033 erf: 0000000000000000
trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
Calling _exit(1). Core file will not be generated.
You can use linuxdeployqt to find all used libraries and plugins. Qt does not ship anything like windeployqt for linux.
This Linux Deployment Tool, linuxdeployqt, takes an application as
input and makes it self-contained by copying in the resources that the
application uses (like libraries, graphics, and plugins) into a
bundle. The resulting bundle can be distributed as an AppDir or as an
AppImage to users, or can be put into cross-distribution packages.
If you are on Windows, you can use the windeployqt which comes with Qt.
I want to create a web app on GAE in Go and I need it to listen to a custom port. How do I set it up? I tried to use http.ListenAndServe(":12345", nil) in the sandbox, but got this in my console:
WARNING 2011-10-07 20:01:01,252 urlfetch_stub.py:108] No ssl package found. urlfetch
will not be able to validate SSL certificates.
INFO 2011-10-07 20:01:01,847 appengine_rpc.py:159] Server: appengine.google.com
INFO 2011-10-07 20:01:01,855 appcfg.py:463] Checking for updates to the SDK.
INFO 2011-10-07 20:01:04,625 appcfg.py:480] The SDK is up to date.
WARNING 2011-10-07 20:01:04,625 datastore_file_stub.py:512] Could not read datastore data from /var/folders/e0/e0U5NtMXFHOB6jVwkVhsnE+++TM/-Tmp-/dev_appserver.datastore
INFO 2011-10-07 20:01:04,627 rdbms_sqlite.py:58] Connecting to SQLite database '' with file '/var/folders/e0/e0U5NtMXFHOB6jVwkVhsnE+++TM/-Tmp-/dev_appserver.rdbms'
WARNING 2011-10-07 20:01:04,633 dev_appserver.py:4748] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging
INFO 2011-10-07 20:01:04,641 dev_appserver_multiprocess.py:637] Running application tpbitblock on port 8080: http://localhost:8080
INFO 2011-10-07 20:01:08,448 __init__.py:365] building _go_app
INFO 2011-10-07 20:01:11,105 __init__.py:351] running _go_app
throw: init rescheduling
runtime.throw+0x40 /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/runtime.c:102
runtime.throw(0x278c7f, 0xdc73)
schedule+0x3e /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/proc.c:535
schedule(0x10803000, 0x10803000)
runtime.mcall+0x3a /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/386/asm.s:174
runtime.mcall(0x10803000, 0x0)
goroutine 2 [1]:
net.*pollServer·Run /private/tmp/appengine/google_appengine/goroot/src/pkg/net/fd.go:213
net.*pollServer·Run(0x10801c90, 0x0)
runtime.goexit /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/proc.c:178
runtime.goexit()
----- goroutine created by -----
net.newPollServer+0x2dd /private/tmp/appengine/google_appengine/goroot/src/pkg/net/newpollserver.go:39
goroutine 1 [4]:
runtime.gosched+0x4d /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/proc.c:603
runtime.gosched()
runtime.chanrecv+0x14d /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/chan.c:361
runtime.chanrecv(0x1081d900, 0x30800e6c, 0x0, 0x0, 0x0, ...)
runtime.chanrecv1+0x3f /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/chan.c:424
runtime.chanrecv1(0x1081d900, 0x1081e580)
net.*pollServer·WaitRead+0x47 /private/tmp/appengine/google_appengine/goroot/src/pkg/net/fd.go:255
net.*pollServer·WaitRead(0x10801c90, 0x1081e580, 0x0)
net.*netFD·accept+0x2ae /private/tmp/appengine/google_appengine/goroot/src/pkg/net/fd.go:605
net.*netFD·accept(0x1081e580, 0x45716, 0x0, 0x0, 0x0, ...)
net.*TCPListener·AcceptTCP+0x53 /private/tmp/appengine/google_appengine/goroot/src/pkg/net/tcpsock.go:272
net.*TCPListener·AcceptTCP(0x108008b8, 0x30800f00, 0x0, 0x0)
net.*TCPListener·Accept+0x36 /private/tmp/appengine/google_appengine/goroot/src/pkg/net/tcpsock.go:282
net.*TCPListener·Accept(0x108008b8, 0x0, 0x0, 0x0, 0x0, ...)
http.*Server·Serve+0x96 /private/tmp/appengine/google_appengine/goroot/src/pkg/http/server.go:868
http.*Server·Serve(0x10839d20, 0x10839e20, 0x108008b8, 0x0, 0x0, ...)
http.*Server·ListenAndServe+0x9c /private/tmp/appengine/google_appengine/goroot/src/pkg/http/server.go:855
http.*Server·ListenAndServe(0x10839d20, 0x10839d20, 0x406)
http.ListenAndServe+0x52 /private/tmp/appengine/google_appengine/goroot/src/pkg/http/server.go:920
http.ListenAndServe(0x155640, 0x6, 0x0, 0x0, 0x0, ...)
BitBlock.init·1+0x174 BitBlock/BitBlock.go:43
BitBlock.init·1()
BitBlock.init+0x70 BitBlock/BitBlock.go:0
BitBlock.init()
main.init+0x39 _go_main.go:0
main.init()
runtime.mainstart+0x5 /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/386/asm.s:91
runtime.mainstart()
runtime.goexit /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/proc.c:178
runtime.goexit()
----- goroutine created by -----
_rt0_386+0xbf /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/386/asm.s:80
ERROR 2011-10-07 20:01:12,196 dev_appserver.py:4200] Exception encountered handling request
Traceback (most recent call last):
File "/Google App Engine/google/appengine/tools/dev_appserver.py", line 4143, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
File "/Google App Engine/google/appengine/tools/dev_appserver.py", line 4049, in _Dispatch
base_env_dict=env_dict)
File "/Google App Engine/google/appengine/tools/dev_appserver.py", line 616, in Dispatch
base_env_dict=base_env_dict)
File "/Google App Engine/google/appengine/tools/dev_appserver.py", line 3120, in Dispatch
self._module_dict)
File "/Google App Engine/google/appengine/tools/dev_appserver.py", line 2972, in ExecuteCGI
env, infile, outfile)
File "/Google App Engine/google/appengine/ext/go/__init__.py", line 399, in execute_go_cgi
GO_APP.make_and_run()
File "/Google App Engine/google/appengine/ext/go/__init__.py", line 362, in make_and_run
wait_until_go_app_ready(self.proc.pid)
File "/Google App Engine/google/appengine/ext/go/__init__.py", line 285, in wait_until_go_app_ready
raise Exception('unable to start ' + GO_APP_NAME)
Exception: unable to start _go_app
INFO 2011-10-07 20:01:12,242 dev_appserver.py:4247] "GET / HTTP/1.1" 500 -
INFO 2011-10-07 20:01:12,505 __init__.py:351] running _go_app
throw: init rescheduling
runtime.throw+0x40 /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/runtime.c:102
runtime.throw(0x278c7f, 0xdc73)
schedule+0x3e /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/proc.c:535
schedule(0x10803000, 0x10803000)
runtime.mcall+0x3a /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/386/asm.s:174
runtime.mcall(0x10803000, 0x0)
goroutine 2 [1]:
net.*pollServer·Run /private/tmp/appengine/google_appengine/goroot/src/pkg/net/fd.go:213
net.*pollServer·Run(0x10801c90, 0x0)
runtime.goexit /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/proc.c:178
runtime.goexit()
----- goroutine created by -----
net.newPollServer+0x2dd /private/tmp/appengine/google_appengine/goroot/src/pkg/net/newpollserver.go:39
goroutine 1 [4]:
runtime.gosched+0x4d /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/proc.c:603
runtime.gosched()
runtime.chanrecv+0x14d /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/chan.c:361
runtime.chanrecv(0x1081d900, 0x30800e6c, 0x0, 0x0, 0x0, ...)
runtime.chanrecv1+0x3f /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/chan.c:424
runtime.chanrecv1(0x1081d900, 0x1081e580)
net.*pollServer·WaitRead+0x47 /private/tmp/appengine/google_appengine/goroot/src/pkg/net/fd.go:255
net.*pollServer·WaitRead(0x10801c90, 0x1081e580, 0x0)
net.*netFD·accept+0x2ae /private/tmp/appengine/google_appengine/goroot/src/pkg/net/fd.go:605
net.*netFD·accept(0x1081e580, 0x45716, 0x0, 0x0, 0x0, ...)
net.*TCPListener·AcceptTCP+0x53 /private/tmp/appengine/google_appengine/goroot/src/pkg/net/tcpsock.go:272
net.*TCPListener·AcceptTCP(0x108008b8, 0x30800f00, 0x0, 0x0)
net.*TCPListener·Accept+0x36 /private/tmp/appengine/google_appengine/goroot/src/pkg/net/tcpsock.go:282
net.*TCPListener·Accept(0x108008b8, 0x0, 0x0, 0x0, 0x0, ...)
http.*Server·Serve+0x96 /private/tmp/appengine/google_appengine/goroot/src/pkg/http/server.go:868
http.*Server·Serve(0x10839d20, 0x10839e20, 0x108008b8, 0x0, 0x0, ...)
http.*Server·ListenAndServe+0x9c /private/tmp/appengine/google_appengine/goroot/src/pkg/http/server.go:855
http.*Server·ListenAndServe(0x10839d20, 0x10839d20, 0x406)
http.ListenAndServe+0x52 /private/tmp/appengine/google_appengine/goroot/src/pkg/http/server.go:920
http.ListenAndServe(0x155640, 0x6, 0x0, 0x0, 0x0, ...)
BitBlock.init·1+0x174 BitBlock/BitBlock.go:43
BitBlock.init·1()
BitBlock.init+0x70 BitBlock/BitBlock.go:0
BitBlock.init()
main.init+0x39 _go_main.go:0
main.init()
runtime.mainstart+0x5 /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/386/asm.s:91
runtime.mainstart()
runtime.goexit /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/proc.c:178
runtime.goexit()
----- goroutine created by -----
_rt0_386+0xbf /private/tmp/appengine/google_appengine/goroot/src/pkg/runtime/386/asm.s:80
ERROR 2011-10-07 20:01:13,530 dev_appserver.py:4200] Exception encountered handling request
Traceback (most recent call last):
File "/Google App Engine/google/appengine/tools/dev_appserver.py", line 4143, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
File "/Google App Engine/google/appengine/tools/dev_appserver.py", line 4049, in _Dispatch
base_env_dict=env_dict)
File "/Google App Engine/google/appengine/tools/dev_appserver.py", line 616, in Dispatch
base_env_dict=base_env_dict)
File "/Google App Engine/google/appengine/tools/dev_appserver.py", line 3120, in Dispatch
self._module_dict)
File "/Google App Engine/google/appengine/tools/dev_appserver.py", line 2972, in ExecuteCGI
env, infile, outfile)
File "/Google App Engine/google/appengine/ext/go/__init__.py", line 399, in execute_go_cgi
GO_APP.make_and_run()
File "/Google App Engine/google/appengine/ext/go/__init__.py", line 362, in make_and_run
wait_until_go_app_ready(self.proc.pid)
File "/Google App Engine/google/appengine/ext/go/__init__.py", line 285, in wait_until_go_app_ready
raise Exception('unable to start ' + GO_APP_NAME)
Exception: unable to start _go_app
INFO 2011-10-07 20:01:13,531 dev_appserver.py:4247] "GET /favicon.ico HTTP/1.1" 500 -
You can't do that. App Engine doesn't allow custom http ports. App Engine environment is heavily sandboxed and not everything that you can do in pure Go (or Java or Python) is available in their respective App Engine environments.
From http://code.google.com/appengine/docs/go/overview.html:
As with the Java and Python environments, not all the standard library's functionality is available inside the sandbox. For example, attempts to open a socket or write to a file will return an os.EINVAL error.
Go apps run inside a secure "sandbox" environment with a reduced set of libraries. For instance, an app cannot write data to the local file system or make arbitrary network connections. Instead, apps use scalable services provided by App Engine to store data and communicate over the Internet.
It is indeed possible, all you need to do is goapp serve --port=3000 (or whatever port you'd like).
If you're trying to access your goapp on a VM (parallels), like I was, you can do goapp serve --host=0.0.0.0
Documentation: https://cloud.google.com/appengine/docs/go/tools/devserver#Go_Command-line_arguments