语言

Menu
Sites
Language
Problem about "Segmentation Fault" error when from 5.0 to 4.0 in minimum API version?
 
My app originally was created by API version 5.0 and it works well on 5.0 emulator.
 
Then,
 
I changed my app with API version 4.0 from API 5.0 version in tizen-manifest.xml and
I also installed SDK 4.0 in Package Manager.
then
I tried to test my new same app with API 4.0 on emulator 4.0 version.
But Visual studio IDE showed the error, "Segmentaion fault" when running as "Release mode" on Emulator 4.0 and it didn't work anymore.
(In addition, my app works well when running as "Debug mode".)
The code with "Segmentation Fault" is  right the code  with "MainPage = new TizenGalaxyYourIPGeoInfo.MainPage();" in function App(), constructor  in App.xaml.cs file. This problem happens only when running as "Release Mode" on emulator, "tizen4.0".
 
 
The full error log are as following:
"
Loaded '[vdso]'. Cannot find or open the symbol file.
Loaded 'linux-gate.so.1'. Cannot find or open the symbol file.
 
Segmentation fault
"
 
I attached the capured picture with the logs.
 
 
 
编辑者为: Jaehong Park 09 12月, 2020

响应

3 回复
sangwook lee

Hello,

Nice to mee to you and thank you for asking it here.

I can reproduce your situation but if you follow the below steps , the issue will be solved.

1) Change the target framework from tizen 5.0 to tizen 4.0

  • You can change project's property menu.
  • You can change it in the .csproj  from <TargetFramework>tizen50</TargetFramework> to <TargetFramework>tizen40</TargetFramework>

2) Change the API version from 5 to 4 as you already did it

For me, after doing that, there is no issue in both release mode and debug mode.

If you have any questiions, please leave it here,again.

Thank you very much

Best regards,

Sangwook lee

 

 

Jaehong Park

Thanks for your reply.

 

I  confimed two points as you said before.

1) The file, .csproj is already setted to <TargetFramework>tizen40</TargetFramework>.

2) As I said on the previos post, In file, "tizen-manifest.xml", I did changed API version 5 to 4.

 

But, any advice? or Do I have to reinstall the tizen SDK 4.0 on my dev. environment?

One more question is: it works on tizen 4.0 emulator as running "debug mode".

                                         then is it OK on tizen 4.0, real device watch? (Of course, when tpk is created as "Release verion")

Jaehong Park

I also posted it about the same issue on developer.samsung.com (https://forum.developer.samsung.com/t/segmentation-fault-error-when-changing-my-app-from-5-0-to-4-0-in-minimum-api-version/9735).

I got the solutions from above link as followings:

My app didn't work  and crashed with above "segmentation fault" but as you said, the same app binary, tpk built with "Release mode"works well on tizen 4.0 device (watch) in Samsung RTL page (https://developer.samsung.com/remotetestlab/rtlDeviceList.action?os=102).
 
Anyway, my app, tpk may seem to be no problematic on real device, I think.