Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app crash when bootstrap=webview #1894

Closed
FranciscoCarbonell opened this issue Jun 27, 2019 · 2 comments
Closed

app crash when bootstrap=webview #1894

FranciscoCarbonell opened this issue Jun 27, 2019 · 2 comments

Comments

@FranciscoCarbonell
Copy link

command build:

p4a apk --private ~/Escritorio/proyectos-kivy/test --requirements=flask,python3 --bootstrap=webview --sdk_dir="/opt/android-sdk/" --android-api="21" --ndk_dir="/opt/android-ndk-r17c/" --package=com.fran.test --name="test" --ndk-api="21" --version=1.0 --permission=INTERNET

logcat:


linker  ( 8345): libpython3.7m.so: unused DT entry: type 0x6ffffffe arg 0x181d4
W/linker  ( 8345): libpython3.7m.so: unused DT entry: type 0x6fffffff arg 0x3
V/pythonutil( 8345): Loading library: main
W/linker  ( 8345): libmain.so: unused DT entry: type 0x6ffffffe arg 0xc14
W/linker  ( 8345): libmain.so: unused DT entry: type 0x6fffffff arg 0x1
E/art     ( 8345): dlopen("/data/app/com.fran.test-1/lib/arm/libmain.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "__register_atfork" referenced by "libmain.so"...
V/pythonutil( 8345): Library loading error: dlopen failed: cannot locate symbol "__register_atfork" referenced by "libmain.so"...
V/pythonutil( 8345): An UnsatisfiedLinkError occurred loading main
W/System.err( 8345): dlopen failed: cannot locate symbol "__register_atfork" referenced by "libmain.so"...
D/OpenGLRenderer( 8345): Use EGL_SWAP_BEHAVIOR_PRESERVED: false
D/Atlas   ( 8345): Validating map...
V/WindowManager(  590): Adding window Window{1b569b73 u0 com.fran.test/org.kivy.android.PythonActivity} at 10 of 15 (before Window{3c1eb018 u0 Starting com.fran.test})
V/WindowManager(  590): Adding window Window{28ab06a9 u0 com.fran.test/org.kivy.android.PythonActivity} at 10 of 16 (before Window{1b569b73 u0 com.fran.test/org.kivy.android.PythonActivity})
I/OpenGLRenderer( 8345): Initialized EGL, version 1.4
E/        ( 8345): appName=com.fran.test, acAppName=/system/bin/surfaceflinger
E/        ( 8345): 0
E/        ( 8345): appName=com.fran.test, acAppName=/system/bin/surfaceflinger
E/        ( 8345): 0
D/OpenGLRenderer( 8345): Enabling debug mode 0
I/MaliEGL ( 8345): [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL ( 8345): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL ( 8345): [Mali]max_allowed_dequeued_buffers=3
I/MaliEGL ( 8345): [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL ( 8345): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL ( 8345): [Mali]max_allowed_dequeued_buffers=3
I/Timeline( 8345): Timeline: Activity_idle id: android.os.BinderProxy@187e1db9 time:57786699
I/ActivityManager(  590): Displayed com.fran.test/org.kivy.android.PythonActivity: +1s740ms
I/Timeline(  590): Timeline: Activity_windows_visible id: ActivityRecord{155d39 u0 com.fran.test/org.kivy.android.PythonActivity t10840} time:57786702
D/agps    (  162): [agps] WARNING: [CP] cp2_fd_1_req_sim_num_timeout
D/agps    (  162): [agps][n][CP] [MD_1] write  sim_info_req
D/AudioSpeechEnhanceInfo( 9188): SetOutputStreamRunning 0, SPELayer 0
E/        ( 9188): AudioCloseDumpPCMFile file== NULL
E/        ( 9188): AudioCloseDumpPCMFile file== NULL
E/        ( 9188): AudioCloseDumpPCMFile file== NULL
E/        ( 9188): AudioCloseDumpPCMFile file== NULL
D/AudioResourceManager( 9188): StopOutputDevice(), mDlOutputDevice = 0x2
D/AudioResourceManager( 9188): TurnoffAudioDevice = 0x2 DeviceCount = 1
D/AudioResourceManager( 9188): EnableAudioClock AudioClockType = 1 bEnable = 0
D/AudioResourceManager( 9188): EnableAudioClock AudioClockType = 4 bEnable = 0
D/wpa_supplicant( 5448): wlan0: Control interface command 'SIGNAL_POLL'
D/AudioResourceManager( 9188): EnableAudioClock AudioClockType = 4 bEnable = 1
D/AudioResourceManager( 9188): EnableAudioClock AudioClockType = 1 bEnable = 1
D/AudioSpeechEnhanceInfo( 9188): SetOutputStreamRunning 1, SPELayer 0
D/AudioResourceManager( 9188): StartOutputDevice(), mDlOutputDevice = 0x2
D/AudioResourceManager( 9188): TurnonAudioDevice = 0x2 DeviceCount = 1
V/WindowManager(  590): rotationForOrientationLw(orient=5, last=0); user=0 
D/AudioSpeechEnhanceInfo( 9188): GetDownlinkIntrStartTime 0
I/OpenGLRenderer( 1110): Initialized EGL, version 1.4
E/        ( 1110): appName=com.cyanogenmod.trebuchet, acAppName=/system/bin/surfaceflinger
E/        ( 1110): 0
E/        ( 1110): appName=com.cyanogenmod.trebuchet, acAppName=/system/bin/surfaceflinger
E/        ( 1110): 0
I/MaliEGL ( 1110): [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL ( 1110): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL ( 1110): [Mali]max_allowed_dequeued_buffers=3
W/InputMethodManagerService(  590): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@312a4f48 attribute=null, token = android.os.BinderProxy@162aff84
I/Timeline( 1110): Timeline: Activity_idle id: android.os.BinderProxy@3962256e time:57788793
I/Timeline(  590): Timeline: Activity_windows_visible id: ActivityRecord{3f33fa27 u0 com.cyanogenmod.trebuchet/com.android.launcher3.Launcher t10773} time:57789051
I/Destroy ( 8345): end of app
I/Process ( 8345): Sending signal. PID: 8345 SIG: 9
I/WindowState(  590): WIN DEATH: Window{1b569b73 u0 com.fran.test/org.kivy.android.PythonActivity EXITING}
W/InputDispatcher(  590): channel '28ab06a9 com.fran.test/org.kivy.android.PythonActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
E/InputDispatcher(  590): channel '28ab06a9 com.fran.test/org.kivy.android.PythonActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
I/WindowState(  590): WIN DEATH: Window{28ab06a9 u0 com.fran.test/org.kivy.android.PythonActivity EXITING}
W/InputDispatcher(  590): Attempted to unregister already unregistered input channel '28ab06a9 com.fran.test/org.kivy.android.PythonActivity (server)'
I/ActivityManager(  590): Process com.fran.test (pid 8345) has died
D/agps    (  162): [agps] WARNING: [CP] cp2_fd_1_req_sim_num_timeout
D/agps    (  162): [agps][n][CP] [MD_1] write  sim_info_req
W/ResourceType(  720): No package identifier when getting value for resource number 0x00000000
W/PackageManager(  720): Failure retrieving resources for com.fran.test: Resource ID #0x0
I/auditd  ( 8383): Starting up
E/audit_log( 8383): Could not stat audit logfile /data/misc/audit/audit.log: Permission denied
E/auditd  ( 8383): Failed on audit_log_open
I/auditd  ( 8383): Exiting


@AndreMiras
Copy link
Member

E/audit_log( 8383): Could not stat audit logfile /data/misc/audit/audit.log: Permission denied

That's smell like a permission issue right? Also hard to say without seeing your code. But I would suggest you to try simplifying the code as much as you could trying to see who's trying to write to this file and fix it

@inclement
Copy link
Member

Closing as not enough information to debug and no user response.

Error looks like a library linking issue though. Maybe arising from flask?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants