rohitsangwan01 / whatsapp_bot_flutter

Whatsapp bot for flutter desktop
MIT License
41 stars 27 forks source link

Failed to initialize wpp #46

Closed Cengizhan00 closed 1 year ago

Cengizhan00 commented 1 year ago

The application also gives an error. Example I tried the application but it gives an error can you check it?

rohitsangwan01 commented 1 year ago

@Cengizhan00 have you tried example app ?? Also please make sure internet connection is fine, If yes try to connect with 'headless: false' parameter

Cengizhan00 commented 1 year ago

Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. √ Built build\app\outputs\flutter-apk\app-debug.apk. Connecting to VM Service at ws://127.0.0.1:52389/J7vPBfCLhNY=/ws [GETX] Instance "GetMaterialController" has been created [GETX] Instance "GetMaterialController" has been initialized I/example.exampl( 9225): Compiler allocated 4379KB to compile void android.view.ViewRootImpl.performTraversals() [GETX] Instance "HomeController" has been created [GETX] Instance "HomeController" has been initialized I/example.exampl( 9225): ProcessProfilingInfo new_methods=1418 is saved saved_to_disk=1 resolve_classes_delay=8000 E/ion ( 9225): ioctl c0044901 failed with code -1: Invalid argument D/DecorView: getWindowModeFromSystem windowmode is 1 I/WebViewFactory( 9225): Loading com.google.android.webview version 115.0.5790.166 (code 579016631) W/linker ( 9225): Warning: "/data/app/~~-jovF6Rq2vJYQ9a1M0UJOQ==/com.google.android.webview-e2bsOBnMynNuhxAqRU4wBA==/base.apk!/lib/arm64-v8a/libmonochrome.so" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring) I/cr_WVCFactoryProvider( 9225): Loaded version=115.0.5790.166 minSdkVersion=29 isBundle=true multiprocess=true packageId=2 E/libc ( 9225): Access denied finding property "ro.vendor.pref_scale_resolution" E/libc ( 9225): Access denied finding property "ro.vendor.pref_scale_resolution" I/cr_LibraryLoader( 9225): Successfully loaded native library I/cr_CachingUmaRecorder( 9225): Flushed 6 samples from 6 histograms, 0 samples were dropped. E/libc ( 9225): Access denied finding property "vendor.displayfeature_hidl" E/libc ( 9225): Access denied finding property "ro.vendor.df.effect.conflict" E/libc ( 9225): Access denied finding property "ro.vendor.knock.type" W/example.example( 9225): type=1400 audit(0.0:11363): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=11517 scontext=u:r:untrusted_app:s0:c222,c259,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0 app=com.example.example I/TetheringManager( 9225): registerTetheringEventCallback:com.example.example W/chromium( 9225): [WARNING:dns_config_service_android.cc(115)] Failed to read DnsConfig. D/EgretLoader( 9225): EgretLoader(Context context) D/EgretLoader( 9225): The context is not activity W/cr_WebSettings( 9225): setForceDark() is a no-op in an app with targetSdkVersion>=T W/ContentCatcher( 9225): Failed to notify a WebView D/libMEOW ( 9225): applied 1 plugins for [com.example.example]: D/libMEOW ( 9225): plugin 1: [libMEOW_gift.so]: W/cr_media( 9225): registerBluetoothIntentsIfNeeded: Requires BLUETOOTH permission I/GED ( 9225): [GT]_get_procNameprocess pid(9225) I/GED ( 9225): [GT]_getprocess name(com.example.example) I/example.exampl( 9225): [GT] ret(1) gt_status(00000000) aniso_debug_level(0) gt_aniso_max_level(16) ani so mask(00000001) tri mask(00000002) I/libMEOW_gift( 9225): ctx:0xb4000075fd605f70, ARC not Enabled. I/GED ( 9225): [GT]_get_procNameprocess pid(9225) I/GED ( 9225): [GT]_getprocess name(com.example.example) I/example.exampl( 9225): [GT] ret(1) gt_status(00000000) aniso_debug_level(0) gt_aniso_max_level(16) ani so mask(00000001) tri mask(00000002) I/libMEOW_gift( 9225): ctx:0xb40000757d284f58, ARC not Enabled. W/AudioCapabilities( 9225): Unsupported mime audio/x-adpcm-ms W/AudioCapabilities( 9225): Unsupported mime audio/x-adpcm-dvi-ima W/AudioCapabilities( 9225): Unsupported mime audio/alac W/AudioCapabilities( 9225): Unsupported mime audio/ape W/VideoCapabilities( 9225): Unsupported mime image/vnd.android.heic W/VideoCapabilities( 9225): Unrecognized profile/level 1/32 for video/mp4v-es W/VideoCapabilities( 9225): Unrecognized profile/level 32768/2 for video/mp4v-es W/VideoCapabilities( 9225): Unrecognized profile/level 32768/64 for video/mp4v-es W/VideoCapabilities( 9225): Unsupported mime video/x-ms-wmv W/VideoCapabilities( 9225): Unsupported mime video/xvid W/VideoCapabilities( 9225): Unrecognized profile/level 1/32 for video/mp4v-es W/cr_VAUtil( 9225): Unknown level: 2 for profile 1 of codec video/avc W/cr_VAUtil( 9225): Unknown level: 2 for profile 65536 of codec video/avc W/cr_VAUtil( 9225): Unknown level: 2 for profile 2 of codec video/avc W/cr_VAUtil( 9225): Unknown level: 2 for profile 8 of codec video/avc W/cr_VAUtil( 9225): Unknown level: 2 for profile 524288 of codec video/avc W/cr_VAUtil( 9225): Unknown level: 2 for profile 1 of codec video/avc W/cr_VAUtil( 9225): Unknown level: 2 for profile 65536 of codec video/avc W/cr_VAUtil( 9225): Unknown level: 2 for profile 2 of codec video/avc W/cr_VAUtil( 9225): Unknown level: 2 for profile 8 of codec video/avc W/cr_VAUtil( 9225): Unknown level: 2 for profile 524288 of codec video/avc [WhatsappBotFlutter] ConsoleLog: Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'. [WhatsappBotFlutter] ConsoleLog: Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'. [WhatsappBotFlutter] ConsoleLog: Error with Permissions-Policy header: Unrecognized feature: 'hid'. [WhatsappBotFlutter] ConsoleLog: Error with Permissions-Policy header: Unrecognized feature: 'payment'. [WhatsappBotFlutter] ConsoleLog: Error with Permissions-Policy header: Unrecognized feature: 'serial'. [WhatsappBotFlutter] ConsoleLog: Error with Permissions-Policy header: Unrecognized feature: 'usb'. [WhatsappBotFlutter] ConsoleLog: Another connection wants to delete database 'wawc'. Closing db now to resume the delete request. I/AAudio ( 9225): AAudioStreamBuilder_openStream() called ---------------------------------------- I/AudioStreamBuilder( 9225): rate = 44100, channels = 2, format = 5, sharing = SH, dir = OUTPUT I/AudioStreamBuilder( 9225): device = 0, sessionId = -1, perfMode = 11, callback: ON with frames = 1024 I/AudioStreamBuilder( 9225): usage = 1, contentType = 0, inputPreset = 0, allowedCapturePolicy = 0 I/AudioStreamBuilder( 9225): privacy sensitive = false D/AudioStreamBuilder( 9225): build() MMAP not used because AAUDIO_PERFORMANCE_MODE_LOW_LATENCY not requested. D/example.exampl( 9225): PlayerBase::PlayerBase() D/AudioStreamTrack( 9225): open(), request notificationFrames = 1024, frameCount = 0 D/AudioTrack( 9225): INSP: type=audio,case=1,set=0xb4000075adc64500,stream_type=-1,sample_rate=44100,format=0x5,channel_mask=0x3,frame_count=0,flags=0x8,notification_frames=1024,session_id=0,transfer_type=1,uid=-1,pid=-1 D/AudioTrack( 9225): INSP: type=audio,case=1,attributes=1,content_type=2,usage=1,source=0,flags=0x0 D/AudioTrack( 9225): set(sessionID=0) D/AudioTrack( 9225): set(): Building AudioTrack with attributes: usage = 1, content = 2, flags = 0x0, tags = [] D/AudioTrack( 9225): set(): 0xb4000075adc64500, Create AudioTrackThread, tid = 9890 D/AudioTrack( 9225): checkWhiteListPackage() Uid 10990, package name com.example.example D/AudioTrack( 9225): createTrack_l(96): 0xb4000075adc64500, mCblk = 0x75464ec000, mLatency = 256, mAfLatency = 128, frameCount = 5655, mSampleRate = 44100, mFlags = 0x8, mReqFrameCount = 5655, mNotificationFramesAct = 1024 D/AudioTrack( 9225): createTrack_l() isReduceVolume 0 D/AudioTrack( 9225): setVolume(96): 0xb4000075adc64500, left = 1.000000, right = 1.000000 D/AudioTrack( 9225): setVolume() isReduceVolume, 0 D/AAudioStream( 9225): setState(s#1) from 0 to 2 I/AAudio ( 9225): AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#1 ---------------- D/AAudio ( 9225): AAudioStream_requestStart(s#1) called -------------- D/AAudioStream( 9225): setState(s#1) from 2 to 3 D/AudioTrack( 9225): start(96): 0xb4000075adc64500, prior state:STATE_STOPPED D/AudioTrack( 9225): onAudioDeviceUpdate() isReduceVolume 0 D/AudioStreamLegacy( 9225): onAudioDeviceUpdate() devId 3 => 3 D/example.exampl( 9225): PlayerBase::start() from IPlayer D/AAudio ( 9225): AAudioStream_requestStart(s#1) returned 0 --------- D/AAudioStream( 9225): setState(s#1) from 3 to 4 I/AudioTrack( 9225): isLongTimeZeroData zero date time 1 Seconds I/AudioTrack( 9225): isLongTimeZeroData zero date time 2 Seconds I/AudioTrack( 9225): isLongTimeZeroData zero date time 3 Seconds I/AudioTrack( 9225): isLongTimeZeroData zero date time 4 Seconds I/AudioTrack( 9225): isLongTimeZeroData zero date time 5 Seconds I/AudioTrack( 9225): isLongTimeZeroData zero date time 6 Seconds I/AudioTrack( 9225): isLongTimeZeroData zero date time 7 Seconds I/AudioTrack( 9225): isLongTimeZeroData zero date time 8 Seconds I/AudioTrack( 9225): isLongTimeZeroData zero date time 9 Seconds D/AAudio ( 9225): AAudioStream_requestStop(s#1) called D/AAudioStream( 9225): setState(s#1) from 4 to 9 D/AudioTrack( 9225): stop(96): 0xb4000075adc64500, prior state:STATE_ACTIVE D/AudioTrack( 9225): stop(sessionID=641) D/AudioTrack( 9225): stop(96): called with 445440 frames delivered D/AudioTrack( 9225): stop(96): 0xb4000075adc64500 stop done D/example.exampl( 9225): PlayerBase::stop() from IPlayer D/AAudioStream( 9225): setState(s#1) from 9 to 10 D/AAudio ( 9225): AAudioStream_requestStop(s#1) called D/example.exampl( 9225): PlayerBase::stop() from IPlayer D/AAudio ( 9225): AAudioStream_close(s#1) called --------------- D/AAudioStream( 9225): setState(s#1) from 10 to 11 D/AAudioStream( 9225): setState(s#1) from 11 to 12 D/AudioTrack( 9225): ~AudioTrack(96): 0xb4000075adc64500 D/AudioTrack( 9225): ~AudioTrack(sessionID=641) D/AudioTrack( 9225): stop(96): 0xb4000075adc64500, prior state:STATE_STOPPED D/AudioTrack( 9225): stop(sessionID=641) D/AAudio ( 9225): AAudioStream_close(s#1) returned 0 --------- I/chromium( 9225): [INFO:CONSOLE(118)] "Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Partial response (status code 206) is unsupported", source: https://web.whatsapp.com/serviceworker.js (118) I/chromium( 9225): [INFO:CONSOLE(118)] "Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Partial response (status code 206) is unsupported", source: https://web.whatsapp.com/serviceworker.js (118) I/AAudio ( 9225): AAudioStreamBuilder_openStream() called ---------------------------------------- I/AudioStreamBuilder( 9225): rate = 44100, channels = 2, format = 5, sharing = SH, dir = OUTPUT I/AudioStreamBuilder( 9225): device = 0, sessionId = -1, perfMode = 11, callback: ON with frames = 1024 I/AudioStreamBuilder( 9225): usage = 1, contentType = 0, inputPreset = 0, allowedCapturePolicy = 0 I/AudioStreamBuilder( 9225): privacy sensitive = false D/AudioStreamBuilder( 9225): build() MMAP not used because AAUDIO_PERFORMANCE_MODE_LOW_LATENCY not requested. D/example.exampl( 9225): PlayerBase::PlayerBase() D/AudioStreamTrack( 9225): open(), request notificationFrames = 1024, frameCount = 0 D/AudioTrack( 9225): INSP: type=audio,case=1,set=0xb4000075adc64500,stream_type=-1,sample_rate=44100,format=0x5,channel_mask=0x3,frame_count=0,flags=0x8,notification_frames=1024,session_id=0,transfer_type=1,uid=-1,pid=-1 D/AudioTrack( 9225): INSP: type=audio,case=1,attributes=1,content_type=2,usage=1,source=0,flags=0x0 D/AudioTrack( 9225): set(sessionID=0) D/AudioTrack( 9225): set(): Building AudioTrack with attributes: usage = 1, content = 2, flags = 0x0, tags = [] D/AudioTrack( 9225): set(): 0xb4000075adc64500, Create AudioTrackThread, tid = 9967 D/AudioTrack( 9225): checkWhiteListPackage() Uid 10990, package name com.example.example D/AudioTrack( 9225): createTrack_l(97): 0xb4000075adc64500, mCblk = 0x75464ec000, mLatency = 256, mAfLatency = 128, frameCount = 5655, mSampleRate = 44100, mFlags = 0x8, mReqFrameCount = 5655, mNotificationFramesAct = 1024 D/AudioTrack( 9225): createTrack_l() isReduceVolume 0 D/AudioTrack( 9225): setVolume(97): 0xb4000075adc64500, left = 1.000000, right = 1.000000 D/AudioTrack( 9225): setVolume() isReduceVolume, 0 D/AAudioStream( 9225): setState(s#2) from 0 to 2 I/AAudio ( 9225): AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#2 ---------------- D/AAudio ( 9225): AAudioStream_requestStart(s#2) called -------------- D/AAudioStream( 9225): setState(s#2) from 2 to 3 D/AudioTrack( 9225): start(97): 0xb4000075adc64500, prior state:STATE_STOPPED D/example.exampl( 9225): PlayerBase::start() from IPlayer D/AAudio ( 9225): AAudioStream_requestStart(s#2) returned 0 --------- D/AudioTrack( 9225): onAudioDeviceUpdate() isReduceVolume 0 D/AudioStreamLegacy( 9225): onAudioDeviceUpdate() devId 3 => 3 D/AAudioStream( 9225): setState(s#2) from 3 to 4 [WhatsappBotFlutter] injected Wpp [WhatsappBotFlutter] [ WhatsappException type : WhatsappExceptionType.failedToConnect , message : Failed to initialize WPP ] W/ContentCatcher( 9225): Failed to notify a WebView D/AAudio ( 9225): AAudioStream_requestStop(s#2) called D/AAudioStream( 9225): setState(s#2) from 4 to 9 D/AudioTrack( 9225): stop(97): 0xb4000075adc64500, prior state:STATE_ACTIVE D/AudioTrack( 9225): stop(sessionID=649) D/AudioTrack( 9225): stop(97): called with 29696 frames delivered I/GED ( 9225): ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 27, oppidx_max 27, oppidx_min 0 D/AudioTrack( 9225): stop(97): 0xb4000075adc64500 stop done D/example.exampl( 9225): PlayerBase::stop() from IPlayer D/AAudioStream( 9225): setState(s#2) from 9 to 10 I/GED ( 9225): ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 27, oppidx_max 27, oppidx_min 0 D/AAudio ( 9225): AAudioStream_requestStop(s#2) called D/example.exampl( 9225): PlayerBase::stop() from IPlayer D/AAudio ( 9225): AAudioStream_close(s#2) called --------------- D/AAudioStream( 9225): setState(s#2) from 10 to 11 D/AAudioStream( 9225): setState(s#2) from 11 to 12 D/AudioTrack( 9225): ~AudioTrack(97): 0xb4000075adc64500 D/AudioTrack( 9225): ~AudioTrack(sessionID=649) D/AudioTrack( 9225): stop(97): 0xb4000075adc64500, prior state:STATE_STOPPED D/AudioTrack( 9225): stop(sessionID=649) D/AAudio ( 9225): AAudioStream_close(s#2) returned 0 --------- D/example.exampl( 9225): PlayerBase::~PlayerBase() E/chromium( 9225): [ERROR:aw_browser_terminator.cc(156)] Renderer process (9667) crash detected (code -1).

Above is the log record. It gives the same error on Android note 8 pro model and a few devices. Same error on different computer, can you test your own example application?

By the way, the windows application works fine. only mobile devices have this error