Protobuf dart generation on Mac OS doesn't find protoc-gen-dart - dart

I've installed protoc with homebrew and try to generate dart code with proto files.
When I tried a simple case like protoc --dart_out=. test.proto
it give me:
protoc-gen-dart: program not found or is not executable
--dart_out: protoc-gen-dart: Plugin failed with status code 1.
But protoc-gen-dart is in my path...
I also tried to specify the path like protoc --dart_out=. --plugin=protoc-gen-dart=~/.pub-cache/bin/protoc-gen-dart ./test.proto but same error...
Anyone know how can I fix this ?
EDIT:
echo | ~/.pub-cache/bin/protoc-gen-dart
Unhandled exception:
InvalidProtocolBufferException: CodedBufferReader encountered a malformed varint.
#0 CodedBufferReader._readRawVarint32 (file:///Users/jaumard/.pub-cache/hosted/pub.dartlang.org/protobuf-0.10.5/lib/src/protobuf/coded_buffer_reader.dart:180:5)
#1 CodedBufferReader.readInt32 (file:///Users/jaumard/.pub-cache/hosted/pub.dartlang.org/protobuf-0.10.5/lib/src/protobuf/coded_buffer_reader.dart:109:22)
#2 CodedBufferReader.readBytes (file:///Users/jaumard/.pub-cache/hosted/pub.dartlang.org/protobuf-0.10.5/lib/src/protobuf/coded_buffer_reader.dart:126:18)
#3 CodedBufferReader.readString (file:///Users/jaumard/.pub-cache/hosted/pub.dartlang.org/protobuf-0.10.5/lib/src/protobuf/coded_buffer_reader.dart:132:39)
#4 _mergeFromCodedBufferReader (file:///Users/jaumard/.pub-cache/hosted/pub.dartlang.org/protobuf-0.10.5/lib/src/protobuf/coded_buffer.dart:158:47)
#5 GeneratedMessage.mergeFromBuffer (file:///Users/jaumard/.pub-cache/hosted/pub.dartlang.org/protobuf-0.10.5/lib/src/protobuf/generated_message.dart:159:5)
#6 new GeneratedMessage.fromBuffer (file:///Users/jaumard/.pub-cache/hosted/pub.dartlang.org/protobuf-0.10.5/lib/src/protobuf/generated_message.dart:31:5)
#7 new CodeGeneratorRequest.fromBuffer (package:protoc_plugin/src/plugin.pb.dart:88:15)
#8 CodeGenerator.generate.<anonymous closure> (file:///Users/jaumard/.pub-cache/hosted/pub.dartlang.org/protoc_plugin-0.10.5/lib/code_generator.dart:66:25)
#9 _RootZone.runUnary (dart:async/zone.dart:1379:54)
#10 _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#11 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#12 Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#13 Future._complete (dart:async/future_impl.dart:476:7)
#14 Stream.fold.<anonymous closure> (dart:async/stream.dart:726:18)
#15 _RootZone.runGuarded (dart:async/zone.dart:1302:10)
#16 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:389:13)
#17 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399:15)
#18 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:283:7)
#19 _SyncStreamController._sendDone (dart:async/stream_controller.dart:771:19)
#20 _StreamController._closeUnchecked (dart:async/stream_controller.dart:628:7)
#21 _StreamController.close (dart:async/stream_controller.dart:621:5)
#22 _Socket._onData (dart:io/runtime/binsocket_patch.dart:1728:21)
#23 _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#24 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#25 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#26 _SyncStreamController._sendData (dart:async/stream_controller.dart:763:19)
#27 _StreamController._add (dart:async/stream_controller.dart:639:7)
#28 _StreamController.add (dart:async/stream_controller.dart:585:5)
#29 new _RawSocket.<anonymous closure> (dart:io/runtime/binsocket_patch.dart:1290:35)
#30 _NativeSocket.issueReadEvent.issue (dart:io/runtime/binsocket_patch.dart:819:18)
#31 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#32 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#33 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#34 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
And dtruss output:
sudo dtruss protoc --dart_out=. --plugin=protoc-gen-dart=~/.pub-cache/bin/protoc-gen-dart ./test.proto -I=.
Password:
dtrace: system integrity protection is on, some features will not be available
SYSCALL(args) = return
~/.pub-cache/bin/protoc-gen-dart: program not found or is not executable
--dart_out: protoc-gen-dart: Plugin failed with status code 1.
open("/dev/dtracehelper\0", 0x2, 0xFFFFFFFFE5D36050) = 3 0
ioctl(0x3, 0x80086804, 0x7FFEE5D35E60) = 0 0
close(0x3) = 0 0
madvise(0x10A24F000, 0x2000, 0x5) = 0 0
access("/AppleInternal/XBS/.isChrooted\0", 0x0, 0x0) = -1 Err#2
bsdthread_register(0x7FFF65DE2438, 0x7FFF65DE2428, 0x2000) = 1073742047 0
sysctlbyname(kern.bootargs, 0xD, 0x7FFEE5D35170, 0x7FFEE5D35168, 0x0) = 0 0
ioctl(0x2, 0x4004667A, 0x7FFEE5D353F4) = 0 0
mprotect(0x10A2E4000, 0x1000, 0x0) = 0 0
mprotect(0x10A2EB000, 0x1000, 0x0) = 0 0
mprotect(0x10A2EC000, 0x1000, 0x0) = 0 0
mprotect(0x10A2F3000, 0x1000, 0x0) = 0 0
mprotect(0x109ED0000, 0x90, 0x1) = 0 0
mprotect(0x109ED2000, 0x1000, 0x1) = 0 0
mprotect(0x109ED0000, 0x90, 0x3) = 0 0
mprotect(0x109ED0000, 0x90, 0x1) = 0 0
issetugid(0x0, 0x0, 0x0) = 0 0
getentropy(0x7FFEE5D34A40, 0x20, 0x0) = 0 0
getpid(0x0, 0x0, 0x0) = 29452 0
stat64("/AppleInternal\0", 0x7FFEE5D355E0, 0x0) = -1 Err#2
csops(0x730C, 0x7, 0x7FFEE5D35110) = -1 Err#22
proc_info(0x2, 0x730C, 0xD) = 64 0
csops(0x730C, 0x7, 0x7FFEE5D34960) = -1 Err#22
access(".\0", 0x0, 0x0) = 0 0
stat64("/\0", 0x7FFEE5D33EF8, 0x0) = 0 0
getattrlist("/usr\0", 0x7FFF65CC0954, 0x7FFEE5D35840) = 0 0
getattrlist("/usr/local\0", 0x7FFF65CC0954, 0x7FFEE5D35840) = 0 0
getattrlist("/usr/local/bin\0", 0x7FFF65CC0954, 0x7FFEE5D35840) = 0 0
getattrlist("/usr/local/bin/protoc\0", 0x7FFF65CC0954, 0x7FFEE5D35840) = 0 0
readlink("/usr/local/bin/protoc\0", 0x7FFEE5D34C40, 0x400) = 37 0
getattrlist("/usr/local/Cellar\0", 0x7FFF65CC0954, 0x7FFEE5D35840) = 0 0
getattrlist("/usr/local/Cellar/protobuf\0", 0x7FFF65CC0954, 0x7FFEE5D35840) = 0 0
getattrlist("/usr/local/Cellar/protobuf/3.6.1.1\0", 0x7FFF65CC0954, 0x7FFEE5D35840) = 0 0
getattrlist("/usr/local/Cellar/protobuf/3.6.1.1/bin\0", 0x7FFF65CC0954, 0x7FFEE5D35840) = 0 0
getattrlist("/usr/local/Cellar/protobuf/3.6.1.1/bin/protoc\0", 0x7FFF65CC0954, 0x7FFEE5D35840) = 0 0
access("/usr/local/Cellar/protobuf/3.6.1.1/bin/google/protobuf/descriptor.proto\0", 0x0, 0x0) = -1 Err#2
access("/usr/local/Cellar/protobuf/3.6.1.1/bin/include/google/protobuf/descriptor.proto\0", 0x0, 0x0) = -1 Err#2
access("/usr/local/Cellar/protobuf/3.6.1.1/include/google/protobuf/descriptor.proto\0", 0x0, 0x0) = 0 0
access("./test.proto\0", 0x0, 0x0) = 0 0
open("./test.proto\0", 0x0, 0x2) = 3 0
close(0x3) = 0 0
open("test.proto\0", 0x0, 0x2) = 3 0
dtrace: error on enabled probe ID 2174 (ID 159: syscall::read:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2174 (ID 159: syscall::read:return): invalid kernel access in action #12 at DIF offset 68
close(0x3) = 0 0
pipe(0x0, 0x0, 0x0) = 3 0
pipe(0x0, 0x0, 0x0) = 5 0
fork() = 29455 0
close(0x3) = 0 0
close(0x6) = 0 0
sigaction(0xD, 0x7FFEE5D34C78, 0x7FFEE5D34CA0) = 0 0
select(0x6, 0x7FFEE5D35FE0, 0x7FFEE5D35F60, 0x0, 0x0) = 1 0
dtrace: error on enabled probe ID 2172 (ID 161: syscall::write:return): invalid kernel access in action #12 at DIF offset 68
close(0x4) = 0 0
select(0x6, 0x7FFEE5D35FE0, 0x7FFEE5D35F60, 0x0, 0x0) = 1 0
dtrace: error on enabled probe ID 2174 (ID 159: syscall::read:return): invalid kernel access in action #12 at DIF offset 68
close(0x5) = 0 0
wait4(0x730F, 0x7FFEE5D34DD8, 0x0) = 29455 0
sigaction(0xD, 0x7FFEE5D34C78, 0x7FFEE5D34CA0) = 0 0
getrlimit(0x1008, 0x7FFEE5D36160, 0x0) = 0 0
dtrace: error on enabled probe ID 2173 (ID 947: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 947: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 947: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 947: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68

Ok, looks like protoc passes the argument path directly to execve(), which does not expand the ~ character to mean home directory. Try this instead:
protoc --dart_out=. --plugin=protoc-gen-dart=$HOME/.pub-cache/bin/protoc-gen-dart ./test.proto
In this case $HOME is expanded by the shell before protoc is executed, so it will see the complete path of /Users/yourname/.pub-cache/....
Below are some steps that were used in debugging, they may help others in the future:
Your second command looks like it should work:
protoc --dart_out=. --plugin=protoc-gen-dart=~/.pub-cache/bin/protoc-gen-dart ./test.proto
Perhaps there is something wrong with the executable. You can try executing it directly:
echo | ~/.pub-cache/bin/protoc-gen-dart
If it is properly executable, you should get an error message similar to "google.protobuf.message.DecodeError: Truncated message." because the data from echo is not what the plugin expects. If you get some other error, that could give clues as to why it is not executable.
You can also try tracing protoc with dtruss to find out why the plugin execution fails:
sudo dtruss -f protoc ...
The -f flag is needed to show when protoc tries to start the plugin. There should be a line like this towards the bottom:
execve("~/.pub-cache/bin/protoc-gen-dart", ..) = -1 Err#2
The error number after Err# tells why the execution failed. In my case, it is number 2, which can be looked up in errno.h file:
grep 2 /usr/include/sys/errno.h
...
#define ENOENT 2 /* No such file or directory */
...
Which is because I don't have dart plugin installed. But in your case the error might be something more surprising.

Related

docker: Error response from daemon: SIGILL: illegal instruction

Problem
I'm trying to create a docker container from a common image bitnami/airflow. I successfully downloaded the image, but when I run docker run -d -p 8080:8080 bitnami/airflow webserver I get the following error:
docker: Error response from daemon: SIGILL: illegal instruction
Docker version 20.10.8, build 3967b7d
Problem occurs with several images I've tested
Question
Is there a simple explanation why that would be the case? Any way to fix it?
Full Stack Trace
Here is the full stack trace:
docker: Error response from daemon: SIGILL: illegal instruction
PC=0x809b5f m=6 sigcode=2
instruction bytes: 0x48 0xfe 0xfe 0xfe 0xff 0x0 0x74 0x1b 0xf 0x57 0xc0 0xf 0x11 0x84 0x24 0xc0
goroutine 1 [running]:
regexp.(*Regexp).doMatch(...)
/usr/local/go/src/regexp/exec.go:514
regexp.(*Regexp).MatchString(...)
/usr/local/go/src/regexp/regexp.go:525
github.com/containerd/containerd/identifiers.Validate(0x7ffd389a4e0c, 0x4, 0x7ffd389a4e0c, 0x4)
/go/src/github.com/containerd/containerd/identifiers/validate.go:61 +0x9f fp=0xc0001575b0 sp=0xc000157500 pc=0x809b5f
github.com/containerd/containerd/namespaces.NamespaceRequired(0x9f5b60, 0xc000098000, 0x0, 0x8, 0x0, 0x7ff016885b10)
/go/src/github.com/containerd/containerd/namespaces/context.go:74 +0xd5 fp=0xc000157618 sp=0xc0001575b0 pc=0x814dd5
github.com/containerd/containerd/runtime/v2/runc/v2.newCommand(0x9f5b60, 0xc000098000, 0x7ffd389a4e6e, 0x40, 0x7ffd389a4e56, 0x13, 0x7ffd389a4e1a, 0x2b, 0xc00002a00e, 0x31, ...)
/go/src/github.com/containerd/containerd/runtime/v2/runc/v2/service.go:135 +0x4d fp=0xc000157708 sp=0xc000157618 pc=0x892ead
github.com/containerd/containerd/runtime/v2/runc/v2.(*service).StartShim(0xc000090080, 0x9f5b60, 0xc000098000, 0x7ffd389a4e6e, 0x40, 0x7ffd389a4e56, 0x13, 0x7ffd389a4e1a, 0x2b, 0xc00002a00e, ...)
/go/src/github.com/containerd/containerd/runtime/v2/runc/v2/service.go:175 +0xcb fp=0xc000157970 sp=0xc000157708 pc=0x8934eb
github.com/containerd/containerd/runtime/v2/shim.run(0x976d27, 0x15, 0x98d508, 0x0, 0x0, 0x0)
/go/src/github.com/containerd/containerd/runtime/v2/shim/shim.go:222 +0xbb5 fp=0xc000157ea8 sp=0xc000157970 pc=0x867e75
github.com/containerd/containerd/runtime/v2/shim.Run(0x976d27, 0x15, 0x98d508, 0x0, 0x0, 0x0)
/go/src/github.com/containerd/containerd/runtime/v2/shim/shim.go:153 +0xc7 fp=0xc000157f48 sp=0xc000157ea8 pc=0x8671a7
main.main()
/go/src/github.com/containerd/containerd/cmd/containerd-shim-runc-v2/main.go:27 +0x53 fp=0xc000157f88 sp=0xc000157f48 pc=0x898f73
runtime.main()
/usr/local/go/src/runtime/proc.go:204 +0x209 fp=0xc000157fe0 sp=0xc000157f88 pc=0x438549
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc000157fe8 sp=0xc000157fe0 pc=0x46b0a1
goroutine 18 [chan receive]:
github.com/containerd/containerd/runtime/v2/shim.setRuntime.func1()
/go/src/github.com/containerd/containerd/runtime/v2/shim/shim.go:120 +0x85
created by github.com/containerd/containerd/runtime/v2/shim.setRuntime
/go/src/github.com/containerd/containerd/runtime/v2/shim/shim.go:119 +0x45
goroutine 5 [syscall]:
os/signal.signal_recv(0xc00003c7ae)
/usr/local/go/src/runtime/sigqueue.go:147 +0x9d
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:150 +0x45
goroutine 6 [chan receive]:
github.com/containerd/containerd/runtime/v2/shim.(*RemoteEventsPublisher).processQueue(0xc000068180)
/go/src/github.com/containerd/containerd/runtime/v2/shim/publisher.go:80 +0x55
created by github.com/containerd/containerd/runtime/v2/shim.NewPublisher
/go/src/github.com/containerd/containerd/runtime/v2/shim/publisher.go:56 +0x10f
goroutine 7 [syscall]:
syscall.Syscall6(0xe8, 0xa, 0xc0001559a8, 0x80, 0xffffffffffffffff, 0x0, 0x0, 0x406d7a, 0xc00015e2a0, 0x0)
/usr/local/go/src/syscall/asm_linux_amd64.s:41 +0x5
github.com/containerd/containerd/vendor/golang.org/x/sys/unix.EpollWait(0xa, 0xc0001559a8, 0x80, 0x80, 0xffffffffffffffff, 0x0, 0x0, 0x0)
/go/src/github.com/containerd/containerd/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go:77 +0x72
github.com/containerd/containerd/pkg/oom/v1.(*epoller).Run(0xc000068360, 0x9f5b60, 0xc000098000)
/go/src/github.com/containerd/containerd/pkg/oom/v1/v1.go:77 +0xad
created by github.com/containerd/containerd/runtime/v2/runc/v2.New
/go/src/github.com/containerd/containerd/runtime/v2/runc/v2/service.go:90 +0x109
goroutine 8 [runnable]:
github.com/containerd/containerd/runtime/v2/runc/v2.(*service).processExits(0xc000090080)
/go/src/github.com/containerd/containerd/runtime/v2/runc/v2/service.go:726
created by github.com/containerd/containerd/runtime/v2/runc/v2.New
/go/src/github.com/containerd/containerd/runtime/v2/runc/v2/service.go:100 +0x21f
goroutine 9 [runnable]:
github.com/containerd/containerd/vendor/github.com/containerd/console.(*Epoller).Wait(0xc0000683f0, 0xc0001578b0, 0x40df98)
/go/src/github.com/containerd/containerd/vendor/github.com/containerd/console/console_linux.go:108
created by github.com/containerd/containerd/runtime/v2/runc.NewPlatform
/go/src/github.com/containerd/containerd/runtime/v2/runc/platform.go:48 +0x5b
goroutine 10 [runnable]:
github.com/containerd/containerd/runtime/v2/runc/v2.(*service).forward(0xc000090080, 0x9f5b60, 0xc000098000, 0x9ef7e0, 0xc000068180)
/go/src/github.com/containerd/containerd/runtime/v2/runc/v2/service.go:800
created by github.com/containerd/containerd/runtime/v2/runc/v2.New
/go/src/github.com/containerd/containerd/runtime/v2/runc/v2/service.go:106 +0x2c5
rax 0xce0a20
rbx 0xc0000a8000
rcx 0x0
rdx 0x0
rdi 0xc00005c1e0
rsi 0x0
rbp 0xc0001575a0
rsp 0xc000157500
r8 0xce0a20
r9 0x0
r10 0xc00005c1e0
r11 0x4
r12 0xc000143b80
r13 0x0
r14 0x9dc890
r15 0x0
rip 0x809b5f
rflags 0x10202
cs 0x33
fs 0x0
gs 0x0
: exit status 2: unknown.

Pointer errors with VNImageRequestHandler attempting OCR

I've tried to implement OCR exactly as outlined on the Apple website (https://developer.apple.com/documentation/vision/recognizing_text_in_images), but I get a range of pointer errors when I attempt to perform the OCR. Error has been labelled in Xcode with Thread 1: EXC_BAD_ACCESS (code=1, address=0x17dfe3ff0) or Thread 1: De-allocation of unallocated memory.
My questions are this:
Why am I getting a pointer error from within one of Apple's own packages? Have I got something wrong in the setup that I've missed?
(Minor point) Why is this crashing my app, rather than being caught gracefully?
I think it might be something do with the UIImage being de-allocated before the VNImageRequestHandler gets to it? I have a separate camera framework that I use to take and crop the photograph and return the image, so maybe the image is being de-allocated or is being considered out of scope? I've seen this error before and it just disappeared overnight, but I'd rather not just cross my fingers and hope it goes away!
EDIT: Following a suggestion in the comments, I turned off the Address Sanitizer, and it seems to work again. Not marking this as solved, as I'd prefer my code not to break when I turn on debugging tools...
#available(iOS 13.0, *)
class func recogniseText(inImage: UIImage, completionHandler: #escaping (_ recognisedText: String?) -> Void){
guard let cgImage = inImage.cgImage else{
return completionHandler(nil)
}
let requestHandler = VNImageRequestHandler(cgImage: cgImage)
let ocrRequest = VNRecognizeTextRequest { (request, error) in
guard let observations = request.results as? [VNRecognizedTextObservation] else{
return completionHandler(nil)
}
let recognizedStrings = observations.compactMap { observation in
// Return the string of the top VNRecognizedText instance.
observation.topCandidates(1).first?.string
}
completionHandler(recognizedStrings.joined(separator: "\n"))
}
ocrRequest.recognitionLevel = .accurate
ocrRequest.recognitionLanguages = ["en-GB"]
ocrRequest.usesLanguageCorrection = false
do {
try requestHandler.perform([ocrRequest]) // Error is thrown here
} catch {
completionHandler(nil)
}
}
Log is as follows:
=================================================================
==1979==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x00017b400000 in thread T0
#0 0x1033df438 in wrap_free+0x8c (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x3f438)
#1 0x195b3d0f4 in <redacted>+0x3c (/System/Library/Frameworks/CoreML.framework/CoreML:arm64+0xf0f4)
#2 0x195b40470 in <redacted>+0x4c (/System/Library/Frameworks/CoreML.framework/CoreML:arm64+0x12470)
#3 0x195b380b0 in <redacted>+0x4c (/System/Library/Frameworks/CoreML.framework/CoreML:arm64+0xa0b0)
#4 0x199aebf0c in <redacted>+0x6c (/usr/lib/libobjc.A.dylib:arm64+0x6f0c)
#5 0x199ae8f04 in objc_destructInstance+0x54 (/usr/lib/libobjc.A.dylib:arm64+0x3f04)
#6 0x199af1db8 in _objc_rootDealloc+0x30 (/usr/lib/libobjc.A.dylib:arm64+0xcdb8)
#7 0x199aeb584 in <redacted>+0xc0 (/usr/lib/libobjc.A.dylib:arm64+0x6584)
#8 0x199ae7dec in objc_autoreleasePoolPop+0xc8 (/usr/lib/libobjc.A.dylib:arm64+0x2dec)
#9 0x1a47bfb80 in <redacted>+0x100 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x4b80)
#10 0x1a47bfa3c in <redacted>+0x30 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x4a3c)
#11 0x1a47c8d28 in <redacted>+0x44 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0xdd28)
#12 0x1a482d6dc in <redacted>+0x28 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x726dc)
#13 0x10444d600 in _dispatch_block_sync_invoke+0x68 (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x9600)
#14 0x104449f90 in _dispatch_client_callout+0xc (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x5f90)
#15 0x104459634 in _dispatch_lane_barrier_sync_invoke_and_complete+0x74 (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x15634)
#16 0x10444eb18 in _dispatch_sync_block_with_privdata+0x188 (/usr/lib/system/introspection/libdispatch.dylib:arm64+0xab18)
#17 0x1a47c4eac in <redacted>+0x19c (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x9eac)
#18 0x1a499251c in <redacted>+0x220 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x1d751c)
#19 0x1a47bd79c in <redacted>+0x2c0 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x279c)
#20 0x1a47c8d28 in <redacted>+0x44 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0xdd28)
#21 0x1a47c4514 in <redacted>+0x200 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x9514)
#22 0x1a47c2a9c in <redacted>+0x1b4 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x7a9c)
#23 0x1a47c2878 in <redacted>+0xb4 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x7878)
#24 0x100fd69b4 in static ---.---.recogniseText(inImage: __C.UIImage, completionHandler: (Swift.Optional<Swift.String>) -> ()) -> ()+0x890 (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/---:arm64+0x1001ea9b4)
#25 0x100ee3458 in ---.---View.---Controller(_: ---.---Controller, didFinishScanningWithResults: ---.ImageScannerResults) -> ()+0x4b4 (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/---:arm64+0x1000f7458)
#26 0x100ee68bc in protocol witness for ---.ImageScannerControllerDelegate.imageScannerController(_: ---.ImageScannerController, didFinishScanningWithResults: ---.ImageScannerResults) -> () in conformance ---.IdentityGetStartedView : ---.ImageScannerControllerDelegate in ---+0x8 (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/---:arm64+0x1000fa8bc)
#27 0x103f0deb0 in ---.ReviewViewController.(finishScan in _9E959B31AA30B2E6A6CE4785C0F01E54)() -> ()+0x49c (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/Frameworks/---.framework/---:arm64+0x4deb0)
#28 0x103f0df40 in #objc ---.ReviewViewController.(finishScan in _9E959B31AA30B2E6A6CE4785C0F01E54)() -> ()+0x20 (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/Frameworks/---.framework/---:arm64+0x4df40)
#29 0x1850b56a4 in <redacted>+0x5c (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x49d6a4)
#30 0x18537386c in <redacted>+0xac (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x75b86c)
#31 0x18535e6d0 in <redacted>+0x20 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x7466d0)
#32 0x18535e584 in <redacted>+0xa4 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x746584)
#33 0x1850b56a4 in <redacted>+0x5c (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x49d6a4)
#34 0x1851d67d4 in <redacted>+0x78 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x5be7d4)
#35 0x184f69d70 in <redacted>+0x158 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x351d70)
#36 0x184f69dc0 in <redacted>+0x1a8 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x351dc0)
#37 0x18527b2e4 in <redacted>+0x210 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x6632e4)
#38 0x184d7bbf8 in <redacted>+0x4c8 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x163bf8)
#39 0x184dabc54 in <redacted>+0x1124 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x193c54)
#40 0x184f4ee70 in <redacted>+0x37c (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x336e70)
#41 0x184d8070c in <redacted>+0x1fb8 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x16870c)
#42 0x184d75658 in <redacted>+0x1a58 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x15d658)
#43 0x184d7a9e8 in <redacted>+0xa4 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x1629e8)
#44 0x18296620c in <redacted>+0x14 (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xb220c)
#45 0x182976234 in <redacted>+0xc8 (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xc2234)
#46 0x1828b95d4 in <redacted>+0xfc (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x55d4)
#47 0x1828bea04 in <redacted>+0x2fc (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xaa04)
#48 0x1828d1d78 in CFRunLoopRunSpecific+0x238 (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x1dd78)
#49 0x19cb4699c in GSEventRunModal+0x9c (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0x199c)
#50 0x185104058 in <redacted>+0x434 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x4ec058)
#51 0x184e99cdc in UIApplicationMain+0x7e8 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x281cdc)
#52 0x101212988 in main+0x3c (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/---:arm64+0x100426988)
#53 0x102f6018c (/usr/lib/dyld:arm64+0x1818c)
Address 0x00017b400000 is a wild pointer.
SUMMARY: AddressSanitizer: bad-free (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x3f438) in wrap_free+0x8c
2021-12-01 15:31:56.039013+0000 ---[1979:545450] =================================================================
2021-12-01 15:31:56.039144+0000 ---[1979:545450] ==1979==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x00017b400000 in thread T0
2021-12-01 15:31:56.039222+0000 ---[1979:545450] #0 0x1033df438 in wrap_free+0x8c (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x3f438)
2021-12-01 15:31:56.039287+0000 ---[1979:545450] #1 0x195b3d0f4 in <redacted>+0x3c (/System/Library/Frameworks/CoreML.framework/CoreML:arm64+0xf0f4)
2021-12-01 15:31:56.039350+0000 ---[1979:545450] #2 0x195b40470 in <redacted>+0x4c (/System/Library/Frameworks/CoreML.framework/CoreML:arm64+0x12470)
2021-12-01 15:31:56.039410+0000 ---[1979:545450] #3 0x195b380b0 in <redacted>+0x4c (/System/Library/Frameworks/CoreML.framework/CoreML:arm64+0xa0b0)
2021-12-01 15:31:56.039472+0000 ---[1979:545450] #4 0x199aebf0c in <redacted>+0x6c (/usr/lib/libobjc.A.dylib:arm64+0x6f0c)
2021-12-01 15:31:56.039539+0000 ---[1979:545450] #5 0x199ae8f04 in objc_destructInstance+0x54 (/usr/lib/libobjc.A.dylib:arm64+0x3f04)
2021-12-01 15:31:56.040035+0000 ---[1979:545450] #6 0x199af1db8 in _objc_rootDealloc+0x30 (/usr/lib/libobjc.A.dylib:arm64+0xcdb8)
2021-12-01 15:31:56.040115+0000 ---[1979:545450] #7 0x199aeb584 in <redacted>+0xc0 (/usr/lib/libobjc.A.dylib:arm64+0x6584)
2021-12-01 15:31:56.040179+0000 ---[1979:545450] #8 0x199ae7dec in objc_autoreleasePoolPop+0xc8 (/usr/lib/libobjc.A.dylib:arm64+0x2dec)
2021-12-01 15:31:56.040240+0000 ---[1979:545450] #9 0x1a47bfb80 in <redacted>+0x100 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x4b80)
2021-12-01 15:31:56.040305+0000 ---[1979:545450] #10 0x1a47bfa3c in <redacted>+0x30 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x4a3c)
2021-12-01 15:31:56.040366+0000 ---[1979:545450] #11 0x1a47c8d28 in <redacted>+0x44 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0xdd28)
2021-12-01 15:31:56.040429+0000 ---[1979:545450] #12 0x1a482d6dc in <redacted>+0x28 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x726dc)
2021-12-01 15:31:56.040575+0000 ---[1979:545450] #13 0x10444d600 in _dispatch_block_sync_invoke+0x68 (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x9600)
2021-12-01 15:31:56.040639+0000 ---[1979:545450] #14 0x104449f90 in _dispatch_client_callout+0xc (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x5f90)
2021-12-01 15:31:56.040704+0000 ---[1979:545450] #15 0x104459634 in _dispatch_lane_barrier_sync_invoke_and_complete+0x74 (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x15634)
2021-12-01 15:31:56.041072+0000 ---[1979:545450] #16 0x10444eb18 in _dispatch_sync_block_with_privdata+0x188 (/usr/lib/system/introspection/libdispatch.dylib:arm64+0xab18)
2021-12-01 15:31:56.041140+0000 ---[1979:545450] #17 0x1a47c4eac in <redacted>+0x19c (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x9eac)
2021-12-01 15:31:56.041203+0000 ---[1979:545450] #18 0x1a499251c in <redacted>+0x220 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x1d751c)
2021-12-01 15:31:56.041434+0000 ---[1979:545450] #19 0x1a47bd79c in <redacted>+0x2c0 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x279c)
2021-12-01 15:31:56.041497+0000 ---[1979:545450] #20 0x1a47c8d28 in <redacted>+0x44 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0xdd28)
2021-12-01 15:31:56.041555+0000 ---[1979:545450] #21 0x1a47c4514 in <redacted>+0x200 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x9514)
2021-12-01 15:31:56.041636+0000 ---[1979:545450] #22 0x1a47c2a9c in <redacted>+0x1b4 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x7a9c)
2021-12-01 15:31:56.041699+0000 ---[1979:545450] #23 0x1a47c2878 in <redacted>+0xb4 (/System/Library/Frameworks/Vision.framework/Vision:arm64+0x7878)
2021-12-01 15:31:56.041758+0000 ---[1979:545450] #24 0x100fd69b4 in static ---.IdentityDocumentController.recogniseText(inImage: __C.UIImage, completionHandler: (Swift.Optional<Swift.String>) -> ()) -> ()+0x890 (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/---:arm64+0x1001ea9b4)
2021-12-01 15:31:56.041924+0000 ---[1979:545450] #25 0x100ee3458 in ---.IdentityGetStartedView.imageScannerController(_: ---.ImageScannerController, didFinishScanningWithResults: ---.ImageScannerResults) -> ()+0x4b4 (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/---:arm64+0x1000f7458)
2021-12-01 15:31:56.041993+0000 ---[1979:545450] #26 0x100ee68bc in protocol witness for ---.ImageScannerControllerDelegate.imageScannerController(_: ---.ImageScannerController, didFinishScanningWithResults: ---.ImageScannerResults) -> () in conformance ---.IdentityGetStartedView : ---.ImageScannerControllerDelegate in ---+0x8 (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/---:arm64+0x1000fa8bc)
2021-12-01 15:31:56.042248+0000 ---[1979:545450] #27 0x103f0deb0 in ---.ReviewViewController.(finishScan in _9E959B31AA30B2E6A6CE4785C0F01E54)() -> ()+0x49c (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/Frameworks/---.framework/---:arm64+0x4deb0)
2021-12-01 15:31:56.042315+0000 ---[1979:545450] #28 0x103f0df40 in #objc ---.ReviewViewController.(finishScan in _9E959B31AA30B2E6A6CE4785C0F01E54)() -> ()+0x20 (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/Frameworks/---.framework/PIOScanningKit:arm64+0x4df40)
2021-12-01 15:31:56.042379+0000 ---[1979:545450] #29 0x1850b56a4 in <redacted>+0x5c (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x49d6a4)
2021-12-01 15:31:56.042761+0000 ---[1979:545450] #30 0x18537386c in <redacted>+0xac (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x75b86c)
2021-12-01 15:31:56.042861+0000 ---[1979:545450] #31 0x18535e6d0 in <redacted>+0x20 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x7466d0)
2021-12-01 15:31:56.042927+0000 ---[1979:545450] #32 0x18535e584 in <redacted>+0xa4 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x746584)
2021-12-01 15:31:56.042989+0000 ---[1979:545450] #33 0x1850b56a4 in <redacted>+0x5c (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x49d6a4)
2021-12-01 15:31:56.043052+0000 ---[1979:545450] #34 0x1851d67d4 in <redacted>+0x78 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x5be7d4)
2021-12-01 15:31:56.043113+0000 ---[1979:545450] #35 0x184f69d70 in <redacted>+0x158 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x351d70)
2021-12-01 15:31:56.043796+0000 ---[1979:545450] #36 0x184f69dc0 in <redacted>+0x1a8 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x351dc0)
2021-12-01 15:31:56.043858+0000 ---[1979:545450] #37 0x18527b2e4 in <redacted>+0x210 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x6632e4)
2021-12-01 15:31:56.043916+0000 ---[1979:545450] #38 0x184d7bbf8 in <redacted>+0x4c8 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x163bf8)
2021-12-01 15:31:56.043980+0000 ---[1979:545450] #39 0x184dabc54 in <redacted>+0x1124 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x193c54)
2021-12-01 15:31:56.044110+0000 ---[1979:545450] #40 0x184f4ee70 in <redacted>+0x37c (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x336e70)
2021-12-01 15:31:56.044359+0000 ---[1979:545450] #41 0x184d8070c in <redacted>+0x1fb8 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x16870c)
2021-12-01 15:31:56.044800+0000 ---[1979:545450] #42 0x184d75658 in <redacted>+0x1a58 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x15d658)
2021-12-01 15:31:56.045033+0000 ---[1979:545450] #43 0x184d7a9e8 in <redacted>+0xa4 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x1629e8)
2021-12-01 15:31:56.045255+0000 ---[1979:545450] #44 0x18296620c in <redacted>+0x14 (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xb220c)
2021-12-01 15:31:56.045481+0000 ---[1979:545450] #45 0x182976234 in <redacted>+0xc8 (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xc2234)
2021-12-01 15:31:56.046587+0000 ---[1979:545450] #46 0x1828b95d4 in <redacted>+0xfc (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x55d4)
2021-12-01 15:31:56.046847+0000 ---[1979:545450] #47 0x1828bea04 in <redacted>+0x2fc (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xaa04)
2021-12-01 15:31:56.047586+0000 ---[1979:545450] #48 0x1828d1d78 in CFRunLoopRunSpecific+0x238 (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x1dd78)
2021-12-01 15:31:56.047851+0000 ---[1979:545450] #49 0x19cb4699c in GSEventRunModal+0x9c (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0x199c)
2021-12-01 15:31:56.048791+0000 ---[1979:545450] #50 0x185104058 in <redacted>+0x434 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x4ec058)
2021-12-01 15:31:56.049650+0000 ---[1979:545450] #51 0x184e99cdc in UIApplicationMain+0x7e8 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x281cdc)
2021-12-01 15:31:56.049949+0000 ---[1979:545450] #52 0x101212988 in main+0x3c (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/---:arm64+0x100426988)
2021-12-01 15:31:56.052728+0000 ---[1979:545450] #53 0x102f6018c (/usr/lib/dyld:arm64+0x1818c)
2021-12-01 15:31:56.053015+0000 ---[1979:545450]
2021-12-01 15:31:56.053260+0000 ---[1979:545450] Address 0x00017b400000 is a wild pointer.
2021-12-01 15:31:56.053516+0000 ---[1979:545450] SUMMARY: AddressSanitizer: bad-free (/private/var/containers/Bundle/Application/A60B9200-585C-47ED-B991-C4EFD9CDF577/---.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x3f438) in wrap_free+0x8c
==1979==ABORTING
EDITED: This configuration of the scheme seems to work for me perfectly. 'The Guard Malloc' and 'Malloc Guard Edges' options seem to stop the problem of deallocating unallocated memory by VNImageRequestHandler.

Call to undefined method Laravel\Lumen\Routing\Router::dispatch()

Does anyone know how to fix this?
I tried to use these codes for issuing access token, but i got errored.
protected function oauthLogin(Request $request)
{
$client = DB::table('oauth_clients')
->where('password_client', true)
->first();
$request->request->add([
"grant_type" => "password",
"username" => $request->email,
"password" => $request->password,
"client_id" => $client->id,
"client_secret" => $client->secret,
]);
$tokenRequest = $request->create(
env('APP_URL') . 'api/v1/oauth/token',
'post'
);
$instance = Route::dispatch($tokenRequest);
return json_decode($instance->getContent());
}
This was the error traceable logs. I dont know if this is related because my even my credentials was correct so, i dont think, that my credentials was denied. I tried it also to oauth/token and it was working. Still the same error. I've got.
[2019-02-20 13:22:09] local.ERROR: League\OAuth2\Server\Exception\OAuthServerException: The resource owner or authorization server denied the request. in D:\laragon\www\auth-service-optimize\vendor\league\oauth2-server\src\Exception\OAuthServerException.php:215
Stack trace:
#0 D:\laragon\www\auth-service-optimize\vendor\league\oauth2-server\src\AuthorizationValidators\BearerTokenValidator.php(73): League\OAuth2\Server\Exception\OAuthServerException::accessDenied('Access token co...')
#1 D:\laragon\www\auth-service-optimize\vendor\league\oauth2-server\src\ResourceServer.php(84): League\OAuth2\Server\AuthorizationValidators\BearerTokenValidator->validateAuthorization(Object(Zend\Diactoros\ServerRequest))
#2 D:\laragon\www\auth-service-optimize\vendor\laravel\passport\src\Guards\TokenGuard.php(174): League\OAuth2\Server\ResourceServer->validateAuthenticatedRequest(Object(Zend\Diactoros\ServerRequest))
#3 D:\laragon\www\auth-service-optimize\vendor\laravel\passport\src\Guards\TokenGuard.php(126): Laravel\Passport\Guards\TokenGuard->getPsrRequestViaBearerToken(Object(Laravel\Lumen\Http\Request))
#4 D:\laragon\www\auth-service-optimize\vendor\laravel\passport\src\Guards\TokenGuard.php(89): Laravel\Passport\Guards\TokenGuard->authenticateViaBearerToken(Object(Laravel\Lumen\Http\Request))
#5 D:\laragon\www\auth-service-optimize\vendor\laravel\passport\src\PassportServiceProvider.php(274): Laravel\Passport\Guards\TokenGuard->user(Object(Laravel\Lumen\Http\Request))
#6 [internal function]: Laravel\Passport\PassportServiceProvider->Laravel\Passport\{closure}(Object(Laravel\Lumen\Http\Request), NULL)
#7 D:\laragon\www\auth-service-optimize\vendor\illuminate\auth\RequestGuard.php(58): call_user_func(Object(Closure), Object(Laravel\Lumen\Http\Request), NULL)
#8 D:\laragon\www\auth-service-optimize\app\Http\Controllers\AuthController.php(169): Illuminate\Auth\RequestGuard->user()
#9 [internal function]: App\Http\Controllers\AuthController->adminLogin(Object(Laravel\Lumen\Http\Request))
#10 D:\laragon\www\auth-service-optimize\vendor\illuminate\container\BoundMethod.php(29): call_user_func_array(Array, Array)
#11 D:\laragon\www\auth-service-optimize\vendor\illuminate\container\BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#12 D:\laragon\www\auth-service-optimize\vendor\illuminate\container\BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod(Object(Laravel\Lumen\Application), Array, Object(Closure))
#13 D:\laragon\www\auth-service-optimize\vendor\illuminate\container\Container.php(572): Illuminate\Container\BoundMethod::call(Object(Laravel\Lumen\Application), Array, Array, NULL)
#14 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(378): Illuminate\Container\Container->call(Array, Array)
#15 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(344): Laravel\Lumen\Application->callControllerCallable(Array, Array)
#16 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(318): Laravel\Lumen\Application->callLumenController(Object(App\Http\Controllers\AuthController), 'adminLogin', Array)
#17 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(280): Laravel\Lumen\Application->callControllerAction(Array)
#18 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(265): Laravel\Lumen\Application->callActionOnArrayBasedRoute(Array)
#19 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(165): Laravel\Lumen\Application->handleFoundRoute(Array)
#20 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(418): Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(Object(Laravel\Lumen\Http\Request))
#21 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(171): Laravel\Lumen\Application->sendThroughPipeline(Array, Object(Closure))
#22 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(108): Laravel\Lumen\Application->dispatch(NULL)
#23 D:\laragon\www\auth-service-optimize\public\index.php(28): Laravel\Lumen\Application->run()
#24 {main} {"exception":"[object] (League\\OAuth2\\Server\\Exception\\OAuthServerException(code: 9): The resource owner or authorization server denied the request. at D:\\laragon\\www\\auth-service-optimize\\vendor\\league\\oauth2-server\\src\\Exception\\OAuthServerException.php:215)
[stacktrace]
#0 D:\\laragon\\www\\auth-service-optimize\\vendor\\league\\oauth2-server\\src\\AuthorizationValidators\\BearerTokenValidator.php(73): League\\OAuth2\\Server\\Exception\\OAuthServerException::accessDenied('Access token co...')
#1 D:\\laragon\\www\\auth-service-optimize\\vendor\\league\\oauth2-server\\src\\ResourceServer.php(84): League\\OAuth2\\Server\\AuthorizationValidators\\BearerTokenValidator->validateAuthorization(Object(Zend\\Diactoros\\ServerRequest))
#2 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\passport\\src\\Guards\\TokenGuard.php(174): League\\OAuth2\\Server\\ResourceServer->validateAuthenticatedRequest(Object(Zend\\Diactoros\\ServerRequest))
#3 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\passport\\src\\Guards\\TokenGuard.php(126): Laravel\\Passport\\Guards\\TokenGuard->getPsrRequestViaBearerToken(Object(Laravel\\Lumen\\Http\\Request))
#4 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\passport\\src\\Guards\\TokenGuard.php(89): Laravel\\Passport\\Guards\\TokenGuard->authenticateViaBearerToken(Object(Laravel\\Lumen\\Http\\Request))
#5 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\passport\\src\\PassportServiceProvider.php(274): Laravel\\Passport\\Guards\\TokenGuard->user(Object(Laravel\\Lumen\\Http\\Request))
#6 [internal function]: Laravel\\Passport\\PassportServiceProvider->Laravel\\Passport\\{closure}(Object(Laravel\\Lumen\\Http\\Request), NULL)
#7 D:\\laragon\\www\\auth-service-optimize\\vendor\\illuminate\\auth\\RequestGuard.php(58): call_user_func(Object(Closure), Object(Laravel\\Lumen\\Http\\Request), NULL)
#8 D:\\laragon\\www\\auth-service-optimize\\app\\Http\\Controllers\\AuthController.php(169): Illuminate\\Auth\\RequestGuard->user()
#9 [internal function]: App\\Http\\Controllers\\AuthController->adminLogin(Object(Laravel\\Lumen\\Http\\Request))
#10 D:\\laragon\\www\\auth-service-optimize\\vendor\\illuminate\\container\\BoundMethod.php(29): call_user_func_array(Array, Array)
#11 D:\\laragon\\www\\auth-service-optimize\\vendor\\illuminate\\container\\BoundMethod.php(87): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#12 D:\\laragon\\www\\auth-service-optimize\\vendor\\illuminate\\container\\BoundMethod.php(31): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Laravel\\Lumen\\Application), Array, Object(Closure))
#13 D:\\laragon\\www\\auth-service-optimize\\vendor\\illuminate\\container\\Container.php(572): Illuminate\\Container\\BoundMethod::call(Object(Laravel\\Lumen\\Application), Array, Array, NULL)
#14 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(378): Illuminate\\Container\\Container->call(Array, Array)
#15 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(344): Laravel\\Lumen\\Application->callControllerCallable(Array, Array)
#16 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(318): Laravel\\Lumen\\Application->callLumenController(Object(App\\Http\\Controllers\\AuthController), 'adminLogin', Array)
#17 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(280): Laravel\\Lumen\\Application->callControllerAction(Array)
#18 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(265): Laravel\\Lumen\\Application->callActionOnArrayBasedRoute(Array)
#19 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(165): Laravel\\Lumen\\Application->handleFoundRoute(Array)
#20 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(418): Laravel\\Lumen\\Application->Laravel\\Lumen\\Concerns\\{closure}(Object(Laravel\\Lumen\\Http\\Request))
#21 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(171): Laravel\\Lumen\\Application->sendThroughPipeline(Array, Object(Closure))
#22 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(108): Laravel\\Lumen\\Application->dispatch(NULL)
#23 D:\\laragon\\www\\auth-service-optimize\\public\\index.php(28): Laravel\\Lumen\\Application->run()
#24 {main}
"}
[2019-02-20 13:22:09] local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Laravel\Lumen\Routing\Router::dispatch() in D:\laragon\www\auth-service-optimize\vendor\illuminate\support\Facades\Facade.php:237
Stack trace:
#0 D:\laragon\www\auth-service-optimize\app\Http\Controllers\AuthController.php(202): Illuminate\Support\Facades\Facade::__callStatic('dispatch', Array)
#1 D:\laragon\www\auth-service-optimize\app\Http\Controllers\AuthController.php(171): App\Http\Controllers\AuthController->oauthLogin(Object(Laravel\Lumen\Http\Request))
#2 [internal function]: App\Http\Controllers\AuthController->adminLogin(Object(Laravel\Lumen\Http\Request))
#3 D:\laragon\www\auth-service-optimize\vendor\illuminate\container\BoundMethod.php(29): call_user_func_array(Array, Array)
#4 D:\laragon\www\auth-service-optimize\vendor\illuminate\container\BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#5 D:\laragon\www\auth-service-optimize\vendor\illuminate\container\BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod(Object(Laravel\Lumen\Application), Array, Object(Closure))
#6 D:\laragon\www\auth-service-optimize\vendor\illuminate\container\Container.php(572): Illuminate\Container\BoundMethod::call(Object(Laravel\Lumen\Application), Array, Array, NULL)
#7 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(378): Illuminate\Container\Container->call(Array, Array)
#8 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(344): Laravel\Lumen\Application->callControllerCallable(Array, Array)
#9 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(318): Laravel\Lumen\Application->callLumenController(Object(App\Http\Controllers\AuthController), 'adminLogin', Array)
#10 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(280): Laravel\Lumen\Application->callControllerAction(Array)
#11 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(265): Laravel\Lumen\Application->callActionOnArrayBasedRoute(Array)
#12 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(165): Laravel\Lumen\Application->handleFoundRoute(Array)
#13 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(418): Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(Object(Laravel\Lumen\Http\Request))
#14 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(171): Laravel\Lumen\Application->sendThroughPipeline(Array, Object(Closure))
#15 D:\laragon\www\auth-service-optimize\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(108): Laravel\Lumen\Application->dispatch(NULL)
#16 D:\laragon\www\auth-service-optimize\public\index.php(28): Laravel\Lumen\Application->run()
#17 {main} {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to undefined method Laravel\\Lumen\\Routing\\Router::dispatch() at D:\\laragon\\www\\auth-service-optimize\\vendor\\illuminate\\support\\Facades\\Facade.php:237)
[stacktrace]
#0 D:\\laragon\\www\\auth-service-optimize\\app\\Http\\Controllers\\AuthController.php(202): Illuminate\\Support\\Facades\\Facade::__callStatic('dispatch', Array)
#1 D:\\laragon\\www\\auth-service-optimize\\app\\Http\\Controllers\\AuthController.php(171): App\\Http\\Controllers\\AuthController->oauthLogin(Object(Laravel\\Lumen\\Http\\Request))
#2 [internal function]: App\\Http\\Controllers\\AuthController->adminLogin(Object(Laravel\\Lumen\\Http\\Request))
#3 D:\\laragon\\www\\auth-service-optimize\\vendor\\illuminate\\container\\BoundMethod.php(29): call_user_func_array(Array, Array)
#4 D:\\laragon\\www\\auth-service-optimize\\vendor\\illuminate\\container\\BoundMethod.php(87): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#5 D:\\laragon\\www\\auth-service-optimize\\vendor\\illuminate\\container\\BoundMethod.php(31): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Laravel\\Lumen\\Application), Array, Object(Closure))
#6 D:\\laragon\\www\\auth-service-optimize\\vendor\\illuminate\\container\\Container.php(572): Illuminate\\Container\\BoundMethod::call(Object(Laravel\\Lumen\\Application), Array, Array, NULL)
#7 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(378): Illuminate\\Container\\Container->call(Array, Array)
#8 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(344): Laravel\\Lumen\\Application->callControllerCallable(Array, Array)
#9 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(318): Laravel\\Lumen\\Application->callLumenController(Object(App\\Http\\Controllers\\AuthController), 'adminLogin', Array)
#10 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(280): Laravel\\Lumen\\Application->callControllerAction(Array)
#11 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(265): Laravel\\Lumen\\Application->callActionOnArrayBasedRoute(Array)
#12 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(165): Laravel\\Lumen\\Application->handleFoundRoute(Array)
#13 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(418): Laravel\\Lumen\\Application->Laravel\\Lumen\\Concerns\\{closure}(Object(Laravel\\Lumen\\Http\\Request))
#14 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(171): Laravel\\Lumen\\Application->sendThroughPipeline(Array, Object(Closure))
#15 D:\\laragon\\www\\auth-service-optimize\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RoutesRequests.php(108): Laravel\\Lumen\\Application->dispatch(NULL)
#16 D:\\laragon\\www\\auth-service-optimize\\public\\index.php(28): Laravel\\Lumen\\Application->run()
#17 {main}
"}
The request that is dispatched is without the credentials added in the preceding line.
The reason being that Request::create returns a new request instance.
Add the request parameters in the newly created on $request and then dispatch it.
$tokenRequest = $request->create(
env('APP_URL') . 'api/v1/oauth/token',
'POST'
);
$tokenRequest->request->add([
"grant_type" => "password",
"username" => $request->email,
"password" => $request->password,
"client_id" => $client->id,
"client_secret" => $client->secret,
]);
$response = app()->handle($tokenRequest);

Scrollcontroller in flutter error Exception has occurred

I have two screen , first one fetch all post from wordpress
last one fetch all videos and i use ScollController with ListView to scroll data
look to my code :
ScrollController _scrollController;
#override
void initState() {
_scrollController = new ScrollController();
_scrollController.addListener(() {
print(_scrollController.position.pixels);
if (_scrollController.position.pixels ==
_scrollController.position.maxScrollExtent - 10) {
// if we are the bottom of the page
fetchPosts();
//millisecs += 1500;
//super.initState();
}
super.initState();
});
}
#override
void dispose() {
_scrollController.dispose();
super.dispose();
}
#override
Widget build(BuildContext context) { ....
when i tab between screen one to two or screen two to one
i get this error:
Exception has occurred.
FlutterError (A ScrollController was used after being disposed.
Once you have called dispose() on a ScrollController, it can no longer be used.)
trace code:
image error
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Built build\app\outputs\apk\debug\app-debug.apk.
D/EGL_emulation( 8157): eglMakeCurrent: 0xeeebd340: ver 3 1 (tinfo 0xeee9b1d0)
E/eglCodecCommon( 8157): glUtilsParamSize: unknow param 0x000082da
E/eglCodecCommon( 8157): glUtilsParamSize: unknow param 0x000082da
I/Choreographer( 8157): Skipped 49 frames! The application may be doing too much work on its main thread.
D/EGL_emulation( 8157): eglMakeCurrent: 0xeef21ce0: ver 3 1 (tinfo 0xe6f286b0)
D/ ( 8157): HostConnection::get() New Host Connection established 0xe7123880, tid 8184
D/EGL_emulation( 8157): eglMakeCurrent: 0xeeebd340: ver 3 1 (tinfo 0xe7103370)
I/flutter ( 8157): _morePages: false
I/flutter ( 8157): statusCode: 200
I/flutter ( 8157): ══╡ EXCEPTION CAUGHT BY FOUNDATION LIBRARY ╞════════════════════════════════════════════════════════
I/flutter ( 8157): The following assertion was thrown while dispatching notifications for ScrollController:
I/flutter ( 8157): 'package:flutter/src/widgets/framework.dart': Failed assertion: line 1003 pos 12:
I/flutter ( 8157): '_debugLifecycleState == _StateLifecycle.created': is not true.
I/flutter ( 8157):
I/flutter ( 8157): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 8157): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 8157): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 8157): https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter ( 8157):
I/flutter ( 8157): When the exception was thrown, this was the stack:
I/flutter ( 8157): #2 State.initState (package:flutter/src/widgets/framework.dart:1003:12)
I/flutter ( 8157): #3 _PostsPage.initState. (package:flutter_wp2019/ui/PostsLatest.dart:42:13)
I/flutter ( 8157): #4 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:208:21)
I/flutter ( 8157): #5 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:208:21)
I/flutter ( 8157): #6 ScrollPosition.notifyListeners (package:flutter/src/widgets/scroll_position.dart:692:11)
I/flutter ( 8157): #7 ScrollPosition.setPixels (package:flutter/src/widgets/scroll_position.dart:218:9)
I/flutter ( 8157): #8 ScrollPositionWithSingleContext.setPixels
(package:flutter/src/widgets/scroll_position_with_single_context.dart:84:18)
I/flutter ( 8157): #9 ScrollPositionWithSingleContext.applyUserOffset
(package:flutter/src/widgets/scroll_position_with_single_context.dart:127:5)
I/flutter ( 8157): #10 ScrollDragController.update (package:flutter/src/widgets/scroll_activity.dart:373:14)
I/flutter ( 8157): #11 ScrollableState._handleDragUpdate (package:flutter/src/widgets/scrollable.dart:470:12)
I/flutter ( 8157): #12 DragGestureRecognizer.acceptGesture.
(package:flutter/src/gestures/monodrag.dart:176:48)
I/flutter ( 8157): #13 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
I/flutter ( 8157): #14 DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:176:9)
I/flutter ( 8157): #15 GestureArenaManager._resolveInFavorOf (package:flutter/src/gestures/arena.dart:263:12)
I/flutter ( 8157): #16 GestureArenaManager._resolve (package:flutter/src/gestures/arena.dart:222:9)
I/flutter ( 8157): #17 GestureArenaEntry.resolve (package:flutter/src/gestures/arena.dart:52:12)
I/flutter ( 8157): #18 OneSequenceGestureRecognizer.resolve (package:flutter/src/gestures/recognizer.dart:166:13)
I/flutter ( 8157): #19 DragGestureRecognizer.handleEvent (package:flutter/src/gestures/monodrag.dart:154:11)
I/flutter ( 8157): #20 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73:12)
I/flutter ( 8157): #21 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:11)
I/flutter ( 8157): #22 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:180:19)
I/flutter ( 8157): #23 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:158:22)
I/flutter ( 8157): #24 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:138:7)
I/flutter ( 8157): #25 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue
(package:flutter/src/gestures/binding.dart:101:7)
I/flutter ( 8157): #26 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket
(package:flutter/src/gestures/binding.dart:85:7)
I/flutter ( 8157): #27 _invoke1 (dart:ui/hooks.dart:168:13)
I/flutter ( 8157): #28 _dispatchPointerDataPacket (dart:ui/hooks.dart:122:5)
I/flutter ( 8157): (elided 2 frames from class _AssertionError)
I/flutter ( 8157):
I/flutter ( 8157): The ScrollController sending notification was:
I/flutter ( 8157): ScrollController#bcc47(one client, offset 21.4)
I/flutter ( 8157): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/chatty ( 8157): uid=10083(com.example.flutterwp2019) 1.ui identical 16 lines
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/zygote ( 8157): Do partial code cache collection, code=29KB, data=23KB
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/chatty ( 8157): uid=10083(com.example.flutterwp2019) 1.ui identical 1 line
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/zygote ( 8157): After code cache collection, code=29KB, data=23KB
I/zygote ( 8157): Increasing code cache capacity to 128KB
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/chatty ( 8157): uid=10083(com.example.flutterwp2019) 1.ui identical 11 lines
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/zygote ( 8157): Do partial code cache collection, code=59KB, data=40KB
I/zygote ( 8157): After code cache collection, code=59KB, data=40KB
I/zygote ( 8157): Increasing code cache capacity to 256KB
I/flutter ( 8157): 30.00837053571422
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 42.86551339285711
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 55.72265625
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 71.41741071428567
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 88.56863839285711
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 105.71986607142856
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 120.24285714285713
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 117.38013392857141
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 110.24843749999997
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 93.09720982142858
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 63.0888392857143
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 23.11116071428569
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 0.0
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 1.4313616071428896
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 8.58816964285711
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 24.006696428571445
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 41.15792410714289
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 64.00948660714289
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 85.4296875
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 108.28125
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 120.24285714285713
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 2.8376116071428896
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 7.131696428571445
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 11.42578125
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 18.557477678571445
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 24.28292410714289
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 39.977678571428555
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 57.12890625
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 77.14285714285717
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 97.13169642857144
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 115.71428571428572
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): 120.24285714285713
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): _morePages: false
I/flutter ( 8157): statusCode: 200
I/flutter ( 8157): _morePages: false
I/flutter ( 8157): statusCode: 400
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/chatty ( 8157): uid=10083(com.example.flutterwp2019) 1.ui identical 22 lines
I/flutter ( 8157): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line
1003 pos 12: '_debugLifecycleState == _StateLifecycle.created': is not
true.
I/flutter ( 8157): _morePages: false
I/flutter ( 8157): statusCode: 200
image error
Thanks Advance
super.initState() is on the wrong location
#override
void initState() {
super.initState(); // <<< added
_scrollController = new ScrollController();
_scrollController.addListener(() {
print(_scrollController.position.pixels);
if (_scrollController.position.pixels ==
_scrollController.position.maxScrollExtent - 10) {
// if we are the bottom of the page
fetchPosts();
//millisecs += 1500;
//super.initState();
}
// super.initState(); // <<< removed
});
}
Add this into the widget where you are initializing the scroll controller:
#override
void dispose() {
_controller.dispose();
super.dispose();
}
and move the super.init() above the intialization

Docker for Mac `docker images` command returns "fatal error: fault"

After pulling an image from docker hub docker images list won't list the image and i receive a fatal error: fault on docker images command
$ docker images list
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
$
$ docker images
unexpected fault address 0xb01dfacedebac1e
fatal error: fault
[signal 0xb code=0x1 addr=0xb01dfacedebac1e pc=0x14f3af]
goroutine 1 [running]:
runtime.throw(0x5bda98, 0x5)
/usr/local/Cellar/go/1.5.1/libexec/src/runtime/panic.go:527 +0x90 fp=0xc82013cdb0 sp=0xc82013cd98
runtime.sigpanic()
/usr/local/Cellar/go/1.5.1/libexec/src/runtime/sigpanic_unix.go:27 +0x2ba fp=0xc82013ce00 sp=0xc82013cdb0
text/tabwriter.(*Writer).write0(0xc8201a0000, 0xc820186160, 0xa, 0x14a)
/usr/local/Cellar/go/1.5.1/libexec/src/text/tabwriter/tabwriter.go:215 +0x5f fp=0xc82013ce70 sp=0xc82013ce00
text/tabwriter.(*Writer).writeLines(0xc8201a0000, 0x0, 0x0, 0x3, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/text/tabwriter/tabwriter.go:282 +0x4da fp=0xc82013cfb8 sp=0xc82013ce70
text/tabwriter.(*Writer).format(0xc8201a0000, 0x0, 0x0, 0x3, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/text/tabwriter/tabwriter.go:370 +0x317 fp=0xc82013d070 sp=0xc82013cfb8
text/tabwriter.(*Writer).format(0xc8201a0000, 0x0, 0x0, 0x3, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/text/tabwriter/tabwriter.go:363 +0x2a9 fp=0xc82013d128 sp=0xc82013d070
text/tabwriter.(*Writer).format(0xc8201a0000, 0x0, 0x0, 0x3, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/text/tabwriter/tabwriter.go:363 +0x2a9 fp=0xc82013d1e0 sp=0xc82013d128
text/tabwriter.(*Writer).format(0xc8201a0000, 0x0, 0x0, 0x3, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/text/tabwriter/tabwriter.go:363 +0x2a9 fp=0xc82013d298 sp=0xc82013d1e0
text/tabwriter.(*Writer).format(0xc8201a0000, 0x0, 0x0, 0x4, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/text/tabwriter/tabwriter.go:363 +0x2a9 fp=0xc82013d350 sp=0xc82013d298
text/tabwriter.(*Writer).Flush(0xc8201a0000, 0x0, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/text/tabwriter/tabwriter.go:466 +0x1f0 fp=0xc82013d3e8 sp=0xc82013d350
github.com/docker/docker/api/client.(*DockerCli).CmdImages(0xc8200a8300, 0xc82000a1b0, 0x0, 0x0, 0x0, 0x0)
/private/tmp/docker20151015-58839-tt61q3/.gopath/src/github.com/docker/docker/api/client/images.go:127 +0x1be7 fp=0xc82013db08 sp=0xc82013d3e8
runtime.call64(0xc8200155e0, 0x5b67c8, 0xc820141f50, 0x2000000030)
/usr/local/Cellar/go/1.5.1/libexec/src/runtime/asm_amd64.s:438 +0x3e fp=0xc82013db50 sp=0xc82013db08
reflect.callMethod(0xc820141f20, 0xc82013dc28)
/usr/local/Cellar/go/1.5.1/libexec/src/reflect/value.go:628 +0x1fc fp=0xc82013dc10 sp=0xc82013db50
reflect.methodValueCall(0xc82000a1b0, 0x0, 0x0, 0x1, 0xc820141f20, 0x0, 0x0, 0xc820141f20, 0xc820160180, 0x66444, ...)
/usr/local/Cellar/go/1.5.1/libexec/src/reflect/asm_amd64.s:29 +0x36 fp=0xc82013dc28 sp=0xc82013dc10
github.com/docker/docker/cli.(*Cli).Run(0xc820141b60, 0xc82000a1b0, 0x1, 0x1, 0x0, 0x0)
/private/tmp/docker20151015-58839-tt61q3/.gopath/src/github.com/docker/docker/cli/cli.go:89 +0x383 fp=0xc82013dd10 sp=0xc82013dc28
main.main()
/private/tmp/docker20151015-58839-tt61q3/docker/docker.go:69 +0x400 fp=0xc82013df00 sp=0xc82013dd10
runtime.main()
/usr/local/Cellar/go/1.5.1/libexec/src/runtime/proc.go:111 +0x2b0 fp=0xc82013df50 sp=0xc82013df00
runtime.goexit()
/usr/local/Cellar/go/1.5.1/libexec/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc82013df58 sp=0xc82013df50
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/Cellar/go/1.5.1/libexec/src/runtime/asm_amd64.s:1696 +0x1
goroutine 5 [syscall]:
os/signal.loop()
/usr/local/Cellar/go/1.5.1/libexec/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/usr/local/Cellar/go/1.5.1/libexec/src/os/signal/signal_unix.go:28 +0x37
goroutine 7 [IO wait]:
net.runtime_pollWait(0xe65ea8, 0x72, 0xc820010160)
/usr/local/Cellar/go/1.5.1/libexec/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc82015cf40, 0x72, 0x0, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc82015cf40, 0x0, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).Read(0xc82015cee0, 0xc820155000, 0x1000, 0x1000, 0x0, 0xe60050, 0xc820010160)
/usr/local/Cellar/go/1.5.1/libexec/src/net/fd_unix.go:232 +0x23a
net.(*conn).Read(0xc8200300e8, 0xc820155000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/net/net.go:172 +0xe4
net/http.noteEOFReader.Read(0xe65f68, 0xc8200300e8, 0xc820096108, 0xc820155000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/net/http/transport.go:1370 +0x67
net/http.(*noteEOFReader).Read(0xc82014d3a0, 0xc820155000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
<autogenerated>:126 +0xd0
bufio.(*Reader).fill(0xc820018f60)
/usr/local/Cellar/go/1.5.1/libexec/src/bufio/bufio.go:97 +0x1e9
bufio.(*Reader).Peek(0xc820018f60, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.5.1/libexec/src/bufio/bufio.go:132 +0xcc
net/http.(*persistConn).readLoop(0xc8200960b0)
/usr/local/Cellar/go/1.5.1/libexec/src/net/http/transport.go:876 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.5.1/libexec/src/net/http/transport.go:685 +0xc78
goroutine 8 [select]:
net/http.(*persistConn).writeLoop(0xc8200960b0)
/usr/local/Cellar/go/1.5.1/libexec/src/net/http/transport.go:1009 +0x40c
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.5.1/libexec/src/net/http/transport.go:686 +0xc9d
However I'm still able to run the recently pulled image just fine with docker run.
This is Docker for Mac version: 18.03.1-ce-mac-65 (24312). It's a new install on a macbook pro.
I tried googling this but couldn't find anything. Any one have an idea as to what's going on?
The issue is it conflicted with an old docker installed via brew. That's why there's a lot of mention of "Cellar" in the output. Once i uninstalled the brew version of docker the commands worked and the images listed as expected.

Resources