hsbijarniya / image_editor_plus

Flutter Image Editor Plugin with simple, easy support for image editing using Paints, Text, Filters, Emoji and Sticker like stories.
MIT License
103 stars 103 forks source link

ios crashed while using filter #41

Closed heshesh2010 closed 1 year ago

heshesh2010 commented 1 year ago

hi ,

I'm using image_editor_plus: ^0.2.0 , when try to use filter and drag Opacity high and low then ios crashed and got this log

from xcode :

`Details

The app “Runner” on iPhone quit unexpectedly. Domain: IDEDebugSessionErrorDomain Code: 11 Failure Reason: Message from debugger: Terminated due to memory issue User Info: { DVTErrorCreationDateKey = "2023-06-06 19:37:31 +0000"; IDERunOperationFailingWorker = DBGLLDBLauncher; }

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "iPhone8,2"; "device_osBuild" = "15.7.5 (19H332)"; "device_platform" = "com.apple.platform.iphoneos"; "launchSession_schemeCommand" = Run; "launchSession_state" = 2; "launchSession_targetArch" = arm64; "operation_duration_ms" = 79884; "operation_errorCode" = 11; "operation_errorDomain" = IDEDebugSessionErrorDomain; "operation_errorWorker" = DBGLLDBLauncher; "operation_name" = IDEiPhoneRunOperationWorkerGroup; "param_consoleMode" = 0; "param_debugger_attachToExtensions" = 0; "param_debugger_attachToXPC" = 1; "param_debugger_type" = 5; "param_destination_isProxy" = 0; "param_destination_platform" = "com.apple.platform.iphoneos"; "param_diag_MainThreadChecker_stopOnIssue" = 0; "param_diag_MallocStackLogging_enableDuringAttach" = 0; "param_diag_MallocStackLogging_enableForXPC" = 1; "param_diag_allowLocationSimulation" = 1; "param_diag_checker_tpc_enable" = 1; "param_diag_gpu_frameCapture_enable" = 0; "param_diag_gpu_shaderValidation_enable" = 0; "param_diag_gpu_validation_enable" = 0; "param_diag_memoryGraphOnResourceException" = 0; "param_diag_queueDebugging_enable" = 1; "param_diag_runtimeProfile_generate" = 0; "param_diag_sanitizer_asan_enable" = 0; "param_diag_sanitizer_tsan_enable" = 0; "param_diag_sanitizer_tsan_stopOnIssue" = 0; "param_diag_sanitizer_ubsan_stopOnIssue" = 0; "param_diag_showNonLocalizedStrings" = 0; "param_diag_viewDebugging_enabled" = 1; "param_diag_viewDebugging_insertDylibOnLaunch" = 1; "param_install_style" = 0; "param_launcher_UID" = 2; "param_launcher_allowDeviceSensorReplayData" = 0; "param_launcher_kind" = 0; "param_launcher_style" = 0; "param_launcher_substyle" = 0; "param_runnable_appExtensionHostRunMode" = 0; "param_runnable_productType" = "com.apple.product-type.application"; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphoneos16.4"; "sdk_osVersion" = "16.4"; "sdk_variant" = iphoneos; }

System Information

macOS Version 13.4 (Build 22F66) Xcode 14.3 (21812) (Build 14E222b) Timestamp: 2023-06-06T22:37:31+03:00`

hsbijarniya commented 1 year ago

not encountered with our device. please share image that caused the problem.

devsideal commented 10 months ago

@hsbijarniya I'm also getting similar issue with any image, I'm using:

image_editor_plus: ^0.2.5 Tested in iPhone XE, iPhone 12, 6s plus. In all devices getting same issue, while in android its working fine.

hsbijarniya commented 10 months ago

please share the stack trace

devsideal commented 10 months ago

@hsbijarniya

../../third_party/dart/runtime/vm/zone.cc: 96: error: Out of memory.
2023-08-28 12:38:39.690201+0530 Runner[6023:287191] version=3.0.2 (stable) (Tue May 23 08:26:58 2023 +0000) on "ios_arm64"
2023-08-28 12:38:39.690393+0530 Runner[6023:287191] pid=6023, thread=121151, isolate_group=main(0x10f898000), isolate=(nil)(0x0)
2023-08-28 12:38:39.690502+0530 Runner[6023:287191] os=ios, arch=arm64, comp=no, sim=no
2023-08-28 12:38:39.690587+0530 Runner[6023:287191] isolate_instructions=1249bc000, vm_instructions=1249bc000
2023-08-28 12:38:39.690652+0530 Runner[6023:287191] fp=170333eb0, sp=170333e98, pc=1253c7610
2023-08-28 12:38:39.706470+0530 Runner[6023:287191]   pc 0x00000001253c7610 fp 0x0000000170333eb0 Dart_DumpNativeStackTrace+0x18
2023-08-28 12:38:39.707363+0530 Runner[6023:287191]   pc 0x0000000124f9e60c fp 0x0000000170333ed0 dart::Assert::Fail(char const*, ...) const+0x30
2023-08-28 12:38:39.707762+0530 Runner[6023:287191]   pc 0x00000001251853f8 fp 0x0000000170333f20 dart::Zone::~Zone()+0x0
2023-08-28 12:38:39.708020+0530 Runner[6023:287191]   pc 0x000000012500d35c fp 0x0000000170333f80 dart::DeoptInfoBuilder::AddCopy(dart::Value*, dart::Location const&, long)+0x12c
2023-08-28 12:38:39.708279+0530 Runner[6023:287191]   pc 0x000000012518834c fp 0x0000000170334140 dart::CompileParsedFunctionHelper::FinalizeCompilation(dart::compiler::Assembler, dart::FlowGraphCompiler, dart::FlowGraph*)+0x914
2023-08-28 12:38:39.708532+0530 Runner[6023:287191]   pc 0x000000012518bccc fp 0x0000000170334380 dart::LambdaCallable<dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)::$_0>::Call()+0x48
2023-08-28 12:38:39.708782+0530 Runner[6023:287191]   pc 0x000000012501ec0c fp 0x0000000170334860 dart::IsolateGroup::RunWithStoppedMutatorsCallable(dart::Callable, dart::Callable, bool)+0x330
2023-08-28 12:38:39.709019+0530 Runner[6023:287191]   pc 0x000000012518b7c0 fp 0x00000001703354a0 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)+0x17b8
2023-08-28 12:38:39.711129+0530 Runner[6023:287191]   pc 0x000000012518cd4c fp 0x0000000170335c00 dart::CompileFunctionHelper(dart::CompilationPipeline*, dart::Function const&, bool, long)+0x6e0
2023-08-28 12:38:39.711399+0530 Runner[6023:287191]   pc 0x000000012518d6bc fp 0x0000000170335ca0 dart::Compiler::CompileOptimizedFunction(dart::Thread*, dart::Function const&, long)+0x234
2023-08-28 12:38:39.711636+0530 Runner[6023:287191]   pc 0x000000012518e704 fp 0x0000000170336640 dart::BackgroundCompilerTask::Run()+0x154
2023-08-28 12:38:39.711888+0530 Runner[6023:287191]   pc 0x0000000125177cc4 fp 0x0000000170336b40 dart::ThreadPool::Worker::Main(unsigned long)+0x18c
2023-08-28 12:38:39.712173+0530 Runner[6023:287191]   pc 0x00000001250eb3f0 fp 0x0000000170336fc0 dart::ThreadStart(void*)+0x138
2023-08-28 12:38:39.714355+0530 Runner[6023:287191]   pc 0x00000001f9a530ec fp 0x0000000170336fe0 _pthread_start+0x74
2023-08-28 12:38:39.714422+0530 Runner[6023:287191] -- End of DumpStackTrace
2023-08-28 12:38:39.714834+0530 Runner[6023:287191] === Crash occurred when compiling package:flutter/src/widgets/sliver.dart_SliverMultiBoxAdaptorElement_performRebuild in optimizing JIT mode in unknown pass
2023-08-28 12:38:39.714866+0530 Runner[6023:287191] === Flow Graph not available
(lldb)