问:
Why apps only build on Android 11
I made an android app. The test was done with android version 9 and android version 11 devices.

But it works fine on android 11 version, but gives an error on android 9 version. I tried looking for information but couldn't find it. Thanks for your help.

Android 9 Error Code:

```<code>Build fingerprint: 'samsung/dreamlteks/dreamlteks:9/PPR1.180610.011/G950NKSU4DTD1:user/release-keys'
Revision: '11'
ABI: 'arm64'
pid: 14715, tid: 14715, name: mobile_20220531  >>> package_name <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
    x0  0000000000000000  x1  000000000000000d  x2  756f43656c69466e  x3  6f6300203a20746e
    x4  0000000000000028  x5  0000800000000000  x6  6e61ff1f391f736d  x7  7f7f7f7f7f7f7f7f
    x8  0000000000000000  x9  ffffffffffffffff  x10 0000007d5b9d99d0  x11 ffffffffffffffff
    x12 ffffffffffffffff  x13 0000000000000001  x14 0000007dfb17d000  x15 ffffffffffffffff
    x16 0000007d5b9a3910  x17 0000007d5b92b824  x18 0000000000000000  x19 0000007d74c14c00
    x20 0000000000000000  x21 0000007d74c14c00  x22 0000007fc24b7340  x23 0000007d5e2f242d
    x24 000000000000000c  x25 0000007dfb6c35f8  x26 0000007d74c14ca0  x27 0000000000000003
    x28 0000007fc24b7070  x29 0000007fc24b6b90
    sp  0000007fc24b6b80  lr  0000007d5b92a6a4  pc  0000007d5b92b83c

</code>```

Error Source:

```<code>ptr_entry_info = (st_entrymodel_info *)malloc(entry_cnt * sizeof(st_entrymodel_info))
</code>```

More information

```<code>
backtrace:
    #00 pc 00000000000da114  /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk (offset 0x4929000) (_JNIEnv::NewByteArray(int)+24)
    #01 pc 00000000000d8f78  /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk (offset 0x4929000) (MainControll::LogStrInt(char*, int, int, int, int, int)+160)
    #02 pc 00000000000d8d30  /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk (offset 0x4929000) (Java_com_example_elfscoreprint_1mobile_120220531_MainActivity_GetFileData+640)
    #03 pc 000000000056afe0  /system/lib64/libart.so (art_quick_generic_jni_trampoline+144)
    #04 pc 0000000000561f88  /system/lib64/libart.so (art_quick_invoke_stub+584)
    #05 pc 00000000000d0140  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
    #06 pc 00000000002865e8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
    #07 pc 00000000002805a4  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
    #08 pc 0000000000531240  /system/lib64/libart.so (MterpInvokeVirtual+584)
    #09 pc 0000000000554614  /system/lib64/libart.so (ExecuteMterpImpl+14228)
    #10 pc 00000000000604f0  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (com.example.elfscoreprint_mobile_20220531.MainActivity.a+988)
    #11 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #12 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #13 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #14 pc 0000000000532580  /system/lib64/libart.so (MterpInvokeDirect+296)
    #15 pc 0000000000554714  /system/lib64/libart.so (ExecuteMterpImpl+14484)
    #16 pc 00000000000600fc  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (com.example.elfscoreprint_mobile_20220531.MainActivity.b)
    #17 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #18 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #19 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #20 pc 0000000000531240  /system/lib64/libart.so (MterpInvokeVirtual+584)
    #21 pc 0000000000554614  /system/lib64/libart.so (ExecuteMterpImpl+14228)
    #22 pc 000000000005eefc  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (com.example.elfscoreprint_mobile_20220531.a.onMethodCall+4)
    #23 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #24 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #25 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #26 pc 00000000005321b8  /system/lib64/libart.so (MterpInvokeInterface+1392)
    #27 pc 0000000000554814  /system/lib64/libart.so (ExecuteMterpImpl+14740)
    #28 pc 00000000000837c2  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage+34)
    #29 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #30 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #31 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #32 pc 00000000005321b8  /system/lib64/libart.so (MterpInvokeInterface+1392)
    #33 pc 0000000000554814  /system/lib64/libart.so (ExecuteMterpImpl+14740)
    #34 pc 0000000000078760  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (io.flutter.embedding.engine.dart.DartMessenger.invokeHandler+36)
    #35 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #36 pc 0000000000521980  /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
    #37 pc 000000000056b0fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
    #38 pc 00000000000144d8  /dev/ashmem/dalvik-jit-code-cache_32135_32135 (deleted) (io.flutter.embedding.engine.dart.DartMessenger.a+248)
    #39 pc 0000000000561f88  /system/lib64/libart.so (art_quick_invoke_stub+584)
    #40 pc 00000000000d0140  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
    #41 pc 00000000002865e8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
    #42 pc 00000000002816b0  /system/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752)
    #43 pc 0000000000533db4  /system/lib64/libart.so (MterpInvokeDirectRange+244)
    #44 pc 0000000000554a14  /system/lib64/libart.so (ExecuteMterpImpl+15252)
    #45 pc 00000000000787c0  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (io.flutter.embedding.engine.dart.DartMessenger.b)
    #46 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #47 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #48 pc 0000000000281694  /system/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+724)
    #49 pc 0000000000532a78  /system/lib64/libart.so (MterpInvokeVirtualRange+576)
    #50 pc 0000000000554914  /system/lib64/libart.so (ExecuteMterpImpl+14996)
    #51 pc 000000000007787c  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (io.flutter.embedding.engine.dart.c.run+24)
    #52 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #53 pc 0000000000521980  /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
    #54 pc 000000000056b0fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
    #55 pc 00000000000146a0  /dev/ashmem/dalvik-jit-code-cache_32135_32135 (deleted) (android.os.Handler.handleCallback+64)
    #56 pc 000000000056224c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
    #57 pc 00000000000d0160  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
    #58 pc 00000000002865e8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
    #59 pc 00000000002805a4  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
    #60 pc 0000000000532744  /system/lib64/libart.so (MterpInvokeStatic+204)
    #61 pc 0000000000554794  /system/lib64/libart.so (ExecuteMterpImpl+14612)
    #62 pc 0000000000c4e7ac  /system/framework/boot-framework.vdex (android.os.Handler.dispatchMessage+8)
    #63 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #64 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #65 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #66 pc 0000000000531240  /system/lib64/libart.so (MterpInvokeVirtual+584)
    #67 pc 0000000000554614  /system/lib64/libart.so (ExecuteMterpImpl+14228)
    #68 pc 0000000000c5741a  /system/framework/boot-framework.vdex (android.os.Looper.loop+406)
    #69 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #70 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #71 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #72 pc 0000000000532744  /system/lib64/libart.so (MterpInvokeStatic+204)
    #73 pc 0000000000554794  /system/lib64/libart.so (ExecuteMterpImpl+14612)
    #74 pc 00000000004c1330  /system/framework/boot-framework.vdex (android.app.ActivityThread.main+220)
    #75 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #76 pc 0000000000521980  /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
    #77 pc 000000000056b0fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
    #78 pc 000000000056224c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
    #79 pc 00000000000d0160  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
    #80 pc 00000000004682e0  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
    #81 pc 0000000000469d38  /system/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1440)
    #82 pc 00000000003f87b8  /system/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+48)
    #83 pc 000000000011f7e4  /system/framework/arm64/boot.oat (offset 0x115000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
    #84 pc 0000000000561f88  /system/lib64/libart.so (art_quick_invoke_stub+584)
    #85 pc 00000000000d0140  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
    #86 pc 00000000002865e8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
    #87 pc 00000000002805a4  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
    #88 pc 0000000000531240  /system/lib64/libart.so (MterpInvokeVirtual+584)
    #89 pc 0000000000554614  /system/lib64/libart.so (ExecuteMterpImpl+14228)
    #90 pc 00000000013bd79a  /system/framework/boot-framework.vdex (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
    #91 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #92 pc 0000000000521980  /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
    #93 pc 000000000056b0fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
    #94 pc 0000000000e16700  /system/framework/arm64/boot-framework.oat (offset 0x41f000) (com.android.internal.os.ZygoteInit.main+2208)
    #95 pc 000000000056224c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
    #96 pc 00000000000d0160  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
    #97 pc 00000000004682e0  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
    #98 pc 0000000000467f38  /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+416)
    #99 pc 000000000036ab24  /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+644)
    #100 pc 00000000000b9d10  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120)
    #101 pc 00000000000bc8d4  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+780)
    #102 pc 0000000000004990  /system/bin/app_process64 (main+1200)
    #103 pc 00000000000b0550  /system/lib64/libc.so (__libc_init+88)
</code>```

Is there a problem because the version of the platform is 11.0.10 like in the image??

Title: Why apps only build on Android 11

Body:
I made an android app. The test was done with android version 9 and android version 11 devices.

But it works fine on android 11 version, but gives an error on android 9 version. I tried looking for information but couldn't find it. Thanks for your help.

Android 9 Error Code:

Build fingerprint: 'samsung/dreamlteks/dreamlteks:9/PPR1.180610.011/G950NKSU4DTD1:user/release-keys'
Revision: '11'
ABI: 'arm64'
pid: 14715, tid: 14715, name: mobile_20220531  >>> package_name <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
    x0  0000000000000000  x1  000000000000000d  x2  756f43656c69466e  x3  6f6300203a20746e
    x4  0000000000000028  x5  0000800000000000  x6  6e61ff1f391f736d  x7  7f7f7f7f7f7f7f7f
    x8  0000000000000000  x9  ffffffffffffffff  x10 0000007d5b9d99d0  x11 ffffffffffffffff
    x12 ffffffffffffffff  x13 0000000000000001  x14 0000007dfb17d000  x15 ffffffffffffffff
    x16 0000007d5b9a3910  x17 0000007d5b92b824  x18 0000000000000000  x19 0000007d74c14c00
    x20 0000000000000000  x21 0000007d74c14c00  x22 0000007fc24b7340  x23 0000007d5e2f242d
    x24 000000000000000c  x25 0000007dfb6c35f8  x26 0000007d74c14ca0  x27 0000000000000003
    x28 0000007fc24b7070  x29 0000007fc24b6b90
    sp  0000007fc24b6b80  lr  0000007d5b92a6a4  pc  0000007d5b92b83c

Error Source:

ptr_entry_info = (st_entrymodel_info *)malloc(entry_cnt * sizeof(st_entrymodel_info))

More information

backtrace:
    #00 pc 00000000000da114  /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk (offset 0x4929000) (_JNIEnv::NewByteArray(int)+24)
    #01 pc 00000000000d8f78  /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk (offset 0x4929000) (MainControll::LogStrInt(char*, int, int, int, int, int)+160)
    #02 pc 00000000000d8d30  /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk (offset 0x4929000) (Java_com_example_elfscoreprint_1mobile_120220531_MainActivity_GetFileData+640)
    #03 pc 000000000056afe0  /system/lib64/libart.so (art_quick_generic_jni_trampoline+144)
    #04 pc 0000000000561f88  /system/lib64/libart.so (art_quick_invoke_stub+584)
    #05 pc 00000000000d0140  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
    #06 pc 00000000002865e8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
    #07 pc 00000000002805a4  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
    #08 pc 0000000000531240  /system/lib64/libart.so (MterpInvokeVirtual+584)
    #09 pc 0000000000554614  /system/lib64/libart.so (ExecuteMterpImpl+14228)
    #10 pc 00000000000604f0  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (com.example.elfscoreprint_mobile_20220531.MainActivity.a+988)
    #11 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #12 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #13 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #14 pc 0000000000532580  /system/lib64/libart.so (MterpInvokeDirect+296)
    #15 pc 0000000000554714  /system/lib64/libart.so (ExecuteMterpImpl+14484)
    #16 pc 00000000000600fc  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (com.example.elfscoreprint_mobile_20220531.MainActivity.b)
    #17 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #18 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #19 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #20 pc 0000000000531240  /system/lib64/libart.so (MterpInvokeVirtual+584)
    #21 pc 0000000000554614  /system/lib64/libart.so (ExecuteMterpImpl+14228)
    #22 pc 000000000005eefc  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (com.example.elfscoreprint_mobile_20220531.a.onMethodCall+4)
    #23 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #24 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #25 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #26 pc 00000000005321b8  /system/lib64/libart.so (MterpInvokeInterface+1392)
    #27 pc 0000000000554814  /system/lib64/libart.so (ExecuteMterpImpl+14740)
    #28 pc 00000000000837c2  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage+34)
    #29 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #30 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #31 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #32 pc 00000000005321b8  /system/lib64/libart.so (MterpInvokeInterface+1392)
    #33 pc 0000000000554814  /system/lib64/libart.so (ExecuteMterpImpl+14740)
    #34 pc 0000000000078760  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (io.flutter.embedding.engine.dart.DartMessenger.invokeHandler+36)
    #35 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #36 pc 0000000000521980  /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
    #37 pc 000000000056b0fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
    #38 pc 00000000000144d8  /dev/ashmem/dalvik-jit-code-cache_32135_32135 (deleted) (io.flutter.embedding.engine.dart.DartMessenger.a+248)
    #39 pc 0000000000561f88  /system/lib64/libart.so (art_quick_invoke_stub+584)
    #40 pc 00000000000d0140  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
    #41 pc 00000000002865e8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
    #42 pc 00000000002816b0  /system/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752)
    #43 pc 0000000000533db4  /system/lib64/libart.so (MterpInvokeDirectRange+244)
    #44 pc 0000000000554a14  /system/lib64/libart.so (ExecuteMterpImpl+15252)
    #45 pc 00000000000787c0  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (io.flutter.embedding.engine.dart.DartMessenger.b)
    #46 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #47 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #48 pc 0000000000281694  /system/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+724)
    #49 pc 0000000000532a78  /system/lib64/libart.so (MterpInvokeVirtualRange+576)
    #50 pc 0000000000554914  /system/lib64/libart.so (ExecuteMterpImpl+14996)
    #51 pc 000000000007787c  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.elfscoreprint_mobile_20220531-gO-SIf7DRkP95RhmXzloqg==/base.apk_32135_32135 (deleted) (io.flutter.embedding.engine.dart.c.run+24)
    #52 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #53 pc 0000000000521980  /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
    #54 pc 000000000056b0fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
    #55 pc 00000000000146a0  /dev/ashmem/dalvik-jit-code-cache_32135_32135 (deleted) (android.os.Handler.handleCallback+64)
    #56 pc 000000000056224c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
    #57 pc 00000000000d0160  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
    #58 pc 00000000002865e8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
    #59 pc 00000000002805a4  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
    #60 pc 0000000000532744  /system/lib64/libart.so (MterpInvokeStatic+204)
    #61 pc 0000000000554794  /system/lib64/libart.so (ExecuteMterpImpl+14612)
    #62 pc 0000000000c4e7ac  /system/framework/boot-framework.vdex (android.os.Handler.dispatchMessage+8)
    #63 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #64 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #65 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #66 pc 0000000000531240  /system/lib64/libart.so (MterpInvokeVirtual+584)
    #67 pc 0000000000554614  /system/lib64/libart.so (ExecuteMterpImpl+14228)
    #68 pc 0000000000c5741a  /system/framework/boot-framework.vdex (android.os.Looper.loop+406)
    #69 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #70 pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
    #71 pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
    #72 pc 0000000000532744  /system/lib64/libart.so (MterpInvokeStatic+204)
    #73 pc 0000000000554794  /system/lib64/libart.so (ExecuteMterpImpl+14612)
    #74 pc 00000000004c1330  /system/framework/boot-framework.vdex (android.app.ActivityThread.main+220)
    #75 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #76 pc 0000000000521980  /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
    #77 pc 000000000056b0fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
    #78 pc 000000000056224c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
    #79 pc 00000000000d0160  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
    #80 pc 00000000004682e0  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
    #81 pc 0000000000469d38  /system/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1440)
    #82 pc 00000000003f87b8  /system/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+48)
    #83 pc 000000000011f7e4  /system/framework/arm64/boot.oat (offset 0x115000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
    #84 pc 0000000000561f88  /system/lib64/libart.so (art_quick_invoke_stub+584)
    #85 pc 00000000000d0140  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
    #86 pc 00000000002865e8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
    #87 pc 00000000002805a4  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
    #88 pc 0000000000531240  /system/lib64/libart.so (MterpInvokeVirtual+584)
    #89 pc 0000000000554614  /system/lib64/libart.so (ExecuteMterpImpl+14228)
    #90 pc 00000000013bd79a  /system/framework/boot-framework.vdex (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
    #91 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2089273699+496)
    #92 pc 0000000000521980  /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
    #93 pc 000000000056b0fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
    #94 pc 0000000000e16700  /system/framework/arm64/boot-framework.oat (offset 0x41f000) (com.android.internal.os.ZygoteInit.main+2208)
    #95 pc 000000000056224c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
    #96 pc 00000000000d0160  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
    #97 pc 00000000004682e0  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
    #98 pc 0000000000467f38  /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+416)
    #99 pc 000000000036ab24  /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+644)
    #100 pc 00000000000b9d10  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120)
    #101 pc 00000000000bc8d4  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+780)
    #102 pc 0000000000004990  /system/bin/app_process64 (main+1200)
    #103 pc 00000000000b0550  /system/lib64/libc.so (__libc_init+88)

Is there a problem because the version of the platform is 11.0.10 like in the image??


来源: stackexchange

问:
Azure data factory job failing with Job Completed Batch error code
Azure Data factory pipeline activity is failing with the error "The specified job is already in a completed state.". Even re-running the activity is also failing with same error.

There are no stderr.txt and stdout.txt files generated for the tasks to gain additional insight into the issue.

```<code>"statusCode": 409,
    "statusMessage": "The specified job is already in a completed state.",
    "batchErrorCode": "JobCompleted",
    "batchErrorMessage": "The specified job is already in a completed state."
</code>```

Can anyone help us how to resolve this issue ?

Thanks in advance.

ContentLicense: CC BY-SA 4.0

Body:
Azure Data factory pipeline activity is failing with the error "The specified job is already in a completed state.". Even re-running the activity is also failing with same error.

There are no stderr.txt and stdout.txt files generated for the tasks to gain additional insight into the issue.

"statusCode": 409,
    "statusMessage": "The specified job is already in a completed state.",
    "batchErrorCode": "JobCompleted",
    "batchErrorMessage": "The specified job is already in a completed state."

Can anyone help us how to resolve this issue ?

Thanks in advance.


问:
About Image Denoising Paper Training Method: IDR: Self-Supervised Image Denoising via Iterative Data Refinement
Has anyone successfully trained the method for this paper?
I tried many times but always fail.
I really want to train this model for raw image denoising.
Could someone help me pls?

Below is this paper's github
https://github.com/zhangyi-3/IDR

I would like to use the dataset provided by the author, But I don't know the data structure and how to start.


问:
Cloudflare Deployment: Error: Cannot resolve module 'style-loader'

any idea how to fix this, the webpack config in the ckeditor folder is set like this:

const path = require("path");
const webpack = require("webpack");
const { bundler, styles } = require("@ckeditor/ckeditor5-dev-utils");
const CKEditorWebpackPlugin = require("@ckeditor/ckeditor5-dev-webpack-plugin");
const TerserWebpackPlugin = require("terser-webpack-plugin");

module.exports = {
  devtool: "source-map",
  performance: { hints: false },

  entry: path.resolve(__dirname, "src", "ckeditor.js"),

  output: {
    // The name under which the editor will be exported.
    library: "CKSource",

    path: path.resolve(__dirname, "build"),
    filename: "ckeditor.js",
    libraryTarget: "umd",
    libraryExport: "default",
  },

  optimization: {
    minimizer: [
      (compiler)=>{
        const TerserPlugin = require('terser-webpack-plugin');
        new TerserPlugin({
          terserOptions: {
            compress: {},
          }
        }).apply(compiler);
      }
    ],
  },

  plugins: [
    new CKEditorWebpackPlugin({
      // UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
      // When changing the built-in language, remember to also change it in the editor's configuration (src/ckeditor.js).
      language: "en",
      additionalLanguages: "all",
    }),
    new webpack.BannerPlugin({
      banner: bundler.getLicenseBanner(),
      raw: true,
    }),
  ],

  module: {
    rules: [
      {
        test: /\.svg$/,
        use: ["raw-loader"],
      },
      {
        test: /\.css$/,
        use: [
          {
            loader: "style-loader",
            options: {
              injectType: "singletonStyleTag",
              attributes: {
                "data-cke": true,
              },
            },
          },
          {
            loader: "css-loader",
          },
          {
            loader: "postcss-loader",
            options: {
              postcssOptions: styles.getPostCssConfig({
                themeImporter: {
                  themePath: require.resolve("@ckeditor/ckeditor5-theme-lark"),
                },
                minify: true,
              }),
            },
          },
        ],
      },
    ],
  },
};

```

I tried to delete package-lock.json and delete node_modules and reinstall everything, but it did not work.

Tried other solutions from other Stack overflow questions that had similar issues, nothing worked

this happens for ckeditor by the way.

Body:
any idea how to fix this, the webpack config in the ckeditor folder is set like this:

const path = require("path");
const webpack = require("webpack");
const { bundler, styles } = require("@ckeditor/ckeditor5-dev-utils");
const CKEditorWebpackPlugin = require("@ckeditor/ckeditor5-dev-webpack-plugin");
const TerserWebpackPlugin = require("terser-webpack-plugin");

module.exports = {
  devtool: "source-map",
  performance: { hints: false },

  entry: path.resolve(__dirname, "src", "ckeditor.js"),

  output: {
    // The name under which the editor will be exported.
    library: "CKSource",

    path: path.resolve(__dirname, "build"),
    filename: "ckeditor.js",
    libraryTarget: "umd",
    libraryExport: "default",
  },

  optimization: {
    minimizer: [
      (compiler)=>{
        const TerserPlugin = require('terser-webpack-plugin');
        new TerserPlugin({
          terserOptions: {
            compress: {},
          }
        }).apply(compiler);
      }
    ],
  },

  plugins: [
    new CKEditorWebpackPlugin({
      // UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
      // When changing the built-in language, remember to also change it in the editor's configuration (src/ckeditor.js).
      language: "en",
      additionalLanguages: "all",
    }),
    new webpack.BannerPlugin({
      banner: bundler.getLicenseBanner(),
      raw: true,
    }),
  ],

  module: {
    rules: [
      {
        test: /\.svg$/,
        use: ["raw-loader"],
      },
      {
        test: /\.css$/,
        use: [
          {
            loader: "style-loader",
            options: {
              injectType: "singletonStyleTag",
              attributes: {
                "data-cke": true,
              },
            },
          },
          {
            loader: "css-loader",
          },
          {
            loader: "postcss-loader",
            options: {
              postcssOptions: styles.getPostCssConfig({
                themeImporter: {
                  themePath: require.resolve("@ckeditor/ckeditor5-theme-lark"),
                },
                minify: true,
              }),
            },
          },
        ],
      },
    ],
  },
};

I tried to delete package-lock.json and delete node_modules and reinstall everything, but it did not work.

Tried other solutions from other Stack overflow questions that had similar issues, nothing worked

this happens for ckeditor by the way.


问:
AWS SES Address in mailbox given [] does not comply with RFC 2822, 3.6.2
When I am using a normal SMTP server such as mailtrap all my emails are working fine, but when I started using AWS SES SMTP, which has production access, I started to getting below error

```<code>Swift_RfcComplianceException Object(
[message:protected] => Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php
[line:protected] => 355
[trace:Exception:private] => Array
</code>```

My code is ForgotPasswordController

```<code><?php

namespace Webkul\Customer\Http\Controllers;

use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
use Illuminate\Support\Facades\Password;
use Webkul\Customer\Http\Requests\CustomerForgotPasswordRequest;

class ForgotPasswordController extends Controller
{
    use SendsPasswordResetEmails;

    /**
     * Contains route related configuration.
     *
     * @var array
     */
    protected $_config;

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->_config = request('_config');
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\View\View
     */
    public function create()
    {
        return view($this->_config['view']);
    }

    /**
     * Store a newly created resource in storage.
     *
     * @return \Illuminate\Http\Response
     */
    public function store(CustomerForgotPasswordRequest $request)
    {
        $request->validated();
        if ($request->ajax()) {
            try {
            print_r (env('MAIL_USERNAME'));
                $response = $this->broker()->sendResetLink($request->only(['email']));

                if ($response == Password::RESET_LINK_SENT) {
                    return response()->json(['success' => true, 'message' => trans('customer::app.forget_password.reset_link_sent')]);
                }

                return response()->json(['success' => false, 'message' => trans('customer::app.forget_password.email_not_exist')]);
            } catch (\Swift_RfcComplianceException $e) {
             report($e);
                echo "```";
                print_r($e); die;
                return response()->json(['success' => false, 'message' => trans('customer::app.forget_password.reset_link_sent')]);

            } catch (\Exception $e) {
                report($e);
                echo "```";
                print_r($e); die;
                return response()->json(['success' => false, 'message' => trans($e->getMessage())]);

            }
        } else {
            try {
                $response = $this->broker()->sendResetLink($request->only(['email']));

                if ($response == Password::RESET_LINK_SENT) {
                    session()->flash('success', trans('customer::app.forget_password.reset_link_sent'));

                    return back();
                }

                return back()
                    ->withInput($request->only(['email']))
                    ->withErrors([
                        'email' => trans('customer::app.forget_password.email_not_exist'),
                    ]);
            } catch (\Swift_RfcComplianceException $e) {
                session()->flash('success', trans('customer::app.forget_password.reset_link_sent'));

                return redirect()->back();
            } catch (\Exception $e) {
                report($e);

                session()->flash('error', trans($e->getMessage()));

                return redirect()->back();
            }
        }
    }

    /**
     * Get the broker to be used during password reset.
     *
     * @return \Illuminate\Contracts\Auth\PasswordBroker
     */
    public function broker()
    {
        return Password::broker('customers');
    }
}
</code>```

SMTP setting are

```<code>MAIL_MAILER=smtp
MAIL_HOST=email-smtp.us-east-1.amazonaws.com
MAIL_POR=587
MAIL_USERNAME=username as per SES
MAIL_PASSWORD=password as per ses
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=info@mydomain.com
MAIL_FROM_NAME="${APP_NAME}"
</code>```

Logs are

[2022-12-26 13:10:01] prod.ERROR: Address in mailbox given [] does not comply with RFC 2822, 3.6.2. {"exception":"[object] (Swift_RfcComplianceException(code: 0): Address in mailbox given [] does not comply with RFC 2822, 3.6.2. at /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php:355)
[stacktrace]
#0 /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(272): Swift_Mime_Headers_MailboxHeader->assertValidAddress()
#1 /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(117): Swift_Mime_Headers_MailboxHeader->normalizeMailboxes()
#2 /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(74): Swift_Mime_Headers_MailboxHeader->setNameAddresses()
#3 /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(600): Swift_Mime_Headers_MailboxHeader->setFieldBodyModel()
#4 /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php(213): Swift_Mime_SimpleMimeEntity->setHeaderFieldModel()
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Mail/Message.php(50): Swift_Mime_SimpleMessage->setFrom()
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/Channels/MailChannel.php(188): Illuminate\\Mail\\Message->from()
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/Channels/MailChannel.php(161): Illuminate\\Notifications\\Channels\\MailChannel->addSender()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/Channels/MailChannel.php(135): Illuminate\\Notifications\\Channels\\MailChannel->addressMessage()
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/Channels/MailChannel.php(80): Illuminate\\Notifications\\Channels\\MailChannel->buildMessage()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(271): Illuminate\\Notifications\\Channels\\MailChannel->Illuminate\\Notifications\\Channels\\{closure}()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/Channels/MailChannel.php(65): Illuminate\\Mail\\Mailer->send()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(148): Illuminate\\Notifications\\Channels\\MailChannel->send()
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(106): Illuminate\\Notifications\\NotificationSender->sendToNotifiable()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Traits/Localizable.php(19): Illuminate\\Notifications\\NotificationSender->Illuminate\\Notifications\\{closure}()
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(109): Illuminate\\Notifications\\NotificationSender->withLocale()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(79): Illuminate\\Notifications\\NotificationSender->sendNow()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/ChannelManager.php(39): Illuminate\\Notifications\\NotificationSender->send()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/RoutesNotifications.php(18): Illuminate\\Notifications\\ChannelManager->send()
#19 /var/www/html/packages/Webkul/Customer/src/Models/Customer.php(79): Webkul\\Customer\\Models\\Customer->notify()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Auth/Passwords/PasswordBroker.php(71): Webkul\\Customer\\Models\\Customer->sendPasswordResetNotification()
#21 /var/www/html/packages/Webkul/Customer/src/Http/Controllers/ForgotPasswordController.php(51): Illuminate\\Auth\\Passwords\\PasswordBroker->sendResetLink()
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Webkul\\Customer\\Http\\Controllers\\ForgotPasswordController->store()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(254): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(197): Illuminate\\Routing\\Route->runController()
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(695): Illuminate\\Routing\\Route->run()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#28 /var/www/html/packages/Webkul/Shop/src/Http/Middleware/HtmlMinifier.php(12): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Shop\\Http\\Middleware\\HtmlMinifier->handle()
#30 /var/www/html/packages/Webkul/Shop/src/Http/Middleware/Currency.php(46): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#31 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Shop\\Http\\Middleware\\Currency->handle()
#32 /var/www/html/packages/Webkul/Shop/src/Http/Middleware/Theme.php(31): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#33 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Shop\\Http\\Middleware\\Theme->handle()
#34 /var/www/html/packages/Webkul/Shop/src/Http/Middleware/Locale.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Shop\\Http\\Middleware\\Locale->handle()
#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#37 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#38 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#39 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle()
#40 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/AuthenticateSession.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#41 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Session\\Middleware\\AuthenticateSession->handle()
#42 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#43 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle()
#44 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#45 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(697): Illuminate\\Pipeline\\Pipeline->then()
#46 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack()
#47 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(636): Illuminate\\Routing\\Router->runRoute()
#48 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute()
#49 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(166): Illuminate\\Routing\\Router->dispatch()
#50 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#51 /var/www/html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(59): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#52 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle()
#53 /var/www/html/packages/Webkul/Core/src/Http/Middleware/SecureHeaders.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#54 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Core\\Http\\Middleware\\SecureHeaders->handle()
#55 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#56 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest()
#57 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle()
#58 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#59 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle()
#60 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#61 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle()
#62 /var/www/html/packages/Webkul/Core/src/Http/Middleware/CheckForMaintenanceMode.php(114): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#63 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Core\\Http\\Middleware\\CheckForMaintenanceMode->handle()
#64 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#65 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then()
#66 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#67 /var/www/html/public/index.php(88): Illuminate\\Foundation\\Http\\Kernel->handle()
#68 {main}
"}
```
<p>UPDATE</p>
<p>If I try another way for sending email it worked.</p>
```$data = array('name'=>"urfusion");
                Mail::send([], [], function($message) {
         $message->to('urfusion@urfusion.net', 'urfusion')->subject
            ('Mail');
         $message->from('info@domain.com','domain');
      });
```

Body:
When I am using a normal SMTP server such as mailtrap all my emails are working fine, but when I started using AWS SES SMTP, which has production access, I started to getting below error

Swift_RfcComplianceException Object(
[message:protected] => Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php
[line:protected] => 355
[trace:Exception:private] => Array

My code is ForgotPasswordController

<?php

namespace Webkul\Customer\Http\Controllers;

use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
use Illuminate\Support\Facades\Password;
use Webkul\Customer\Http\Requests\CustomerForgotPasswordRequest;

class ForgotPasswordController extends Controller
{
    use SendsPasswordResetEmails;

    /**
     * Contains route related configuration.
     *
     * @var array
     */
    protected $_config;

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->_config = request('_config');
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\View\View
     */
    public function create()
    {
        return view($this->_config['view']);
    }

    /**
     * Store a newly created resource in storage.
     *
     * @return \Illuminate\Http\Response
     */
    public function store(CustomerForgotPasswordRequest $request)
    {
        $request->validated();
        if ($request->ajax()) {
            try {
            print_r (env('MAIL_USERNAME'));
                $response = $this->broker()->sendResetLink($request->only(['email']));

                if ($response == Password::RESET_LINK_SENT) {
                    return response()->json(['success' => true, 'message' => trans('customer::app.forget_password.reset_link_sent')]);
                }

                return response()->json(['success' => false, 'message' => trans('customer::app.forget_password.email_not_exist')]);
            } catch (\Swift_RfcComplianceException $e) {
             report($e);
                echo "
";
                print_r($e); die;
                return response()->json(['success' => false, 'message' => trans('customer::app.forget_password.reset_link_sent')]);

            } catch (\Exception $e) {
                report($e);
                echo "
";
                print_r($e); die;
                return response()->json(['success' => false, 'message' => trans($e->getMessage())]);

            }
        } else {
            try {
                $response = $this->broker()->sendResetLink($request->only(['email']));

                if ($response == Password::RESET_LINK_SENT) {
                    session()->flash('success', trans('customer::app.forget_password.reset_link_sent'));

                    return back();
                }

                return back()
                    ->withInput($request->only(['email']))
                    ->withErrors([
                        'email' => trans('customer::app.forget_password.email_not_exist'),
                    ]);
            } catch (\Swift_RfcComplianceException $e) {
                session()->flash('success', trans('customer::app.forget_password.reset_link_sent'));

                return redirect()->back();
            } catch (\Exception $e) {
                report($e);

                session()->flash('error', trans($e->getMessage()));

                return redirect()->back();
            }
        }
    }

    /**
     * Get the broker to be used during password reset.
     *
     * @return \Illuminate\Contracts\Auth\PasswordBroker
     */
    public function broker()
    {
        return Password::broker('customers');
    }
}

SMTP setting are

MAIL_MAILER=smtp
MAIL_HOST=email-smtp.us-east-1.amazonaws.com
MAIL_POR=587
MAIL_USERNAME=username as per SES
MAIL_PASSWORD=password as per ses
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=info@mydomain.com
MAIL_FROM_NAME="${APP_NAME}"

Logs are

[2022-12-26 13:10:01] prod.ERROR: Address in mailbox given [] does not comply with RFC 2822, 3.6.2. {"exception":"[object] (Swift_RfcComplianceException(code: 0): Address in mailbox given [] does not comply with RFC 2822, 3.6.2. at /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php:355)
[stacktrace]
#0 /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(272): Swift_Mime_Headers_MailboxHeader->assertValidAddress()
#1 /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(117): Swift_Mime_Headers_MailboxHeader->normalizeMailboxes()
#2 /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(74): Swift_Mime_Headers_MailboxHeader->setNameAddresses()
#3 /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(600): Swift_Mime_Headers_MailboxHeader->setFieldBodyModel()
#4 /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php(213): Swift_Mime_SimpleMimeEntity->setHeaderFieldModel()
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Mail/Message.php(50): Swift_Mime_SimpleMessage->setFrom()
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/Channels/MailChannel.php(188): Illuminate\\Mail\\Message->from()
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/Channels/MailChannel.php(161): Illuminate\\Notifications\\Channels\\MailChannel->addSender()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/Channels/MailChannel.php(135): Illuminate\\Notifications\\Channels\\MailChannel->addressMessage()
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/Channels/MailChannel.php(80): Illuminate\\Notifications\\Channels\\MailChannel->buildMessage()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(271): Illuminate\\Notifications\\Channels\\MailChannel->Illuminate\\Notifications\\Channels\\{closure}()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/Channels/MailChannel.php(65): Illuminate\\Mail\\Mailer->send()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(148): Illuminate\\Notifications\\Channels\\MailChannel->send()
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(106): Illuminate\\Notifications\\NotificationSender->sendToNotifiable()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Traits/Localizable.php(19): Illuminate\\Notifications\\NotificationSender->Illuminate\\Notifications\\{closure}()
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(109): Illuminate\\Notifications\\NotificationSender->withLocale()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(79): Illuminate\\Notifications\\NotificationSender->sendNow()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/ChannelManager.php(39): Illuminate\\Notifications\\NotificationSender->send()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Notifications/RoutesNotifications.php(18): Illuminate\\Notifications\\ChannelManager->send()
#19 /var/www/html/packages/Webkul/Customer/src/Models/Customer.php(79): Webkul\\Customer\\Models\\Customer->notify()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Auth/Passwords/PasswordBroker.php(71): Webkul\\Customer\\Models\\Customer->sendPasswordResetNotification()
#21 /var/www/html/packages/Webkul/Customer/src/Http/Controllers/ForgotPasswordController.php(51): Illuminate\\Auth\\Passwords\\PasswordBroker->sendResetLink()
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Webkul\\Customer\\Http\\Controllers\\ForgotPasswordController->store()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(254): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(197): Illuminate\\Routing\\Route->runController()
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(695): Illuminate\\Routing\\Route->run()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#28 /var/www/html/packages/Webkul/Shop/src/Http/Middleware/HtmlMinifier.php(12): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Shop\\Http\\Middleware\\HtmlMinifier->handle()
#30 /var/www/html/packages/Webkul/Shop/src/Http/Middleware/Currency.php(46): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#31 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Shop\\Http\\Middleware\\Currency->handle()
#32 /var/www/html/packages/Webkul/Shop/src/Http/Middleware/Theme.php(31): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#33 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Shop\\Http\\Middleware\\Theme->handle()
#34 /var/www/html/packages/Webkul/Shop/src/Http/Middleware/Locale.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Shop\\Http\\Middleware\\Locale->handle()
#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#37 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#38 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#39 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle()
#40 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/AuthenticateSession.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#41 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Session\\Middleware\\AuthenticateSession->handle()
#42 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#43 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle()
#44 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#45 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(697): Illuminate\\Pipeline\\Pipeline->then()
#46 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack()
#47 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(636): Illuminate\\Routing\\Router->runRoute()
#48 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute()
#49 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(166): Illuminate\\Routing\\Router->dispatch()
#50 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#51 /var/www/html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(59): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#52 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle()
#53 /var/www/html/packages/Webkul/Core/src/Http/Middleware/SecureHeaders.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#54 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Core\\Http\\Middleware\\SecureHeaders->handle()
#55 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#56 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest()
#57 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle()
#58 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#59 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle()
#60 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#61 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle()
#62 /var/www/html/packages/Webkul/Core/src/Http/Middleware/CheckForMaintenanceMode.php(114): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#63 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\\Core\\Http\\Middleware\\CheckForMaintenanceMode->handle()
#64 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#65 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then()
#66 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#67 /var/www/html/public/index.php(88): Illuminate\\Foundation\\Http\\Kernel->handle()
#68 {main}
"}

UPDATE

If I try another way for sending email it worked.

$data = array('name'=>"urfusion");
                Mail::send([], [], function($message) {
         $message->to('urfusion@urfusion.net', 'urfusion')->subject
            ('Mail');
         $message->from('info@domain.com','domain');
      });


问:
Synchronizing bidirectional entities in hibernate jpa spring
Trying to understand synchronization of bidirectional entities.
ref: https://vladmihalcea.com/jpa-hibernate-synchronize-bidirectional-entity-associations/

Lets see example of OneToMany bidirectional association.

See entity class

@Entity(name = "Post")
@Table(name = "post")
public class Post {

    @Id
    @GeneratedValue
    private Long id;

    private String title;

    @OneToMany(
        mappedBy = "post",
        cascade = CascadeType.ALL,
        orphanRemoval = true
    )
    private List<PostComment> comments = new ArrayList<>();

    //Getters and setters omitted for brevity

    public void addComment(PostComment comment) {
        comments.add(comment);
        comment.setPost(this);
    }

    public void removeComment(PostComment comment) {
        comments.remove(comment);
        comment.setPost(null);
    }
}
```
<p>should we call these methods(addComment,removeComment) on managed or transient entities? I am assuming when we just create objects in memory which are transient, it will be a good practice.</p>
<p>If both, is true.
I also saw one article where for synchronizing both side, for parent entity aka Post,had additional method which removes all comments for given post</p>
<p>Service layer</p>
<pre class="lang-java prettyprint-override"><code>    @Transactional
    public void deleteAllCommentsOfPost() {
        Author author = postRepository.findByName("Joana Nimar");
        post.removeComments(); // use removeComments() helper
    }
</code>```

Post entity has following

...
... entity code

    public void removeComments() {
        //TODO can be optimized, as it fires single delete queries.
        System.out.println("iterating removeComments");
        Iterator<Comment> iterator = this.comments.iterator();

        while (iterator.hasNext()) {
            Comment comment = iterator.next();

            comment.setPost(null);
            iterator.remove();
        }
    }
...
...

```

But problem here is that, since this is a managed entity, it will fire individual delete statements for each post. Instead better would be to have something like single statement with IN clause to delete entities.

I am not sure what would be correct way.
I see following option:
create another method in repository layer which deletes using jpql.

But, here will entities get synchronized post transaction commit is my query.

I would like to know what are best practices for bidirectional entities.

Body:
Trying to understand synchronization of bidirectional entities.
ref: https://vladmihalcea.com/jpa-hibernate-synchronize-bidirectional-entity-associations/

Lets see example of OneToMany bidirectional association.

See entity class

@Entity(name = "Post")
@Table(name = "post")
public class Post {

    @Id
    @GeneratedValue
    private Long id;

    private String title;

    @OneToMany(
        mappedBy = "post",
        cascade = CascadeType.ALL,
        orphanRemoval = true
    )
    private List<PostComment> comments = new ArrayList<>();

    //Getters and setters omitted for brevity

    public void addComment(PostComment comment) {
        comments.add(comment);
        comment.setPost(this);
    }

    public void removeComment(PostComment comment) {
        comments.remove(comment);
        comment.setPost(null);
    }
}

should we call these methods(addComment,removeComment) on managed or transient entities? I am assuming when we just create objects in memory which are transient, it will be a good practice.

If both, is true.
I also saw one article where for synchronizing both side, for parent entity aka Post,had additional method which removes all comments for given post

Service layer

    @Transactional
    public void deleteAllCommentsOfPost() {
        Author author = postRepository.findByName("Joana Nimar");
        post.removeComments(); // use removeComments() helper
    }

Post entity has following

...
... entity code

    public void removeComments() {
        //TODO can be optimized, as it fires single delete queries.
        System.out.println("iterating removeComments");
        Iterator<Comment> iterator = this.comments.iterator();

        while (iterator.hasNext()) {
            Comment comment = iterator.next();

            comment.setPost(null);
            iterator.remove();
        }
    }
...
...

But problem here is that, since this is a managed entity, it will fire individual delete statements for each post. Instead better would be to have something like single statement with IN clause to delete entities.

I am not sure what would be correct way.
I see following option:
create another method in repository layer which deletes using jpql.

But, here will entities get synchronized post transaction commit is my query.

I would like to know what are best practices for bidirectional entities.


问:
Edit website link with a single click or plugin
I want to edit the website link and open it again with just a single click.
For example, I want to add the text in bold to a link to a website:

www-author.google.com/editing.html/search?...

Is there a way we can create a button or plugin that does this task in one click?
Links will be different but the text author and editing.html will be the same.

I have tried searching but could not get exact results on internet.


问:
How do you handle sessions and authentication in Restful API if it is stateless?
I am a a learner of REST APIs an in a beginner stage.

I am thinking of what makes the REST API stateful and stateless. And what are the differences between both.


问:
laravel when going to address I see folders, not starting the app
When I going to address, I only see folders. not working laravel application.

This is my apache2 conf file.

```<code><VirtualHost 18.143.189.136:80>
ServerName 18.143.189.136:80
DocumentRoot /var/www/html
Alias /demo "/var/www/html/public/"
<Directory /var/www/html/public>
    Options -Indexes +FollowSymLinks +MultiViews
    AllowOverride All
    Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/myproject-error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/myproject-access.log combined

</VirtualHost>
</code>```

Could you please help me anyone? Thanks

Body:
When I going to address, I only see folders. not working laravel application.

This is my apache2 conf file.

<VirtualHost 18.143.189.136:80>
ServerName 18.143.189.136:80
DocumentRoot /var/www/html
Alias /demo "/var/www/html/public/"
<Directory /var/www/html/public>
    Options -Indexes +FollowSymLinks +MultiViews
    AllowOverride All
    Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/myproject-error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/myproject-access.log combined

</VirtualHost>

Could you please help me anyone? Thanks


问:
Maximum length of filename length when using GetObjectRequest()
I am unable to download file name with characters greater than 200 when passed through
ResponseContentDisposition header in the GetObjectRequest method of AWS SDK for Golang. The filename gets trimmed. Is there a limit on the length of characters for a filename?

I tried downloading filename with characters more than 200 on my PC, but there were a few characters that got trimmed while downloading through pres-signed URL.


问:
Promise not call when request get reject from External Wallet @walletconnect/react-native-dapp in react-native?
I have implemented @walletconnect/react-native-dapp in my react-native application to connect external wallet to my app.

Everything is working in my app. I have stuck at one place where I'm calling the approve method of ABI by wallet sendTransaction call. The flow is working if I select Approve option on other external wallet (MetaMask) and transaction been successfully happening.

But when I select Reject on MetaMask then promise not being calling nor catch block calling, or redirection to my app also not happening.

How do I manage the flow if user click on Reject option on request on Metamask.
Someone please look it.

Here is my code which I am follow :-

```<code>export const transferOnChainWalletPOZBalance = async (
  pozPouchFundWallet: string,
  amountValue: number,
  userWallet: string,
  connector: any,
) => {
  return new Promise<string>(async (resolve, reject) => {
    const POZ_TOKEN = await fetchItemFromStorage('POZ_TOKEN');
    const WEB3_URL = await fetchItemFromStorage('WEB3_URL');
    const Web3js = new Web3(WEB3_URL as string);
    let toAddress = pozPouchFundWallet; // end address to transfer amount
    let decimals = BigNumber(18);
    let amount1 = new BigNumber(amountValue);
    let value = amount1.times(new BigNumber(10).pow(decimals));
    let contract = new Web3js.eth.Contract(POZ_ABI, POZ_TOKEN!);
    try {
      let dataa = await contract.methods
        .approve(toAddress, value.toString())
        .encodeABI();
      let txObj = {
        // gas: Web3js.utils.toHex(100000),
        // value: value,
        data: Web3js.utils.toHex(dataa),
        from: userWallet,
        to: POZ_TOKEN, // Contractor token address
      };
      try {
        const transactionHash = await connector
          .sendTransaction(txObj)
          .catch((_err: any) => {
            Toast.show({
              autoHide: true,
              text1: t('topUpPoz.transactionFailed'),
              type: 'error',
            });
          });
        console.log('approve transactionHash is =', transactionHash);
        resolve(transactionHash);
      } catch (error) {
        console.log('approve the connector error is = ', error);
        reject(error);
      }
    } catch (err) {
      console.log('contact error is = ', err);
      reject(err);
    }
  });
};
</code>```

Body:
I have implemented @walletconnect/react-native-dapp in my react-native application to connect external wallet to my app.

Everything is working in my app. I have stuck at one place where I'm calling the approve method of ABI by wallet sendTransaction call. The flow is working if I select Approve option on other external wallet (MetaMask) and transaction been successfully happening.

But when I select Reject on MetaMask then promise not being calling nor catch block calling, or redirection to my app also not happening.

How do I manage the flow if user click on Reject option on request on Metamask.
Someone please look it.

Here is my code which I am follow :-

export const transferOnChainWalletPOZBalance = async (
  pozPouchFundWallet: string,
  amountValue: number,
  userWallet: string,
  connector: any,
) => {
  return new Promise<string>(async (resolve, reject) => {
    const POZ_TOKEN = await fetchItemFromStorage('POZ_TOKEN');
    const WEB3_URL = await fetchItemFromStorage('WEB3_URL');
    const Web3js = new Web3(WEB3_URL as string);
    let toAddress = pozPouchFundWallet; // end address to transfer amount
    let decimals = BigNumber(18);
    let amount1 = new BigNumber(amountValue);
    let value = amount1.times(new BigNumber(10).pow(decimals));
    let contract = new Web3js.eth.Contract(POZ_ABI, POZ_TOKEN!);
    try {
      let dataa = await contract.methods
        .approve(toAddress, value.toString())
        .encodeABI();
      let txObj = {
        // gas: Web3js.utils.toHex(100000),
        // value: value,
        data: Web3js.utils.toHex(dataa),
        from: userWallet,
        to: POZ_TOKEN, // Contractor token address
      };
      try {
        const transactionHash = await connector
          .sendTransaction(txObj)
          .catch((_err: any) => {
            Toast.show({
              autoHide: true,
              text1: t('topUpPoz.transactionFailed'),
              type: 'error',
            });
          });
        console.log('approve transactionHash is =', transactionHash);
        resolve(transactionHash);
      } catch (error) {
        console.log('approve the connector error is = ', error);
        reject(error);
      }
    } catch (err) {
      console.log('contact error is = ', err);
      reject(err);
    }
  });
};


问:
Problem with typeorm nested entity( Cannot read properties of undefined reading 'getEntityValue' )
I am creating a nestjs project with typeorm and postgresql. Here I am creating a user entity.

My entity will be like

```<code>{
    email: string,
    name: string,
    avatar: {
        public_key: string;
        url: string;
    }
}
</code>```

In avatar column I need to add a object with public_key and url.

I create two entity like this-

```<code>@Entity()
class Avatar {
    @Column({ type: "text", nullable: true })
    public_key: string;
    @Column({ type: "text", nullable: true })
    url: string;
}

@Entity()
@Tree("closure-table")
export class User {
    @PrimaryGeneratedColumn()
    id: number;
    @Column({ type: "text", nullable: false })
    userName: string;
    @Column({ type: "text", nullable: false })
    email: string;
    @Column({ type: "text", nullable: false })
    firstName: string;
    @Column({ type: "text", nullable: false })
    lastName: string;
    @Column({ type: "text", nullable: false, select: false })
    password: string;
    @Column({ type: "text", nullable: true })
    socket_id: string;
    @Column({ type: "text", nullable: true, select: false })
    otp: string;
    @TreeChildren()
    avatar: Avatar;
    @Column({ type: "boolean", default: false, nullable: false })
    is_verify: boolean;
    @CreateDateColumn()
    created_at: Date;
    @UpdateDateColumn()
    updated_at: Date;

    //Before Insert Injection
    @BeforeInsert()
    createUserName() {
        this.userName = uniqid.time()
    }
}
</code>```

Here I use closure-table to do nested avatar entity

Here I write

```<code> @TreeChildren()
 avatar: Avatar;
</code>```

For nesting Avatar Entity

Then in my controller I try to create my first data-

```<code>const result = await this.userRepository.create({
    ...userInput,
    otp: secret.base32,
    password: passwordHash,
});
await this.userRepository.save(result)
</code>```

Note: avatar field is not required. Avatar field will be add when user update their profile. Here I only create first user data.

But I am getting this error-

Cannot read properties of undefined (reading 'getEntityValue')

Please help me.

//Updated

```<code>import { InputType, Field } from "@nestjs/graphql";
import { IsEmail, IsString, MinLength, IsNotEmpty, MaxLength, Matches } from "class-validator";

@InputType()
export class UserInput {
    @Field(() => String, { nullable: false })
    @IsString()
    @IsEmail()
    @IsNotEmpty()
    email: string;

    @Field(() => String, { nullable: false })
    @IsString()
    @IsNotEmpty()
    firstName: string;

    @Field(() => String, { nullable: false })
    @IsString()
    @IsNotEmpty()
    lastName: string;

    @Field(() => String, { nullable: false })
    @IsString()
    @MinLength(8)
    @MaxLength(20)
    @IsNotEmpty()
    @Matches(/^.*(?=.{4,10})(?=.*\d)(?=.*[a-zA-Z]).*$/, { message: "password too weak" })
    password: string
}
</code>```

Body:
I am creating a nestjs project with typeorm and postgresql. Here I am creating a user entity.

My entity will be like

{
    email: string,
    name: string,
    avatar: {
        public_key: string;
        url: string;
    }
}

In avatar column I need to add a object with public_key and url.

I create two entity like this-

@Entity()
class Avatar {
    @Column({ type: "text", nullable: true })
    public_key: string;
    @Column({ type: "text", nullable: true })
    url: string;
}

@Entity()
@Tree("closure-table")
export class User {
    @PrimaryGeneratedColumn()
    id: number;
    @Column({ type: "text", nullable: false })
    userName: string;
    @Column({ type: "text", nullable: false })
    email: string;
    @Column({ type: "text", nullable: false })
    firstName: string;
    @Column({ type: "text", nullable: false })
    lastName: string;
    @Column({ type: "text", nullable: false, select: false })
    password: string;
    @Column({ type: "text", nullable: true })
    socket_id: string;
    @Column({ type: "text", nullable: true, select: false })
    otp: string;
    @TreeChildren()
    avatar: Avatar;
    @Column({ type: "boolean", default: false, nullable: false })
    is_verify: boolean;
    @CreateDateColumn()
    created_at: Date;
    @UpdateDateColumn()
    updated_at: Date;

    //Before Insert Injection
    @BeforeInsert()
    createUserName() {
        this.userName = uniqid.time()
    }
}

Here I use closure-table to do nested avatar entity

Here I write

 @TreeChildren()
 avatar: Avatar;

For nesting Avatar Entity

Then in my controller I try to create my first data-

const result = await this.userRepository.create({
    ...userInput,
    otp: secret.base32,
    password: passwordHash,
});
await this.userRepository.save(result)

Note: avatar field is not required. Avatar field will be add when user update their profile. Here I only create first user data.

But I am getting this error-

Cannot read properties of undefined (reading 'getEntityValue')

Please help me.

//Updated

import { InputType, Field } from "@nestjs/graphql";
import { IsEmail, IsString, MinLength, IsNotEmpty, MaxLength, Matches } from "class-validator";

@InputType()
export class UserInput {
    @Field(() => String, { nullable: false })
    @IsString()
    @IsEmail()
    @IsNotEmpty()
    email: string;

    @Field(() => String, { nullable: false })
    @IsString()
    @IsNotEmpty()
    firstName: string;

    @Field(() => String, { nullable: false })
    @IsString()
    @IsNotEmpty()
    lastName: string;

    @Field(() => String, { nullable: false })
    @IsString()
    @MinLength(8)
    @MaxLength(20)
    @IsNotEmpty()
    @Matches(/^.*(?=.{4,10})(?=.*\d)(?=.*[a-zA-Z]).*$/, { message: "password too weak" })
    password: string
}


问:
posthog - bulk delete all persons
I am trying to delete all persons in my posthog. they were inserted by mistake. I try to use the DELETE endpoint from here:
https://posthog.com/docs/api/persons

but to delete a person it requires a person id of type number.
when I get the persons from the API, the id is a string. where can I find the needed id which is a number?

the endpoint:
https://app.posthog.com/api/projects/${PROJECT_ID}/persons/${personI.id}/?personal_api_key=${POSTHOG_PERSONAL_API_KEY}

Title: posthog - bulk delete all persons


问:
Add formatting to values in a configuration JSON file
I have a JSON file that controls the rendering of an App.
Configuration JSON File has multiple keys and values. And I need to make some text of one of the values to bold.
Is there a way I can do that? I do not have any control over this on the HTML layer.

Below is Code snippet:

```<code>{
   "name": {
        "short": "Text1
   },
   {
     "description":
       {
        "short": "Short Text",
        "full": "Long Text and **Text to made bold** and Some more text
    }
}
</code>```

Body:
I have a JSON file that controls the rendering of an App.
Configuration JSON File has multiple keys and values. And I need to make some text of one of the values to bold.
Is there a way I can do that? I do not have any control over this on the HTML layer.

Below is Code snippet:

{
   "name": {
        "short": "Text1
   },
   {
     "description":
       {
        "short": "Short Text",
        "full": "Long Text and **Text to made bold** and Some more text
    }
}


问:
How to show tableau dashboard in a website without prompting for credentials
We have a website which has dashboards..we analyse data using SQL server analysis services and show it as dashboard using our .net c# code.but now we are changing to tableau..so i want to show the tableau dashboard in place of previous dashboard in our webpage.i have achieved it using embedded code of tableau dashboard.binded it to my aspx page in my website and i have got the result.

But the thing is it is asking credentials while viewing the dashboard.. we are already giving credentials and entering the website.. i don't want another seperate sign in for tableau dashboard..i have googled it have found trusted authentication can help..how to implement it using my c# code using tableau embedded code using single sign on.. kindly help


问:
How to display 'png' image after clicking on a hyperlink (name of the file) using png?
i have tried code as a result i can able to access the folder image and its filename but unable to display the respective image.As the beginner in php.kindly help!!

<?php
    $dir = '/var/www/info';
    $filearray = array('png');
        $dir_info = scandir($dir);
        foreach ($dir_info as $file)
        {
            $file_type = strtolower(end(explode('.', $file)));
            if ($file !== '.' && $file !== '..' && in_array($file_type, $filearray) == true)
            {
echo'
href="'.$_SERVER["PHP_SELF"].'?file=/var/www/info';
               echo "
";
            }
        }

$name = $_GET['file'];
    $mimes = array
    (
        'png' => 'image/png'
    );
    $convert = strtolower(end(explode('.', $name)));
 $file = '/var/www/info/'.$name;
   header('content-type: '. $mimes[$convert]);
    header('content-disposition: inline; filename="'.$name.'";');
    readfile($file);
?>
```

Body:
i have tried code as a result i can able to access the folder image and its filename but unable to display the respective image.As the beginner in php.kindly help!!

<?php
    $dir = '/var/www/info';
    $filearray = array('png');
        $dir_info = scandir($dir);
        foreach ($dir_info as $file)
        {
            $file_type = strtolower(end(explode('.', $file)));
            if ($file !== '.' && $file !== '..' && in_array($file_type, $filearray) == true)
            {
echo'
 'image/png'
    );
    $convert = strtolower(end(explode('.', $name)));
 $file = '/var/www/info/'.$name;
   header('content-type: '. $mimes[$convert]);
    header('content-disposition: inline; filename="'.$name.'";');
    readfile($file);
?>


问:
How can I make yolov5 access my mobile camera?
I have built a custom yolov5 model that can detect ID Cards when the source is laptop webcam. I created a flask api to run it on mobile. However, it is unable to access the mobile camera. I understand that source 0 suggests webcam.

Could anyone kindly suggest on how this can be done.

```<code>from flask import Flask
import os

app = Flask(__name__)

@app.route("/")
def hello_world():
    return "Hello!!"

@app.route("/detectid", methods=['GET'])
def openwebcam():
    os.system("python yolov5/detect.py --source 0 --weights best.pt --conf 0.4 --save-crop")
    return "done"

if __name__ == '__main__':

    app.run(host="192.168.x.xx", debug=True, threaded=True, port=port)
</code>```

Body:
I have built a custom yolov5 model that can detect ID Cards when the source is laptop webcam. I created a flask api to run it on mobile. However, it is unable to access the mobile camera. I understand that source 0 suggests webcam.

Could anyone kindly suggest on how this can be done.

from flask import Flask
import os

app = Flask(__name__)

@app.route("/")
def hello_world():
    return "Hello!!"

@app.route("/detectid", methods=['GET'])
def openwebcam():
    os.system("python yolov5/detect.py --source 0 --weights best.pt --conf 0.4 --save-crop")
    return "done"

if __name__ == '__main__':

    app.run(host="192.168.x.xx", debug=True, threaded=True, port=port)


问:
Issue in receiving a mail from SendGrid while resetting password in nodejs
I'm trying to reset the password using the SendGrid API in node js. here I get the response as expected in postman but didn't receive any mail to the targeted address. is anything I'm missing?

```<code>const sgMail = require("@sendgrid/mail");
sgMail.setApiKey(process.env.SENDGRID_API_KEY);

// finds the email already in DB
const admin = await loginModel.findOne({ where: { email } });
    if (!admin) {
      const updated_response = setErrorResponseMsg(
        RESPONSE.NO_DATA_FOUND,
        "email"
      );
      return send(res, updated_response);
    }

    // forgot password stuff
    const secret = admin._id + process.env.TOKEN_KEY;
    const token = jwt.sign({ admin_id: admin._id, email }, secret, {
      expiresIn: "15m",
    });
    const link = `http://localhost:8000/api/admin/reset_password/${admin.id}/${token}`;

 const msg = {
      to: admin.email,
      from: process.env.EMAIL_FROM,
      subject: "Reset Your Password",
      text: "click the link below to reset your password",
      html: `<h1><a href=${link}>click here</h1>`,
    };

    const data = await sgMail.send(msg);
    // return res.send(link);
    return res.send(data);

</code>```

response

in SendGrid I get like this

event history in SendGrid

I followed all the steps, still not receiving any mail

Body:
I'm trying to reset the password using the SendGrid API in node js. here I get the response as expected in postman but didn't receive any mail to the targeted address. is anything I'm missing?

const sgMail = require("@sendgrid/mail");
sgMail.setApiKey(process.env.SENDGRID_API_KEY);

// finds the email already in DB
const admin = await loginModel.findOne({ where: { email } });
    if (!admin) {
      const updated_response = setErrorResponseMsg(
        RESPONSE.NO_DATA_FOUND,
        "email"
      );
      return send(res, updated_response);
    }

    // forgot password stuff
    const secret = admin._id + process.env.TOKEN_KEY;
    const token = jwt.sign({ admin_id: admin._id, email }, secret, {
      expiresIn: "15m",
    });
    const link = `http://localhost:8000/api/admin/reset_password/${admin.id}/${token}`;

 const msg = {
      to: admin.email,
      from: process.env.EMAIL_FROM,
      subject: "Reset Your Password",
      text: "click the link below to reset your password",
      html: `<h1><a href=${link}>click here</h1>`,
    };

    const data = await sgMail.send(msg);
    // return res.send(link);
    return res.send(data);

response

in SendGrid I get like this

event history in SendGrid

I followed all the steps, still not receiving any mail