Hello, In my C# application on Linux, I am creating a WebBrowser and when I create a URL for that WebBrowser assigning it a local HTML file, it crashes -
. . Try { . . webBrowser1.url = new Uri(Application.StartupPath + @"/test.htm"); . . Catch(Exception e) { MessageBox.Show(e.ToString()); } but the program crashes with the given stack trace - Could not set X locale modifiers Stacktrace: at (wrapper managed-to-native) Mono.Mozilla.Base.gluezilla_getWebNavigation (intptr) <0x00004> at (wrapper managed-to-native) Mono.Mozilla.Base.gluezilla_getWebNavigation (intptr) <0xffffffff> at Mono.Mozilla.Base.GetWebNavigation (Mono.WebBrowser.IWebBrowser) [0x00013] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Mono.WebBrowser/Mono.Mozilla/Base.cs:208 at Mono.Mozilla.WebBrowser.get_Navigation () [0x0000b] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Mono.WebBrowser/Mono.Mozilla/WebBrowser.cs:112 at System.Windows.Forms.WebBrowser.Navigate (System.Uri) [0x0000e] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs:285 at System.Windows.Forms.WebBrowser.set_Url (System.Uri) [0x00000] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs:213 at (wrapper remoting-invoke-with-check) System.Windows.Forms.WebBrowser.set_Url (System.Uri) <0xffffffff> at MForm..ctor () <0x003be> at (wrapper remoting-invoke-with-check) MForm..ctor () <0xffffffff> at MApplication.Main () <0x00018> at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff> Detailed Stack Trace Report is attached with the mail. I just want to know whether It is the correct way to create URI or Am I missing anything? Thanks, Om..
Could not set X locale modifiers Stacktrace: at (wrapper managed-to-native) Mono.Mozilla.Base.gluezilla_getWebNavigation (intptr) <0x00004> at (wrapper managed-to-native) Mono.Mozilla.Base.gluezilla_getWebNavigation (intptr) <0xffffffff> at Mono.Mozilla.Base.GetWebNavigation (Mono.WebBrowser.IWebBrowser) [0x00013] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Mono.WebBrowser/Mono.Mozilla/Base.cs:208 at Mono.Mozilla.WebBrowser.get_Navigation () [0x0000b] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Mono.WebBrowser/Mono.Mozilla/WebBrowser.cs:112 at System.Windows.Forms.WebBrowser.Navigate (System.Uri) [0x0000e] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs:285 at System.Windows.Forms.WebBrowser.set_Url (System.Uri) [0x00000] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs:213 at (wrapper remoting-invoke-with-check) System.Windows.Forms.WebBrowser.set_Url (System.Uri) <0xffffffff> at MForm..ctor () <0x003be> at (wrapper remoting-invoke-with-check) MForm..ctor () <0xffffffff> at MApplication.Main () <0x00018> at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff> Native stacktrace: mono [0x806c039] mono [0x8084051] [0xf3f440] [0x6feedfd] [0x6feed48] [0x6feecc6] [0x6feec6d] [0x6feec2e] [0x6feebf2] [0x3796e7] [0x3792e2] [0x379239] [0x3791ae] mono(mono_runtime_exec_main+0xeb) [0x8113cab] mono(mono_runtime_run_main+0x1ba) [0x811526a] mono(mono_main+0x132e) [0x805a0fe] mono [0x8058832] /lib/libc.so.6(__libc_start_main+0xdc) [0x126dec] mono [0x8058751] Debug info from gdb: Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 2431216 (LWP 27235)] [New Thread 61139856 (LWP 27238)] [New Thread 12221328 (LWP 27237)] [New Thread 3722128 (LWP 27236)] 0x00f3f402 in __kernel_vsyscall () 4 Thread 3722128 (LWP 27236) 0x00f3f402 in __kernel_vsyscall () 3 Thread 12221328 (LWP 27237) 0x00f3f402 in __kernel_vsyscall () 2 Thread 61139856 (LWP 27238) 0x00f3f402 in __kernel_vsyscall () 1 Thread 2431216 (LWP 27235) 0x00f3f402 in __kernel_vsyscall () Thread 4 (Thread 3722128 (LWP 27236)): #0 0x00f3f402 in __kernel_vsyscall () #1 0x00d545f6 in nanosleep () from /lib/libpthread.so.0 #2 0x0814a021 in collection_thread (unused=0x0) at collection.c:34 #3 0x00d4d43b in start_thread () from /lib/libpthread.so.0 #4 0x001defde in clone () from /lib/libc.so.6 Thread 3 (Thread 12221328 (LWP 27237)): #0 0x00f3f402 in __kernel_vsyscall () #1 0x00d51236 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0x0814cc2f in timedwait_signal_poll_cond (cond=0x9b9b3a4, mutex=0x9b9b38c, timeout=0x0, alertable=0) at handles.c:1490 #3 0x0814f922 in _wapi_handle_timedwait_signal_handle (handle=0x404, timeout=0x0, alertable=0) at handles.c:1570 #4 0x0814f99c in _wapi_handle_wait_signal_handle (handle=0x404, alertable=0) at handles.c:1530 #5 0x0815329d in WaitForSingleObjectEx (handle=0x404, timeout=4294967295, alertable=0) at wait.c:205 #6 0x081c292a in finalizer_thread (unused=0x0) at gc.c:908 #7 0x080e2f60 in start_wrapper (data=0x9ba5780) at threads.c:621 #8 0x0814c355 in thread_start_routine (args=0x9b9b5e4) at threads.c:279 #9 0x0816b0b1 in GC_start_routine (arg=0x26f20) at pthread_support.c:1382 #10 0x00d4d43b in start_thread () from /lib/libpthread.so.0 #11 0x001defde in clone () from /lib/libc.so.6 Thread 2 (Thread 61139856 (LWP 27238)): #0 0x00f3f402 in __kernel_vsyscall () #1 0x001d5413 in poll () from /lib/libc.so.6 #2 0x00563a1b in IA__g_poll (fds=0x9c81958, nfds=2, timeout=-1) at gpoll.c:127 #3 0x00556fb3 in g_main_context_iterate (context=0x9e8d600, block=1, dispatch=1, self=0x9c81930) at gmain.c:2761 #4 0x00557329 in IA__g_main_loop_run (loop=0x9eff2e0) at gmain.c:2656 #5 0x02be0b84 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #6 0x05e7a882 in gtk_startup (data=0x0) at gluezilla.cpp:468 #7 0x0057c0af in g_thread_create_proxy (data=0x9c81930) at gthread.c:635 #8 0x00d4d43b in start_thread () from /lib/libpthread.so.0 #9 0x001defde in clone () from /lib/libc.so.6 Thread 1 (Thread 2431216 (LWP 27235)): #0 0x00f3f402 in __kernel_vsyscall () #1 0x001dba97 in syscall () from /lib/libc.so.6 #2 0x0806c13a in mono_handle_native_sigsegv (signal=11, ctx=0xc42d0c) at mini-exceptions.c:1294 #3 0x08084051 in mono_arch_handle_altstack_exception (sigctx=0xc42d0c, fault_addr=0x0, stack_ovf=0) at exceptions-x86.c:855 #4 <signal handler called> #5 gluezilla_getWebNavigation (instance=0x9faa3f8) at gluezilla.cpp:301 #6 0x06feedfd in ?? () #7 0x09faa3f8 in ?? () #8 0xbfe939bc in ?? () #9 0x000758c0 in ?? () #10 0x00071880 in ?? () #11 0x00071880 in ?? () #12 0xbfe939c8 in ?? () #13 0x06feed48 in ?? () #14 0x09b74570 in ?? () #15 0x0004ce40 in ?? () #16 0x00071880 in ?? () #17 0x00000002 in ?? () #18 0x000758c0 in ?? () #19 0x00071880 in ?? () #20 0x00071880 in ?? () #21 0xbfe939b4 in ?? () #22 0x06feedd4 in ?? () #23 0xbfe939c8 in ?? () #24 0x06feed48 in ?? () #25 0x09faa3f8 in ?? () #26 0x01071880 in ?? () #27 0x0004ce40 in ?? () #28 0xbfe939e4 in ?? () #29 0x06feecc6 in ?? () #30 0x00071880 in ?? () #31 0xbfe939d8 in ?? () #32 0xbfe939f8 in ?? () #33 0x00071880 in ?? () #34 0x06d1f000 in ?? () #35 0xbfe939f8 in ?? () #36 0x06feec6d in ?? () #37 0x00071880 in ?? () #38 0x0004acc0 in ?? () #39 0x06d1f000 in ?? () #40 0xbfe93a08 in ?? () #41 0x06feec2e in ?? () #42 0x000758c0 in ?? () #43 0x06d1f000 in ?? () #44 0xbfe93a20 in ?? () #45 0x06feebf2 in ?? () #46 0x000758c0 in ?? () #47 0x06d1f000 in ?? () #48 0x0004acc0 in ?? () #49 0x00045700 in ?? () #50 0xbfe93a88 in ?? () #51 0x003796e7 in ?? () #52 0x000758c0 in ?? () #53 0x06d1f000 in ?? () #54 0x06d1f000 in ?? () #55 0xbfe93a98 in ?? () #56 0x0025206f in ?? () #57 0x000758c0 in ?? () #58 0xbfe93a64 in ?? () #59 0x000758c0 in ?? () #60 0x00000000 in ?? () #0 0x00f3f402 in __kernel_vsyscall () ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. =================================================================
_______________________________________________ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list