Giter VIP home page Giter VIP logo

Comments (6)

 avatar commented on May 22, 2024 1

so what's the next step, opening an issue on flutter github?

from dart-sip-ua.

cloudwebrtc avatar cloudwebrtc commented on May 22, 2024

@pouledodue
I tried to find the problem yesterday. The problem seems to be the dart code compilation. I used the flutter build bundle to compile the dart code.
The stable channel can compile normally, but the dev channel will compile incorrectly.
It is not only the macOS platform, which has caused other platforms to fail to compile.
However, I use the flutter analyze command and the code seems is fine.

weiweiduandeMacBook-Pro:example weiweiduan$ flutter build bundle
Unhandled exception:
Crash when compiling package:flutter/foundation.dart,
at character offset null:
NoSuchMethodError: The method 'accept' was called on null.
Receiver: null
Tried calling: accept<DartType>(Instance of '_DemotionNonNullification')
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1      demoteTypeInLibrary (package:front_end/src/fasta/type_inference/type_demotion.dart:65:14)
#2      TypeInferrerImpl.inferDeclarationType (package:front_end/src/fasta/type_inference/type_inferrer.dart:1889:14)
#3      InferenceVisitor.visitVariableDeclaration (package:front_end/src/fasta/kernel/inference_visitor.dart:5296:31)
#4      VariableDeclaration.accept (package:kernel/ast.dart:5436:43)
#5      TypeInferrerImpl.inferStatement (package:front_end/src/fasta/type_inference/type_inferrer.dart:3245:24)
#6      InferenceVisitor._visitStatements (package:front_end/src/fasta/kernel/inference_visitor.dart:299:20)
#7      InferenceVisitor.visitBlock (package:front_end/src/fasta/kernel/inference_visitor.dart:320:30)
#8      Block.accept (package:kernel/ast.dart:4663:43)
#9      TypeInferrerImpl.inferStatement (package:front_end/src/fasta/type_inference/type_inferrer.dart:3245:24)
#10     TypeInferrerImpl.inferLocalFunction (package:front_end/src/fasta/type_inference/type_inferrer.dart:2595:43)
#11     InferenceVisitor.visitFunctionNode (package:front_end/src/fasta/kernel/inference_visitor.dart:1037:21)
#12     InferenceVisitor.visitFunctionExpression (package:front_end/src/fasta/kernel/inference_visitor.dart:1061:9)
#13     FunctionExpression.accept1 (package:kernel/ast.dart:4464:9)
#14     TypeInferrerImpl.inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:1988:27)
#15     InferenceVisitor.inferMapEntry (package:front_end/src/fasta/kernel/inference_visitor.dart:1984:56)
#16     InferenceVisitor.visitMapLiteral (package:front_end/src/fasta/kernel/inference_visitor.dart:2147:17)
#17     MapLiteral.accept1 (package:kernel/ast.dart:4372:9)
#18     TypeInferrerImpl.inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:1988:27)
#19     SourceFieldBuilder.inferType (package:front_end/src/fasta/builder/field_builder.dart:369:53)
#20     SourceLoader.performTopLevelInference (package:front_end/src/fasta/source/source_loader.dart:1103:35)
#21     KernelTarget.buildOutlines.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:312:14)
<asynchronous suspension>
#22     withCrashReporting (package:front_end/src/fasta/crash.dart:122:24)
#23     KernelTarget.buildOutlines (package:front_end/src/fasta/kernel/kernel_target.dart:288:12)
#24     generateKernelInternal.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:108:28)
<asynchronous suspension>
#25     withCrashReporting (package:front_end/src/fasta/crash.dart:122:24)
#26     generateKernelInternal (package:front_end/src/kernel_generator_impl.dart:70:10)
#27     kernelForProgramInternal.<anonymous closure> (package:front_end/src/api_prototype/kernel_generator.dart:61:35)
#28     CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:135:20)
<asynchronous suspension>
#29     CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:46)
#30     new Future.sync (dart:async/future.dart:224:31)
#31     CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:19)
#32     _rootRun (dart:async/zone.dart:1126:13)
#33     _CustomZone.run (dart:async/zone.dart:1023:19)
#34     _runZoned (dart:async/zone.dart:1518:10)
#35     runZoned (dart:async/zone.dart:1465:12)
#36     CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:122:12)
#37     CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:133:10)
#38     kernelForProgramInternal (package:front_end/src/api_prototype/kernel_generator.dart:60:32)
#39     kernelForProgram (package:front_end/src/api_prototype/kernel_generator.dart:52:17)
#40     compileToKernel (package:vm/kernel_front_end.dart:319:41)
#41     FrontendCompiler.compile.<anonymous closure> (package:frontend_server/frontend_server.dart:452:54)
#42     new Future.<anonymous closure> (dart:async/future.dart:176:37)
#43     _rootRun (dart:async/zone.dart:1122:38)
#44     _CustomZone.run (dart:async/zone.dart:1023:19)
#45     _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#46     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23)
#47     _rootRun (dart:async/zone.dart:1126:13)
#48     _CustomZone.run (dart:async/zone.dart:1023:19)
#49     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:949:23)
#50     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23:15)
#51     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#52     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#53     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)


#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1      demoteTypeInLibrary (package:front_end/src/fasta/type_inference/type_demotion.dart:65:14)
#2      TypeInferrerImpl.inferDeclarationType (package:front_end/src/fasta/type_inference/type_inferrer.dart:1889:14)
#3      InferenceVisitor.visitVariableDeclaration (package:front_end/src/fasta/kernel/inference_visitor.dart:5296:31)
#4      VariableDeclaration.accept (package:kernel/ast.dart:5436:43)
#5      TypeInferrerImpl.inferStatement (package:front_end/src/fasta/type_inference/type_inferrer.dart:3245:24)
#6      InferenceVisitor._visitStatements (package:front_end/src/fasta/kernel/inference_visitor.dart:299:20)
#7      InferenceVisitor.visitBlock (package:front_end/src/fasta/kernel/inference_visitor.dart:320:30)
#8      Block.accept (package:kernel/ast.dart:4663:43)
#9      TypeInferrerImpl.inferStatement (package:front_end/src/fasta/type_inference/type_inferrer.dart:3245:24)
#10     TypeInferrerImpl.inferLocalFunction (package:front_end/src/fasta/type_inference/type_inferrer.dart:2595:43)
#11     InferenceVisitor.visitFunctionNode (package:front_end/src/fasta/kernel/inference_visitor.dart:1037:21)
#12     InferenceVisitor.visitFunctionExpression (package:front_end/src/fasta/kernel/inference_visitor.dart:1061:9)
#13     FunctionExpression.accept1 (package:kernel/ast.dart:4464:9)
#14     TypeInferrerImpl.inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:1988:27)
#15     InferenceVisitor.inferMapEntry (package:front_end/src/fasta/kernel/inference_visitor.dart:1984:56)
#16     InferenceVisitor.visitMapLiteral (package:front_end/src/fasta/kernel/inference_visitor.dart:2147:17)
#17     MapLiteral.accept1 (package:kernel/ast.dart:4372:9)
#18     TypeInferrerImpl.inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:1988:27)
#19     SourceFieldBuilder.inferType (package:front_end/src/fasta/builder/field_builder.dart:369:53)
#20     SourceLoader.performTopLevelInference (package:front_end/src/fasta/source/source_loader.dart:1103:35)
#21     KernelTarget.buildOutlines.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:312:14)
<asynchronous suspension>
#22     withCrashReporting (package:front_end/src/fasta/crash.dart:122:24)
#23     KernelTarget.buildOutlines (package:front_end/src/fasta/kernel/kernel_target.dart:288:12)
#24     generateKernelInternal.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:108:28)
<asynchronous suspension>
#25     withCrashReporting (package:front_end/src/fasta/crash.dart:122:24)
#26     generateKernelInternal (package:front_end/src/kernel_generator_impl.dart:70:10)
#27     kernelForProgramInternal.<anonymous closure> (package:front_end/src/api_prototype/kernel_generator.dart:61:35)
#28     CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:135:20)
<asynchronous suspension>
#29     CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:46)
#30     new Future.sync (dart:async/future.dart:224:31)
#31     CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:19)
#32     _rootRun (dart:async/zone.dart:1126:13)
#33     _CustomZone.run (dart:async/zone.dart:1023:19)
#34     _runZoned (dart:async/zone.dart:1518:10)
#35     runZoned (dart:async/zone.dart:1465:12)
#36     CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:122:12)
#37     CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:133:10)
#38     kernelForProgramInternal (package:front_end/src/api_prototype/kernel_generator.dart:60:32)
#39     kernelForProgram (package:front_end/src/api_prototype/kernel_generator.dart:52:17)
#40     compileToKernel (package:vm/kernel_front_end.dart:319:41)
#41     FrontendCompiler.compile.<anonymous closure> (package:frontend_server/frontend_server.dart:452:54)
#42     new Future.<anonymous closure> (dart:async/future.dart:176:37)
#43     _rootRun (dart:async/zone.dart:1122:38)
#44     _CustomZone.run (dart:async/zone.dart:1023:19)
#45     _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#46     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23)
#47     _rootRun (dart:async/zone.dart:1126:13)
#48     _CustomZone.run (dart:async/zone.dart:1023:19)
#49     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:949:23)
#50     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23:15)
#51     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#52     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#53     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)


Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
Failed to build bundle.

from dart-sip-ua.

cloudwebrtc avatar cloudwebrtc commented on May 22, 2024

Yes, it seems to be a problem with flutter.

from dart-sip-ua.

 avatar commented on May 22, 2024

did you open an issue on flutter's github ?

from dart-sip-ua.

cloudwebrtc avatar cloudwebrtc commented on May 22, 2024

Related issues have been created flutter/flutter#50908

from dart-sip-ua.

cloudwebrtc avatar cloudwebrtc commented on May 22, 2024

The master channel can already be used to compile the bundle, so closing the issue now.

from dart-sip-ua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.