Re: SalAbort:Unspecified application error

2022-04-29 Thread di liu
>
> I have created a separate ticket in Bugzilla for that one and added some
> more information, also mentioning a potential workaround:
> https://bugs.documentfoundation.org/show_bug.cgi?id=148854
>
> I suggest to continue discussion about that particular issue in Bugzilla
> (e.g. I'd be interested whether your crash also disappears when you do
> that change locally).
>

Ok,I will post the follow-up questions here

Michael Weghorn  于2022年4月29日周五 23:39写道:

>
> On 29/04/2022 12.54, Michael Weghorn wrote:
> >> Is that file confidential or can it be shared publicly (attached to
> a
> >> Bugzilla ticket)? (I can't read most of the text in it. :-))
> >>
> >>
> >>  The file is not confidential and can be shared publicly (haha,The
> >> text in it is chiness)
> >
> > Great, thanks.
>
> I've now created a Bugzilla ticket for the initial issue that I could
> reproduce and have a pending fix for that in Gerrit:
> https://bugs.documentfoundation.org/show_bug.cgi?id=148851
> https://gerrit.libreoffice.org/c/core/+/133581
>
> With that in place, I didn't see any more crashes or unexpected memory
> usage increase when testing more with your sample doc and experimental
> mode *disabled*.
>
> I can still reproduce a crash due to running out of memory with
> experimental mode *enabled*, though.
>
> I have created a separate ticket in Bugzilla for that one and added some
> more information, also mentioning a potential workaround:
> https://bugs.documentfoundation.org/show_bug.cgi?id=148854
>
> I suggest to continue discussion about that particular issue in Bugzilla
> (e.g. I'd be interested whether your crash also disappears when you do
> that change locally).
>
> >  My compile machine only has 4GB RAM so that i must restrict the symbols
> but even so the memory is also not enough(because of that link error
> "clang++ error:unable to execute command Killed")
>
> 4 GB are actually not much. I have no further ideas what you could
> do/try to do a build with debug symbols in that setup, other than having
> lots of swap, which will probably be very slow.
>


Re: SalAbort:Unspecified application error

2022-04-29 Thread di liu
>
> Does "more times" here mean that it takes longer now than previously
> until the problem shows up? Or is it pretty much unchanged for you?
>
> Is that with experimental mode enabled or disabled in the app settings?
>

I am so sorry,I made a mistake (I made some local changes but did not
restore the code completely which interferes the test result.)
After my initial test(on the same devices) the crash disappeared.
I will continue to test this issue on different devices and scenarios to
make sure it be fixed completely

Yes, that's most likely.
> The one from https://gerrit.libreoffice.org/c/core/+/133581 is also
> called further down in the stack from there and was clearly showing up
> in the memory profile.
>
> The app was working fine with the sample file in non-editing mode  for
> me with that hack in place in a quick test.
> But it's well possible that there are more leaks elsewhere.
>


 Yeah,thank you so much for all you do.

Michael Weghorn  于2022年4月29日周五 18:54写道:

> > Is that file confidential or can it be shared publicly (attached to a
> > Bugzilla ticket)? (I can't read most of the text in it. :-))
> >
> >
> >  The file is not confidential and can be shared publicly (haha,The text
> in it is chiness)
>
> Great, thanks.
>
>
> On 29/04/2022 12.07, di liu wrote:
> > Ok, I will make a try (recompile the source code will spend me
> > hours... )
> >
> >
> > Unfortunately it's also crash with same error when i swipe up and down
> > more times.
>
> Does "more times" here mean that it takes longer now than previously
> until the problem shows up? Or is it pretty much unchanged for you?
>
> Is that with experimental mode enabled or disabled in the app settings?
>
> > I suppose the memory leak maybe exit in this method
> > "desktop/source/lib/init.cxx -> doc_paintTile".Because every time i
> > swipe the screen the java code will call this method to paint tile where
> > crash was happened
>
> Yes, that's most likely.
> The one from https://gerrit.libreoffice.org/c/core/+/133581 is also
> called further down in the stack from there and was clearly showing up
> in the memory profile.
>
> The app was working fine with the sample file in non-editing mode  for
> me with that hack in place in a quick test.
> But it's well possible that there are more leaks elsewhere.
>


Re: SalAbort:Unspecified application error

2022-04-29 Thread di liu
>
> Ok, I will make a try (recompile the source code will spend me hours... )
>

Unfortunately it's also crash with same error when i swipe up and down more
times.
I suppose the memory leak maybe exit in this method
"desktop/source/lib/init.cxx -> doc_paintTile".Because every time i swipe
the screen the java code will call this method to paint tile where crash
was happened

di liu  于2022年4月29日周五 16:06写道:

> Is that file confidential or can it be shared publicly (attached to a
>> Bugzilla ticket)? (I can't read most of the text in it. :-))
>>
>
>  The file is not confidential and can be shared publicly (haha,The text in
> it is chiness)
>
>
> so with your config that uses --enable-debug and restricts for what
>> modules symbols are enabled, even less should be needed.
>>
>
>  My compile machine only has 4GB RAM so that i must restrict the symbols
> but even so the memory is also not enough(because of that link error
> "clang++ error:unable to execute command Killed")
>
> Can you try whether the demo patch at
>> https://gerrit.libreoffice.org/c/core/+/133581 makes the crash go away
>> for you as well?
>>
>
> Ok, I will make a try (recompile the source code will spend me hours... )
>
> Michael Weghorn  于2022年4月29日周五 03:06写道:
>
>>
>> On 28/04/2022 05.04, di liu wrote:
>> > Thank you for your response ^_^
>> >
>> > The video appears to be inaccessible unless access has specifically
>> been
>> > granted in Google Drive.
>> >
>> > I am sorry, have made it
>> >
>> >   Does that device have a 64-bit ARM processor?
>> >
>> > Yeah ,my device abi is arm64-v8a,And the so is compiled for armeabi-v7a
>> >
>> > i.e. the crash is not 100% reproducible? Can you give a rough
>> estimation
>> > of how often it happens? (like "almost always", "about every third
>> > time",...)?
>> >
>> > almost always
>> >
>> >   It might also help to share a sample doc (e.g. attaching one to a
>> bug
>> >
>> > report on Bugzilla) if it happens more often with specific files.
>> > see the accessories
>>
>> Thanks for sharing the video and a sample file. With those, I can
>> reproduce a crash.
>>
>> Is that file confidential or can it be shared publicly (attached to a
>> Bugzilla ticket)? (I can't read most of the text in it. :-))
>>
>> > What does your autogen.input look like? (Or what options are you
>> passing
>> > to ./autogen.sh manually?)
>> >
>> > passing nothing to ./autogen.sh
>> > the autogen.input containing this:
>> > --with-distro=LibreOfficeAndroid
>> > --with-android-sdk=/home/disco/Documents/dev_env/android_sdk
>> >
>> --with-android-ndk=/home/disco/Documents/dev_env/android_sdk/ndk/20.1.5948944
>> > --with-ant-home=/home/disco/Documents/dev_env/apache-ant-1.10.12
>> > --enable-debug
>> > --enable-symbols="vcl/source/app/"
>> >
>> > For a 64-bit ARM debug build, using LLD with NDK 22.1.7171670
>> worked for
>> > me in the past, by applying this change on top of master:
>> > https://gerrit.libreoffice.org/c/core/+/130947
>> > <https://gerrit.libreoffice.org/c/core/+/130947>
>> >
>> > and then using an autogen.input containing this:
>> >
>> > --build=x86_64-unknown-linux-gnu
>> > --with-android-ndk=/home/michi/Android/Sdk/ndk/21.0.6113669
>> > --with-android-sdk=/home/michi/Android/Sdk
>> > --with-distro=LibreOfficeAndroidAarch64
>> > --enable-sal-log
>> > --with-external-tar=/home/michi/development/libreoffice-external
>> > --enable-ccache
>> > --enable-ld=lld
>> > --enable-dbgutil
>> > --with-jdk-home=/usr/lib/jvm/java-11-openjdk-amd64/
>> >
>> > If i want to build debug version so must build a 64-bit ?
>>
>> I suppose, in theory, 32-bit should also work. My practical experience
>> with the Android toolchain was that several things that should work in
>> theory didn't work in reality, and trying a different architecture, NDK
>> version, or linker could give better results.
>>
>> Trying an x86 or x86_64 AVD might also be worth trying.
>> A dbgutil build works fine for me on a Debian testing machine with 16 GB
>> of RAM and an autogen.input containing
>>
>> --build=x86_64-unknown-linux-gnu
>> --with-android-ndk=/home/michi/Android/Sdk/ndk/2

Re: SalAbort:Unspecified application error

2022-04-29 Thread di liu
>
> Is that file confidential or can it be shared publicly (attached to a
> Bugzilla ticket)? (I can't read most of the text in it. :-))
>

 The file is not confidential and can be shared publicly (haha,The text in
it is chiness)


so with your config that uses --enable-debug and restricts for what
> modules symbols are enabled, even less should be needed.
>

 My compile machine only has 4GB RAM so that i must restrict the symbols
but even so the memory is also not enough(because of that link error
"clang++ error:unable to execute command Killed")

Can you try whether the demo patch at
> https://gerrit.libreoffice.org/c/core/+/133581 makes the crash go away
> for you as well?
>

Ok, I will make a try (recompile the source code will spend me hours... )

Michael Weghorn  于2022年4月29日周五 03:06写道:

>
> On 28/04/2022 05.04, di liu wrote:
> > Thank you for your response ^_^
> >
> > The video appears to be inaccessible unless access has specifically
> been
> > granted in Google Drive.
> >
> > I am sorry, have made it
> >
> >   Does that device have a 64-bit ARM processor?
> >
> > Yeah ,my device abi is arm64-v8a,And the so is compiled for armeabi-v7a
> >
> > i.e. the crash is not 100% reproducible? Can you give a rough
> estimation
> > of how often it happens? (like "almost always", "about every third
> > time",...)?
> >
> > almost always
> >
> >   It might also help to share a sample doc (e.g. attaching one to a
> bug
> >
> > report on Bugzilla) if it happens more often with specific files.
> > see the accessories
>
> Thanks for sharing the video and a sample file. With those, I can
> reproduce a crash.
>
> Is that file confidential or can it be shared publicly (attached to a
> Bugzilla ticket)? (I can't read most of the text in it. :-))
>
> > What does your autogen.input look like? (Or what options are you
> passing
> > to ./autogen.sh manually?)
> >
> > passing nothing to ./autogen.sh
> > the autogen.input containing this:
> > --with-distro=LibreOfficeAndroid
> > --with-android-sdk=/home/disco/Documents/dev_env/android_sdk
> >
> --with-android-ndk=/home/disco/Documents/dev_env/android_sdk/ndk/20.1.5948944
> > --with-ant-home=/home/disco/Documents/dev_env/apache-ant-1.10.12
> > --enable-debug
> > --enable-symbols="vcl/source/app/"
> >
> > For a 64-bit ARM debug build, using LLD with NDK 22.1.7171670 worked
> for
> > me in the past, by applying this change on top of master:
> > https://gerrit.libreoffice.org/c/core/+/130947
> > <https://gerrit.libreoffice.org/c/core/+/130947>
> >
> > and then using an autogen.input containing this:
> >
> > --build=x86_64-unknown-linux-gnu
> > --with-android-ndk=/home/michi/Android/Sdk/ndk/21.0.6113669
> > --with-android-sdk=/home/michi/Android/Sdk
> > --with-distro=LibreOfficeAndroidAarch64
> > --enable-sal-log
> > --with-external-tar=/home/michi/development/libreoffice-external
> > --enable-ccache
> > --enable-ld=lld
> > --enable-dbgutil
> > --with-jdk-home=/usr/lib/jvm/java-11-openjdk-amd64/
> >
> > If i want to build debug version so must build a 64-bit ?
>
> I suppose, in theory, 32-bit should also work. My practical experience
> with the Android toolchain was that several things that should work in
> theory didn't work in reality, and trying a different architecture, NDK
> version, or linker could give better results.
>
> Trying an x86 or x86_64 AVD might also be worth trying.
> A dbgutil build works fine for me on a Debian testing machine with 16 GB
> of RAM and an autogen.input containing
>
> --build=x86_64-unknown-linux-gnu
> --with-android-ndk=/home/michi/Android/Sdk/ndk/20.0.5594570/
> --with-android-sdk=/home/michi/Android/Sdk
> --with-distro=LibreOfficeAndroidX86
> --enable-sal-log
> --enable-ccache
> --enable-dbgutil
> --with-jdk-home=/usr/lib/jvm/java-11-openjdk-amd64/
>
> so with your config that uses --enable-debug and restricts for what
> modules symbols are enabled, even less should be needed.
>
> > Addition:
> > Yesterday i use "bugreport" command on my device and found below logs:
> >
> > 04-27 15:53:50.551 10316  3015  3287 W libc: malloc(2292954)
> > failed: returning null pointer
> > 04-27 15:53:50.552  1000  2433  6251 I chatty  : uid=1000(system)
> > Binder:2433_6 expire 4 lines
> > 04-27 15:53:50.553 10316  3015  3287 E LibreOffice/androidinst:
> > SalAbort: 'Unspecified appli

Re: SalAbort:Unspecified application error

2022-04-27 Thread di liu
forget the crash video add it
 crash_video.mp4
<https://drive.google.com/file/d/1m2jTLRuyngZIcmVcTh7cII0q4WZ5p6OM/view?usp=drive_web>

di liu  于2022年4月27日周三 15:23写道:

> Hi,
> There has  a crash error when i use libreoffice in android which is
> compiled from the source code.
>
> *The development information:*
> the libreoffice branch is *master*(update when a write this mail)
> *phone information:*
> android sdk : *29(android 10)*
> brand*:**HUAWEI HMI-AL100*
> ram*:6G*
> screen*:2244x1080*
>
> *The triggering scenario for this error:*
> This error appears more frequently  when load xlsx file(load other file
> also happen).
> when l load xlsx file and zoom in the document then slide up and down
> quickly (the video in the accessorias) the app will be crashed suddenly.
>
> the full error log is below
>
> 2022-04-27 14:17:46.736 1523-2407/? E/ProcessInfoCollector:
> getProcessInfo: failed to find this proc.
> 2022-04-27 14:17:46.748 27142-27142/? E/.huawei.hitouc: Not starting
> debugger since process cannot load the jdwp agent.
> 2022-04-27 14:17:46.837 27142-27142/? E/MLInitializerProvider:
> MLInitializerProvider Done
> 2022-04-27 14:17:46.903 27142-27158/? E/TouchPolicyHelper: activity is
> empty.
> 2022-04-27 14:17:46.949 1073-1436/? E/ScreemCommon: fail to extract lcd
> fps mode!
> 2022-04-27 14:17:51.488 1037-1037/? E/Thermal-daemon:hw_thermal: [rfboard]
> tempNew :27  tempOld :26
> 2022-04-27 14:17:51.488 1037-1037/? E/Thermal-daemon:hw_thermal: Report
> temperature: [rfboard] temp :27  reportThreshold:1
> 2022-04-27 14:17:51.490 1037-1037/? E/Thermal-daemon:hw_thermal: [ap]
> tempNew :30  tempOld :29
> 2022-04-27 14:17:51.491 1037-1037/? E/Thermal-daemon:hw_thermal: Report
> temperature: [ap] temp :30  reportThreshold:1
> 2022-04-27 14:17:52.233 1037-4076/? E/Thermal-daemon:ambient:
> UpdateAmbientInformation: devCurrent 519, last_avg_current -332, clear
> history input array
> 2022-04-27 14:17:56.034 2524-3150/? E/DeviceMonitorPowerKit: not Satify
> ApplyResource
> 2022-04-27 14:17:56.492 1037-1037/? E/Thermal-daemon:hw_thermal:
> [charger_ic] tempNew :29  tempOld :28
> 2022-04-27 14:17:56.492 1037-1037/? E/Thermal-daemon:hw_thermal: Report
> temperature: [charger_ic] temp :29  reportThreshold:1
> 2022-04-27 14:17:57.235 1037-4076/? E/Thermal-daemon:ambient:
> UpdateAmbientInformation: is first history!!
> 2022-04-27 14:18:00.015 2288-2288/? E/DateView: DateView,mCurrentTime:
> 1651040280015
> 2022-04-27 14:18:00.060 2288-2288/? E/ndroid.systemu: No package ID ff
> found for ID 0x.
> 2022-04-27 14:18:00.066 2288-2288/? E/ndroid.systemu: No package ID ff
> found for ID 0x.
> 2022-04-27 14:18:01.495 1037-1037/? E/Thermal-daemon:hw_thermal: [ap]
> tempNew :31  tempOld :30
> 2022-04-27 14:18:01.496 1037-1037/? E/Thermal-daemon:hw_thermal: Report
> temperature: [ap] temp :31  reportThreshold:1
> 2022-04-27 14:18:02.239 1037-4076/? E/Thermal-daemon:ambient:
> UpdateAmbientInformation: devCurrent -192, last_avg_current 509, clear
> history input array
> 2022-04-27 14:18:06.499 1037-1037/? E/Thermal-daemon:hw_thermal: [ap]
> tempNew :30  tempOld :31
> 2022-04-27 14:18:06.500 1037-1037/? E/Thermal-daemon:hw_thermal: Report
> temperature: [ap] temp :30  reportThreshold:1
> 2022-04-27 14:18:07.243 1037-4076/? E/Thermal-daemon:ambient:
> UpdateAmbientInformation: is first history!!
> 2022-04-27 14:18:11.500 1037-1037/? E/Thermal-daemon:hw_thermal:
> [shell_frame] tempNew :29  tempOld :28
> 2022-04-27 14:18:11.501 1037-1037/? E/Thermal-daemon:hw_thermal: Report
> temperature: [shell_frame] temp :29  reportThreshold:1
> 2022-04-27 14:18:12.247 1037-4076/? E/Thermal-daemon:ambient:
> UpdateAmbientInformation: devCurrent 488, last_avg_current -164, clear
> history input array
> 2022-04-27 14:18:12.770 1523-2109/? E/WifiConnectivityManager:
> isWifiScanSpecialChannels is false,mWifiState : 2
> 2022-04-27 14:18:12.790 2561-3446/? E/AppInfoMgr: not find pkgs by uid:
> 1010
> 2022-04-27 14:18:14.134 15441-17199/org.free.dike.ldoffice
> E/LibreOffice/androidinst: SalAbort: 'Unspecified application error'
> 2022-04-27 14:18:14.202 1523-2109/? E/SupplicantStaNetworkHal:
> createHalCallback is called !
> 2022-04-27 14:18:14.241 17732-17732/? E/wpa_supplicant: wlan0:
> ssid->assoc_retry=0
> 2022-04-27 14:18:14.241 17732-17732/? E/wpa_supplicant:
> wpas_vendor_send_abs_cmd_to_driver: abs is not enabled
> 2022-04-27 14:18:14.248 1523-1523/? E/HwWifiStateMachine_PAC: unknown state
> 2022-04-27 14:18:14.264 1523-17185/? E/WifiPermissionsUtil:
> getUidPermission is DENIED and permissionType
> android.permission.ACCESS_FINE_LOCATIONuid 1002
> 2022-04-27 14:18:14.264 1523-17185/? E/WifiService:
> 

SalAbort:Unspecified application error

2022-04-27 Thread di liu
Hi,
There has  a crash error when i use libreoffice in android which is
compiled from the source code.

*The development information:*
the libreoffice branch is *master*(update when a write this mail)
*phone information:*
android sdk : *29(android 10)*
brand*:**HUAWEI HMI-AL100*
ram*:6G*
screen*:2244x1080*

*The triggering scenario for this error:*
This error appears more frequently  when load xlsx file(load other file
also happen).
when l load xlsx file and zoom in the document then slide up and down
quickly (the video in the accessorias) the app will be crashed suddenly.

the full error log is below

2022-04-27 14:17:46.736 1523-2407/? E/ProcessInfoCollector: getProcessInfo:
failed to find this proc.
2022-04-27 14:17:46.748 27142-27142/? E/.huawei.hitouc: Not starting
debugger since process cannot load the jdwp agent.
2022-04-27 14:17:46.837 27142-27142/? E/MLInitializerProvider:
MLInitializerProvider Done
2022-04-27 14:17:46.903 27142-27158/? E/TouchPolicyHelper: activity is
empty.
2022-04-27 14:17:46.949 1073-1436/? E/ScreemCommon: fail to extract lcd fps
mode!
2022-04-27 14:17:51.488 1037-1037/? E/Thermal-daemon:hw_thermal: [rfboard]
tempNew :27  tempOld :26
2022-04-27 14:17:51.488 1037-1037/? E/Thermal-daemon:hw_thermal: Report
temperature: [rfboard] temp :27  reportThreshold:1
2022-04-27 14:17:51.490 1037-1037/? E/Thermal-daemon:hw_thermal: [ap]
tempNew :30  tempOld :29
2022-04-27 14:17:51.491 1037-1037/? E/Thermal-daemon:hw_thermal: Report
temperature: [ap] temp :30  reportThreshold:1
2022-04-27 14:17:52.233 1037-4076/? E/Thermal-daemon:ambient:
UpdateAmbientInformation: devCurrent 519, last_avg_current -332, clear
history input array
2022-04-27 14:17:56.034 2524-3150/? E/DeviceMonitorPowerKit: not Satify
ApplyResource
2022-04-27 14:17:56.492 1037-1037/? E/Thermal-daemon:hw_thermal:
[charger_ic] tempNew :29  tempOld :28
2022-04-27 14:17:56.492 1037-1037/? E/Thermal-daemon:hw_thermal: Report
temperature: [charger_ic] temp :29  reportThreshold:1
2022-04-27 14:17:57.235 1037-4076/? E/Thermal-daemon:ambient:
UpdateAmbientInformation: is first history!!
2022-04-27 14:18:00.015 2288-2288/? E/DateView: DateView,mCurrentTime:
1651040280015
2022-04-27 14:18:00.060 2288-2288/? E/ndroid.systemu: No package ID ff
found for ID 0x.
2022-04-27 14:18:00.066 2288-2288/? E/ndroid.systemu: No package ID ff
found for ID 0x.
2022-04-27 14:18:01.495 1037-1037/? E/Thermal-daemon:hw_thermal: [ap]
tempNew :31  tempOld :30
2022-04-27 14:18:01.496 1037-1037/? E/Thermal-daemon:hw_thermal: Report
temperature: [ap] temp :31  reportThreshold:1
2022-04-27 14:18:02.239 1037-4076/? E/Thermal-daemon:ambient:
UpdateAmbientInformation: devCurrent -192, last_avg_current 509, clear
history input array
2022-04-27 14:18:06.499 1037-1037/? E/Thermal-daemon:hw_thermal: [ap]
tempNew :30  tempOld :31
2022-04-27 14:18:06.500 1037-1037/? E/Thermal-daemon:hw_thermal: Report
temperature: [ap] temp :30  reportThreshold:1
2022-04-27 14:18:07.243 1037-4076/? E/Thermal-daemon:ambient:
UpdateAmbientInformation: is first history!!
2022-04-27 14:18:11.500 1037-1037/? E/Thermal-daemon:hw_thermal:
[shell_frame] tempNew :29  tempOld :28
2022-04-27 14:18:11.501 1037-1037/? E/Thermal-daemon:hw_thermal: Report
temperature: [shell_frame] temp :29  reportThreshold:1
2022-04-27 14:18:12.247 1037-4076/? E/Thermal-daemon:ambient:
UpdateAmbientInformation: devCurrent 488, last_avg_current -164, clear
history input array
2022-04-27 14:18:12.770 1523-2109/? E/WifiConnectivityManager:
isWifiScanSpecialChannels is false,mWifiState : 2
2022-04-27 14:18:12.790 2561-3446/? E/AppInfoMgr: not find pkgs by uid: 1010
2022-04-27 14:18:14.134 15441-17199/org.free.dike.ldoffice
E/LibreOffice/androidinst: SalAbort: 'Unspecified application error'
2022-04-27 14:18:14.202 1523-2109/? E/SupplicantStaNetworkHal:
createHalCallback is called !
2022-04-27 14:18:14.241 17732-17732/? E/wpa_supplicant: wlan0:
ssid->assoc_retry=0
2022-04-27 14:18:14.241 17732-17732/? E/wpa_supplicant:
wpas_vendor_send_abs_cmd_to_driver: abs is not enabled
2022-04-27 14:18:14.248 1523-1523/? E/HwWifiStateMachine_PAC: unknown state
2022-04-27 14:18:14.264 1523-17185/? E/WifiPermissionsUtil:
getUidPermission is DENIED and permissionType
android.permission.ACCESS_FINE_LOCATIONuid 1002
2022-04-27 14:18:14.264 1523-17185/? E/WifiService:
enforceCanAccessScanResults: hiding ssid and bssidUID 1002 has no location
permission
2022-04-27 14:18:14.271 2503-2799/? E/NcDftImpl: NcChipDftEvent igonred
eventId:NcChipDftEvent{Id=1180420, Length=0, Flag=1}total:1631
2022-04-27 14:18:14.273 1523-2196/? E/SupplicantStaIfaceHal:
ISupplicantStaIface.getApVendorInfo failed: {.code = FAILURE_UNKNOWN,
.debugMessage = }
2022-04-27 14:18:14.316 2433-2915/? E/BoosterUtil: convertSubIdToSlotId
failed, subId:0, slotId:-1
2022-04-27 14:18:14.316 2433-2915/? E/BoosterUtil: getDefaultDataSlotId
failed, invalid slotId:-1, subId:0
2022-04-27 14:18:14.316 2433-2915/? E/BroadcastProxy: isDataOn failed,
invalid slotId=-1

Re: Libreoffice build error[for android]

2022-03-06 Thread di liu
That's great ! There is no link error when i execute the command 'make
distclean' and make all dynamic files(.so) used to android.But i think i
should spend more time on makefile to make it clear how does the process
work.

Thank you very much for your help.

Michael Weghorn  于2022年3月4日周五 20:06写道:

>
> On 04/03/2022 12.37, Michael Weghorn wrote:
> > It's not really clear to me what "he green color option" refers to, but
> > if that refers to the change of adding the '--no-check-certificate'
> > option for wget, that should actually be unrelated.
>
> OK, had I enabled HTML rendering for the email, it would have been clear
> that the '--no-check-certificate' option was actually meant, sorry for
> the noise...
>


Re: Libreoffice build error[for android]

2022-03-04 Thread di liu
Thank you for your reply.
> If you have current git master without any local changes and 'make
> distclean' and trying again doesn't work

I just modified one file which named "Makefile.fetch" location in root dir
of libreoffice,But i think this change has nothing to do with this error
below is my change's content
"

ifneq (,$(WGET))
define fetch_Download__wget_command
&& bash -c '$(WGET) --no-check-certificate --progress=dot:mega -Q 0 -P
"." -l 0 -nd -nH -N --no-use-server-timestamps $1/$2 2>&1 | tee -a
$(fetch_LOGFILE) && [ $$PIPESTATUS -eq 0 ]'
endef

"
I have added he green color option which used solve certification problem
but I still want to have try with "make distclean"

I have a another problem:
I have search the undefined method "lo_get_custom_widget_func" and find
this method is defined dynamic . It's was defined by native-code.py I don't
know why we're doing this and how it's work
.Could you give me a simple explanation or provide me some documents to
make it's clear ?

At last I wonder if I can do that execute "native-code.py" and put the
result to a new  cpp file and add it to makefile when I still have the link
error ?

thank you very much

Michael Weghorn  于2022年3月4日周五 15:02写道:

>
> Hi,
>
> On 03/03/2022 16.08, di liu wrote:
> > the build environment is linux(centos 7) which installed in vmware (my
> > host system is macOS) this is my autogen.input content
> > --with-distro=LibreOfficeAndroid
> > --with-android-sdk=/home/disco/Documents/dev_env/android_sdk
> >
> --with-android-ndk=/home/disco/Documents/dev_env/android_sdk/ndk/20.1.5948944
>
> > --with-ant-home=/home/disco/Documents/dev_env/apache-ant-1.10.12
>
> I tried a build with an equivalent autogen.input on Debian testing:
>
>  --with-distro=LibreOfficeAndroid
>  --with-android-sdk=/home/michi/Android/Sdk
>  --with-android-ndk=/home/michi/Android/Sdk/ndk/20.1.5948944
>  --with-external-tar=/home/michi/development/libreoffice-external
>
> which worked fine with master (as of commit
> 0a774bae7d402a6880760b1226a6741604e23f5a).
>
>
> > everything is ok when execute: ./autogen.sh But when I execute: make the
> > error is happened:
> >
> > [...]
> > Linking
> >
>  
> /home/disco/Documents/res/libreoffice/android/obj/local/armeabi-v7a/liblo-native-code.so
> >
>  
> /home/disco/Documents/res/libreoffice/instdir/program/libuno_cppuhelpergcc3.a(shlib.o):shlib.cxx:function
> > cppuhelper::detail::loadSharedLibComponentFactory(rtl::OUString
> > const&, rtl::OUString const&, rtl::OUString const&, rtl::OUString
> > const&, rtl::OUString const&,
> >
>  com::sun::star::uno::Reference
> > const&, std::__ndk1::function > (com::sun::star::uno::XComponentContext*,
> > com::sun::star::uno::Sequence const&)>*,
> > com::sun::star::uno::Reference*):
> > error: undefined reference to 'lo_get_constructor_map'
> >
>  
> /home/disco/Documents/res/libreoffice/instdir/program/libuno_cppuhelpergcc3.a(shlib.o):shlib.cxx:function
> > cppuhelper::detail::loadSharedLibComponentFactory(rtl::OUString
> > const&, rtl::OUString const&, rtl::OUString const&, rtl::OUString
> > const&, rtl::OUString const&,
> >
>  com::sun::star::uno::Reference
> > const&, std::__ndk1::function > (com::sun::star::uno::XComponentContext*,
> > com::sun::star::uno::Sequence const&)>*,
> > com::sun::star::uno::Reference*):
> > error: undefined reference to 'lo_get_factory_map'
> > [...] >
> > Could you give me some suggestions
>
> If you have current git master without any local changes and 'make
> distclean' and trying again doesn't work, you could try using a
> different version of the Android NDK, or use LLD as linker instead of
> ld.gold by applying the demo patch at
> https://gerrit.libreoffice.org/c/core/+/130947 and switching to a newer
> NDK; a build here worked with that Gerrit change in place and an
> autogen.input containing this:
>
>  --with-distro=LibreOfficeAndroid
>  --with-android-ndk=/home/michi/Android/Sdk/ndk/22.1.7171670/
>  --with-android-sdk=/home/michi/Android/Sdk
>  --with-external-tar=/home/michi/development/libreoffice-external
>
> (At least my experience in the past was that it was a bit tricky to find
> a combination of Android NDK and linker that would work depending on
> architecture and whether this was a release or debug build. But the
> problems I encountered back then were more "fundamental" than the
> "undefined reference" issue you're encountering. Maybe all of the issues
> I had two years ago or so are fixed in newer versions of the toolchain,
> but so far I just stayed with what was working back then...)
>


Re: Libreoffice build error[for android]

2022-03-03 Thread di liu
the build environment is linux(centos 7) which installed in vmware (my host
system is macOS) this is my autogen.input content
--with-distro=LibreOfficeAndroid
--with-android-sdk=/home/disco/Documents/dev_env/android_sdk
--with-android-ndk=/home/disco/Documents/dev_env/android_sdk/ndk/20.1.5948944
--with-ant-home=/home/disco/Documents/dev_env/apache-ant-1.10.12 everything
is ok when execute: ./autogen.sh But when I execute: make the error is
happened:

di liu  于2022年3月3日周四 18:50写道:

> Hi,
> There has a link error when I build Libreoffice for android(
> https://wiki.documentfoundation.org/Development/BuildingForAndroid)
>
> below is the error message
>
> [build ALL] All modules but instset: chart2 canvas cppcanvas dbaccess
> accessibility winaccessibility UnoControls animations apple_remote avmedia
> basctl basegfx basic bean binaryurp bridges cli_ure codemaker comphelper
> configmgr connectivity cppu cppuhelper cpputools cui desktop drawinglayer
> editeng embeddedobj embedserv emfio eventattacher extensions external
> beanshell boost box2d cairo coinmp cuckoo curl dragonbox dtoa epoxy expat
> fontconfig freetype glm graphite harfbuzz hsqldb hunspell hyphen icu lcms2
> libabw libcdr libcmis libebook libepubgen libetonyek libexttextcat
> libfreehand libjpeg-turbo liblangtag libmspub libmwaw libnumbertext
> libodfgen liborcus libpagemaker libpng libqxp librevenge libstaroffice
> libvisio libwebp libwpd libwpg libwps libxml2 libxslt libzmf mdds
> more_fonts mythes nss openssl pdfium redland rhino ucpp xmlsec zxing extras
> filter forms formula framework hwpfilter i18nlangtag i18npool i18nutil idl
> io javaunohelper jurt jvmaccess jvmfwk libreofficekit lingucomponent
> linguistic lotuswordpro o3tl offapi officecfg onlineupdate oovbaapi oox
> package pch postprocess readlicense_oo registry remotebridges reportbuilder
> reportdesign ridljar sal salhelper sax sc scaddins sccomp scripting sd
> sdext sfx2 shell slideshow smoketest solenv soltools sot starmath stoc
> store svgio svl svtools svx sw swext sysui test testtools toolkit tools ucb
> ucbhelper udkapi unodevtools unoidl unoil unotest unotools unoxml ure uui
> vbahelper vcl wizards writerfilter writerperfect xmerge xmloff xmlreader
> xmlscript xmlsecurity
> [build MAK] CustomTarget/android/source/done
> Linking
> /home/disco/Documents/res/libreoffice/android/obj/local/armeabi-v7a/liblo-native-code.so
> /home/disco/Documents/res/libreoffice/instdir/program/libuno_cppuhelpergcc3.a(shlib.o):shlib.cxx:function
> cppuhelper::detail::loadSharedLibComponentFactory(rtl::OUString const&,
> rtl::OUString const&, rtl::OUString const&, rtl::OUString const&,
> rtl::OUString const&,
> com::sun::star::uno::Reference
> const&, std::__ndk1::function (com::sun::star::uno::XComponentContext*,
> com::sun::star::uno::Sequence const&)>*,
> com::sun::star::uno::Reference*): error:
> undefined reference to 'lo_get_constructor_map'
> /home/disco/Documents/res/libreoffice/instdir/program/libuno_cppuhelpergcc3.a(shlib.o):shlib.cxx:function
> cppuhelper::detail::loadSharedLibComponentFactory(rtl::OUString const&,
> rtl::OUString const&, rtl::OUString const&, rtl::OUString const&,
> rtl::OUString const&,
> com::sun::star::uno::Reference
> const&, std::__ndk1::function (com::sun::star::uno::XComponentContext*,
> com::sun::star::uno::Sequence const&)>*,
> com::sun::star::uno::Reference*): error:
> undefined reference to 'lo_get_factory_map'
> /home/disco/Documents/res/libreoffice/instdir/program/libvcllo.a(builder.o):builder.cxx:function
> (anonymous namespace)::GetCustomMakeWidget(rtl::OString const&): error:
> undefined reference to 'lo_get_custom_widget_func'
> clang++: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[2]: ***
> [/home/disco/Documents/res/libreoffice/android/obj/local/armeabi-v7a/liblo-native-code.so]
> Error 1
> make[1]: ***
> [/home/disco/Documents/res/libreoffice/workdir/CustomTarget/android/source/done]
> Error 2
> make: *** [build] Error 2
>
> Could you give me some suggestions
> tsk
>
>


Libreoffice build error[for android]

2022-03-03 Thread di liu
Hi,
There has a link error when I build Libreoffice for android(
https://wiki.documentfoundation.org/Development/BuildingForAndroid)

below is the error message

[build ALL] All modules but instset: chart2 canvas cppcanvas dbaccess
accessibility winaccessibility UnoControls animations apple_remote avmedia
basctl basegfx basic bean binaryurp bridges cli_ure codemaker comphelper
configmgr connectivity cppu cppuhelper cpputools cui desktop drawinglayer
editeng embeddedobj embedserv emfio eventattacher extensions external
beanshell boost box2d cairo coinmp cuckoo curl dragonbox dtoa epoxy expat
fontconfig freetype glm graphite harfbuzz hsqldb hunspell hyphen icu lcms2
libabw libcdr libcmis libebook libepubgen libetonyek libexttextcat
libfreehand libjpeg-turbo liblangtag libmspub libmwaw libnumbertext
libodfgen liborcus libpagemaker libpng libqxp librevenge libstaroffice
libvisio libwebp libwpd libwpg libwps libxml2 libxslt libzmf mdds
more_fonts mythes nss openssl pdfium redland rhino ucpp xmlsec zxing extras
filter forms formula framework hwpfilter i18nlangtag i18npool i18nutil idl
io javaunohelper jurt jvmaccess jvmfwk libreofficekit lingucomponent
linguistic lotuswordpro o3tl offapi officecfg onlineupdate oovbaapi oox
package pch postprocess readlicense_oo registry remotebridges reportbuilder
reportdesign ridljar sal salhelper sax sc scaddins sccomp scripting sd
sdext sfx2 shell slideshow smoketest solenv soltools sot starmath stoc
store svgio svl svtools svx sw swext sysui test testtools toolkit tools ucb
ucbhelper udkapi unodevtools unoidl unoil unotest unotools unoxml ure uui
vbahelper vcl wizards writerfilter writerperfect xmerge xmloff xmlreader
xmlscript xmlsecurity
[build MAK] CustomTarget/android/source/done
Linking
/home/disco/Documents/res/libreoffice/android/obj/local/armeabi-v7a/liblo-native-code.so
/home/disco/Documents/res/libreoffice/instdir/program/libuno_cppuhelpergcc3.a(shlib.o):shlib.cxx:function
cppuhelper::detail::loadSharedLibComponentFactory(rtl::OUString const&,
rtl::OUString const&, rtl::OUString const&, rtl::OUString const&,
rtl::OUString const&,
com::sun::star::uno::Reference
const&, std::__ndk1::function const&)>*,
com::sun::star::uno::Reference*): error:
undefined reference to 'lo_get_constructor_map'
/home/disco/Documents/res/libreoffice/instdir/program/libuno_cppuhelpergcc3.a(shlib.o):shlib.cxx:function
cppuhelper::detail::loadSharedLibComponentFactory(rtl::OUString const&,
rtl::OUString const&, rtl::OUString const&, rtl::OUString const&,
rtl::OUString const&,
com::sun::star::uno::Reference
const&, std::__ndk1::function const&)>*,
com::sun::star::uno::Reference*): error:
undefined reference to 'lo_get_factory_map'
/home/disco/Documents/res/libreoffice/instdir/program/libvcllo.a(builder.o):builder.cxx:function
(anonymous namespace)::GetCustomMakeWidget(rtl::OString const&): error:
undefined reference to 'lo_get_custom_widget_func'
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: ***
[/home/disco/Documents/res/libreoffice/android/obj/local/armeabi-v7a/liblo-native-code.so]
Error 1
make[1]: ***
[/home/disco/Documents/res/libreoffice/workdir/CustomTarget/android/source/done]
Error 2
make: *** [build] Error 2

Could you give me some suggestions
tsk