Can we add the camera in free trial account in the filter if add then how where we have to add the camera button for capture the filter
this is very urgent can you please reply me as soon as , i will wait for your answer
Hi, I’m sorry but I don’t think I understand what you mean by add a camera. I would also need to know which platform you’re working on.
i am working on flutter andriod when we change.effect then my app is crashed and show error
W/xample.deepear(10475): 0xebadde09 skipped times: 0
F/libc (10475): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 10475 (xample.deepearr), pid 10475 (xample.deepearr)
Build fingerprint: ‘samsung/greatltexx/greatlte:9/PPR1.180610.011/N950FXXUGDVG5:user/release-keys’
Revision: ‘9’
ABI: ‘arm64’
pid: 10475, tid: 10475, name: xample.deepearr >>> com.example.deepearr <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
x0 0000007341642df8 x1 0000000000000000 x2 000000735f000ac0 x3 0000000000000000
x4 0000000000000000 x5 0000007ffbb354d8 x6 000000006b73616d x7 000000732bc27703
x8 0000000000000000 x9 0000000000000000 x10 0000000000000000 x11 0000000000000000
x12 0000000000000bf1 x13 0000000000000bf0 x14 0000000000000000 x15 0000000000000008
x16 00000073e0c321c0 x17 00000073e0bc8e98 x18 000000000000001c x19 000000734161a500
x20 ffffffffffffffff x21 0000007ffbb35660 x22 000000734161a5c8 x23 000000734161a508
x24 000000737c671f89 x25 0000000000000000 x26 0000000000000001 x27 000000732b7e9630
x28 0000000000000004 x29 0000007ffbb355f0
sp 0000007ffbb35580 lr 000000732b7e8398 pc 000000732b7e8428
backtrace:
#00 pc 000000000019c428 /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk (offset 0x3723000) (ar::ChangeEffectCommand::parseTextures()+328)
#01 pc 000000000019d0e4 /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk (offset 0x3723000) (ar::ChangeEffectCommand::ChangeEffectCommand(std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator>, std::__ndk1::vector<unsigned char, std::__ndk1::allocator>&&)+228)
#02 pc 00000000001839a4 /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk (offset 0x3723000) (ar::Controller::switchEffect(char const*, std::__ndk1::vector<unsigned char, std::__ndk1::allocator>&&)+220)
#03 pc 0000000000129d20 /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk (offset 0x3723000) (Java_ai_deepar_ar_DeepAR_switchEffectRawNative+280)
#04 pc 000000000056b7e0 /system/lib64/libart.so (art_quick_generic_jni_trampoline+144)
#05 pc 0000000000562788 /system/lib64/libart.so (art_quick_invoke_stub+584)
#06 pc 00000000000d0140 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
#07 pc 00000000002865e8 /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
#08 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)
#09 pc 000000000053454c /system/lib64/libart.so (MterpInvokeDirectRange+244)
#10 pc 0000000000555194 /system/lib64/libart.so (ExecuteMterpImpl+15252)
#11 pc 00000000000cbca6 /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk_10475_10475 (deleted) (ai.deepar.ar.DeepAR.switchEffect+70)
#12 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#13 pc 000000000025fc20 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#14 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)
#15 pc 00000000005319d8 /system/lib64/libart.so (MterpInvokeVirtual+584)
#16 pc 0000000000554d94 /system/lib64/libart.so (ExecuteMterpImpl+14228)
#17 pc 00000000000066cc /dev/ashmem/dalvik-classes2.dex extracted in memory from /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk!classes2.dex_10475_10475 (deleted) (com.deepar.ai.DeepArPlugin.handleMethods+1464)
#18 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#19 pc 000000000025fc20 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#20 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)
#21 pc 0000000000532d18 /system/lib64/libart.so (MterpInvokeDirect+296)
#22 pc 0000000000554e94 /system/lib64/libart.so (ExecuteMterpImpl+14484)
#23 pc 00000000000060ac /dev/ashmem/dalvik-classes2.dex extracted in memory from /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk!classes2.dex_10475_10475 (deleted) (com.deepar.ai.DeepArPlugin.access$000)
#24 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#25 pc 000000000025fc20 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#26 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)
#27 pc 0000000000532edc /system/lib64/libart.so (MterpInvokeStatic+204)
#28 pc 0000000000554f14 /system/lib64/libart.so (ExecuteMterpImpl+14612)
#29 pc 0000000000005dd4 /dev/ashmem/dalvik-classes2.dex extracted in memory from /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk!classes2.dex_10475_10475 (deleted) (com.deepar.ai.DeepArPlugin$1.onMethodCall+4)
#30 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#31 pc 000000000025fc20 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#32 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)
#33 pc 0000000000532950 /system/lib64/libart.so (MterpInvokeInterface+1392)
#34 pc 0000000000554f94 /system/lib64/libart.so (ExecuteMterpImpl+14740)
#35 pc 00000000001a93da /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk_10475_10475 (deleted) (io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage+34)
#36 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#37 pc 000000000025fc20 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#38 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)
#39 pc 0000000000532950 /system/lib64/libart.so (MterpInvokeInterface+1392)
#40 pc 0000000000554f94 /system/lib64/libart.so (ExecuteMterpImpl+14740)
#41 pc 000000000019c8d0 /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk_10475_10475 (deleted) (io.flutter.embedding.engine.dart.DartMessenger.invokeHandler+36)
#42 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#43 pc 000000000025fc20 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#44 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)
#45 pc 0000000000532d18 /system/lib64/libart.so (MterpInvokeDirect+296)
#46 pc 0000000000554e94 /system/lib64/libart.so (ExecuteMterpImpl+14484)
#47 pc 000000000019c988 /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk_10475_10475 (deleted) (io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger+88)
#48 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#49 pc 000000000025fc20 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#50 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)
#51 pc 0000000000533210 /system/lib64/libart.so (MterpInvokeVirtualRange+576)
#52 pc 0000000000555094 /system/lib64/libart.so (ExecuteMterpImpl+14996)
#53 pc 000000000019c0dc /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.example.deepearr-CqALz5-LDE_FICWKF68mCQ==/base.apk_10475_10475 (deleted) (io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run+24)
#54 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#55 pc 000000000025fc20 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#56 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)
#57 pc 0000000000532950 /system/lib64/libart.so (MterpInvokeInterface+1392)
#58 pc 0000000000554f94 /system/lib64/libart.so (ExecuteMterpImpl+14740)
#59 pc 0000000000da3448 /system/framework/boot-framework.vdex (android.os.Handler.handleCallback+4)
#60 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#61 pc 000000000025fc20 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#62 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)
#63 pc 0000000000532edc /system/lib64/libart.so (MterpInvokeStatic+204)
#64 pc 0000000000554f14 /system/lib64/libart.so (ExecuteMterpImpl+14612)
#65 pc 0000000000c4cc14 /system/framework/boot-framework.vdex (android.os.Handler.dispatchMessage+8)
#66 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#67 pc 000000000025fc20 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#68 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)
#69 pc 00000000005319d8 /system/lib64/libart.so (MterpInvokeVirtual+584)
#70 pc 0000000000554d94 /system/lib64/libart.so (ExecuteMterpImpl+14228)
#71 pc 0000000000c55866 /system/framework/boot-framework.vdex (android.os.Looper.loop+406)
#72 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#73 pc 000000000025fc20 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#74 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)
#75 pc 0000000000532edc /system/lib64/libart.so (MterpInvokeStatic+204)
#76 pc 0000000000554f14 /system/lib64/libart.so (ExecuteMterpImpl+14612)
#77 pc 00000000004c0bf0 /system/framework/boot-framework.vdex (android.app.ActivityThread.main+220)
#78 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#79 pc 0000000000522118 /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
#80 pc 000000000056b8fc /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
#81 pc 0000000000562a4c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
#82 pc 00000000000d0160 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
#83 pc 0000000000468a78 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#84 pc 000000000046a4d0 /system/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1440)
#85 pc 00000000003f8f50 /system/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+48)
#86 pc 000000000011f7e4 /system/framework/arm64/boot.oat (offset 0x115000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
#87 pc 0000000000562788 /system/lib64/libart.so (art_quick_invoke_stub+584)
#88 pc 00000000000d0140 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
#89 pc 00000000002865e8 /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
#90 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)
#91 pc 00000000005319d8 /system/lib64/libart.so (MterpInvokeVirtual+584)
#92 pc 0000000000554d94 /system/lib64/libart.so (ExecuteMterpImpl+14228)
#93 pc 00000000013ba372 /system/framework/boot-framework.vdex (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
#94 pc 000000000025a0a0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
#95 pc 0000000000522118 /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
#96 pc 000000000056b8fc /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
#97 pc 0000000000e17f80 /system/framework/arm64/boot-framework.oat (offset 0x420000) (com.android.internal.os.ZygoteInit.main+2208)
#98 pc 0000000000562a4c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
#99 pc 00000000000d0160 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
#100 pc 0000000000468a78 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#101 pc 00000000004686d0 /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+416)
#102 pc 000000000036ab24 /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+644)
#103 pc 00000000000b9d10 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, …)+120)
#104 pc 00000000000bc8d4 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vectorandroid::String8 const&, bool)+780)
#105 pc 0000000000004990 /system/bin/app_process64 (main+1200)
#106 pc 00000000000b0540 /system/lib64/libc.so (__libc_init+88)
in JS add this
// Hide the loading screen.
document.getElementById("loading-screen").style.display = "none";
document.getElementById("ar-screen").style.display = "block";
window.effect = effectList[0];
// Add event listener to the carousel
const carousel = document.getElementById("carousel");
carousel.addEventListener("click", async function() {
// Generate screenshot
const screenshot = await deepAR.takeScreenshot();
// Download the screenshot as a file
downloadScreenshot(screenshot);
});
// Function to download the screenshot as a file
function downloadScreenshot(screenshot) {
const link = document.createElement('a');
link.download = 'screenshot.png';
link.href = screenshot;
link.click();
}
})();
i used the project example of github and i modified the index.js, a deleted carousel logic in HTML and JS
I’m afraid I still don’t understand rstad what your desired result is
i think he wants a button to take a screenshot of the filter, the block provided in documentation doesnt work for me, i commented a block that worked for me