Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TWebBrowser produces segmentation error (11) error


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 8 - Last Post: May 24, 2014 1:21 PM Last Post By: John Miller
John Miller

Posts: 8
Registered: 10/5/11
TWebBrowser produces segmentation error (11) error  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 14, 2014 1:54 PM
Hi, placing the TWebBrowser component to a mobile FireMonkey app produces the error "segmentation error (11)" error. The app crashes and closes directly on startup. This happens on Android and iOS, also on emulators and devices. This happens since XE6 (tried the current trial version from website). I also tried it with the WebBrowser sample project from the samples directory with the same problem. However, compiled with XE5 it works. What is the problem?
Eli M

Posts: 1,346
Registered: 11/9/13
Re: TWebBrowser produces segmentation error (11) error  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 14, 2014 10:56 PM   in response to: John Miller in response to: John Miller
Which device? Do non webbrowser apps from XE6 work for you?
John Miller

Posts: 8
Registered: 10/5/11
Re: TWebBrowser produces segmentation error (11) error  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 15, 2014 10:11 PM   in response to: Eli M in response to: Eli M
Which device?
Samsung Galaxy S4, Galaxy S2 mini, Galaxy Tab (P1000), but more important: The default Android and iOS emulator too. So I don't think it is hardware related. The same app compiled in XE5 works fine.

Do non webbrowser apps from XE6 work for you?
Yes, it happens only if I place the TWebBrowser component on a FMX form. It happens also when I create the component at runtime (but then only as soon as I create it - until then it runs fine, so using the unit "FMX.WebBrowser" in the uses clause alone does not seem to producing the problem).

I tested it on a second PC with a completely fresh installation of XE6 trial with the same result. I'm a little bit confused that nobody else seems to be reporting this problem. I don't understand this...
Nikolay Meleshkin

Posts: 7
Registered: 8/20/11
Re: TWebBrowser produces segmentation error (11) error  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 16, 2014 2:31 AM   in response to: John Miller in response to: John Miller
Hi John,

Could you show that's contains in your *.fmx file for TWebBrowser?
Usually it looks like as
  object WebBrowser1: TWebBrowser
    Align = Client
    Height = 304.000000000000000000
    Width = 598.000000000000000000
  end


Probably you exec something in the *.pas file?
Commonly "segmentation error (11)" means access violation in the native control. And why it happen I can say to you when I can reproduce it.

Very sincerely yours,
Nikolay
John Miller

Posts: 8
Registered: 10/5/11
Re: TWebBrowser produces segmentation error (11) error  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 18, 2014 9:11 AM   in response to: Nikolay Meleshkin in response to: Nikolay Meleshkin
Nikolay Meleshkin wrote:
Hi John,

Could you show that's contains in your *.fmx file for TWebBrowser?
Usually it looks like as
  object WebBrowser1: TWebBrowser
    Align = Client
    Height = 304.000000000000000000
    Width = 598.000000000000000000
  end


Probably you exec something in the *.pas file?
Commonly "segmentation error (11)" means access violation in the native control. And why it happen I can say to you when I can reproduce it.

Very sincerely yours,
Nikolay

Hello Nikolay,

sorry for my late reply. I did nothing other than simply placing a TWebBrowser component on a form and then compiled. Nothing else was changed. This is the fmx data:

  object WebBrowser1: TWebBrowser
    Height = 305.000000000000000000
    Position.X = 8.000000000000000000
    Position.Y = 8.000000000000000000
    Width = 233.000000000000000000
  end


I also tried the sample project from Embarcadero in the samples folder without luck. The RAD version is 20.0.15596.9843 (trial from the website).

Here is a test APK: http://www.filedropper.com/app_4 (5.32 MB)
Here the project files: http://www.filedropper.com/testproject (57.1 KB)
Here the project files but with additional build files (don't know if it is helpful...): http://www.filedropper.com/testprojectdebugfiles (24.5 MB)
Here is a list of file versions I copied from the About window of RAD Studio: http://www.filedropper.com/fileversions (4.76 KB)

I hope this helps.
John Miller

Posts: 8
Registered: 10/5/11
Re: TWebBrowser produces segmentation error (11) error  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 19, 2014 2:37 PM   in response to: Nikolay Meleshkin in response to: Nikolay Meleshkin
When the access violation occurs, the debugger seems to jump to the beginning of the _DbgExcNotify() procedure in \RTL\Sys\System.pas. I am the only one with this problem? Can someone confirm please?

If it has been fixed in the newer versions (which I can't test right now - I can test only the trial version), then I am relaxed. But our company wants to buy Appmethod in some weeks and I'm the one who has to develop apps for our customers... So I'm a little bit nervous about that error. Would be nice, if someone could test it too and tell me if it works for you.

Tomorrow I will test it on a third device. But it is very strange, that it happens on all devices and compiled on different PCs...
Nikolay Meleshkin

Posts: 7
Registered: 8/20/11
Re: TWebBrowser produces segmentation error (11) error  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 20, 2014 7:29 AM   in response to: John Miller in response to: John Miller
Unfortunately, I have everything working correctly.
Which page you using for downloading AppMethod?

Very sincerely yours,
Nikolay
Nikolay Meleshkin

Posts: 7
Registered: 8/20/11
Re: TWebBrowser produces segmentation error (11) error  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 21, 2014 7:36 AM   in response to: Nikolay Meleshkin in response to: Nikolay Meleshkin
I ask my collegues, probably beta of AppMethod was builded not correct (and it takes workin with true native controls). Could you try use Browser on the RAD Studio?

Very sincerely yours,
Nikolay
John Miller

Posts: 8
Registered: 10/5/11
Re: TWebBrowser produces segmentation error (11) error  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 24, 2014 1:21 PM   in response to: Nikolay Meleshkin in response to: Nikolay Meleshkin
Nikolay Meleshkin wrote:
I ask my collegues, probably beta of AppMethod was builded not correct (and it takes workin with true native controls). Could you try use Browser on the RAD Studio?

Very sincerely yours,
Nikolay

Hello Nikolay,

I didn't used AppMethod for testing. I used the newest trial version of RAD Studio XE6 from the Embarcadero Website to be sure that the problem is still there.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02