Comments (6)
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.
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.
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.
Thanks for the log.
We are trying our best to resolve the issue.
from free-rasp-flutter.
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.
the fix provided by @talsec-app works for me. thanks
from free-rasp-flutter.
Related Issues (20)
- [Flutter project] APK file increased by 40% with FreeRASP package HOT 6
- java.lang.UnsatisfiedLinkError crash HOT 3
- onSecureHardwareNotAvailable false positives with freeRASP 6.0.0 HOT 6
- Threat detection order HOT 1
- Android app not compilable with AGP >= 8.0.0 HOT 3
- Shorebird and freeRasp inconvenient HOT 4
- Where is the documentation? HOT 1
- DeadObjectException on some Android 6 devices HOT 4
- How to know proper value for `AndroidConfig.supportedStores`? HOT 3
- How the 100k limitation for free tier is calculated? HOT 2
- The package is susceptible to smali changes. HOT 6
- Free-RASP-Flutter Security Delay Issue HOT 8
- When the app is minimized and resumed before the checks, they do not occur. HOT 5
- only Xcode 13 required to be able to build the application. HOT 4
- Crash on iOS device with 6.2.0 HOT 6
- onAppIntegrity after releasing playstore HOT 8
- Emulator Detection / Root detection on Android emulator HOT 3
- Which callback? HOT 3
- Android app not compilable with AGP >= 8.0.0 HOT 2
- Android Google Play Automatic integrity protection support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from free-rasp-flutter.