GithubHelp home page GithubHelp logo

Error on android about free-rasp-flutter HOT 6 CLOSED

talsec avatar talsec commented on July 2, 2024
Error on android

from free-rasp-flutter.

Comments (6)

talsec-app avatar talsec-app commented on July 2, 2024

Hello
Thank you for your report.
We are aware of the issue and we are actively looking for solution.
Talsec Team

from free-rasp-flutter.

talsec-app avatar talsec-app commented on July 2, 2024

Hello.

Are you able to compile application on native side using Android Studio (open android folder as android project in Android Studio).

If not, can you send (paste here) stacktrace (whole exeption)?

Thanks in advance.
Talsec Team

from free-rasp-flutter.

neroaCu avatar neroaCu commented on July 2, 2024

hi Talsec team,

yes, I can compile on native side.

Error

E/EventChannel#plugins.aheaditec.com/events( 9013): Failed to close existing event stream
E/EventChannel#plugins.aheaditec.com/events( 9013): java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter arguments
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at com.aheaditec.freerasp.StreamHandlerImpl.onCancel(Unknown Source:2)
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler.onListen(EventChannel.java:182)
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler.onMessage(EventChannel.java:167)
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:84)
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:865)
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at android.os.MessageQueue.next(MessageQueue.java:335)
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at android.os.Looper.loop(Looper.java:183)
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at android.app.ActivityThread.main(ActivityThread.java:7656)
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at java.lang.reflect.Method.invoke(Native Method)
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/EventChannel#plugins.aheaditec.com/events( 9013): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Flutter (Channel stable, 2.5.0, on macOS 11.2.3 20D91 darwin-x64, locale en-GB)
    • Flutter version 2.5.0 at /Users/xxxxxx/Documents/flutter2.5.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (6 months ago), 2021-09-07 23:01:49 -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/xxxxxx/Library/Android/sdk
    • Platform android-31, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode12.5.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Community Edition (version 2021.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart


from free-rasp-flutter.

talsec-app avatar talsec-app commented on July 2, 2024

Thanks for the log.
We are trying our best to resolve the issue.

from free-rasp-flutter.

talsec-app avatar talsec-app commented on July 2, 2024

We were not able to replicate your problem but after careful inspection of logs and code, we found probable cause of issue.

We would like to ask you if you could try this procedure in order to fix issue:
Find freerasp library in your project (see this comment) but you will go to src.main/kotlin.com.aheaditec.freerasp/StreamHandlerImpl.kt and you will add ? notation to argument arguments of onCancel function. Same for events argument of onListen function.
Like so:

    // In StreamHandlerImpl.kt
    
    override fun onListen(arguments: Any?, events: EventChannel.EventSink?) {
            // ... some other code ...
    }

    override fun onCancel(arguments: Any?) {
        talsecApp?.events = null
    }

Explanation: According to logs onCancel can get null from Java but Kotlin doesnt currently reflect that.
Please let us know, if this solved your issue

from free-rasp-flutter.

neroaCu avatar neroaCu commented on July 2, 2024

the fix provided by @talsec-app works for me. thanks

from free-rasp-flutter.

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.