Gradle sync failed: Could not find kxml2.jar - javascript

I've encountered an error in my Gradle Log. It prevents my Android Studio App to deploy / do a Gradle sync.
Full Error Message:
Gradle sync failed: Could not find kxml2.jar (net.sf.kxml:kxml2:2.3.0).
Searched in the following locations:
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar
Consult IDE log for more details (Help | Show Log)
In this directory "C:/Program Files/Android/Android Studio/gradle/m2repository/net/sf/kxml/kxml2" is indeed no file named kxml2.jar.
Sloppily creating the file with no content, doesnt solve the Problem, expectedly.
And Google doesn't help me at all, so I need you help.
Elias
EDIT:
This is the full error Message from the idea.log:
2017-05-30 09:39:19,203 [ 145127] WARN - ect.sync.idea.ProjectSetUpTask -
2017-05-30 09:39:19,203 [ 145127] INFO - ect.sync.idea.ProjectSetUpTask - Could not find kxml2.jar (net.sf.kxml:kxml2:2.3.0).
Searched in the following locations:
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar
Consult IDE log for more details (Help | Show Log)
2017-05-30 09:39:19,203 [ 145127] INFO - e.project.sync.GradleSyncState - Sync with Gradle for project 'ShishaTobacco' failed: Could not find kxml2.jar (net.sf.kxml:kxml2:2.3.0).
Searched in the following locations:
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar
Consult IDE log for more details (Help | Show Log)
2017-05-30 09:39:19,252 [ 145176] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.
2017-05-30 09:39:19,253 [ 145177] INFO - #com.jetbrains.cidr.lang - Loading symbols finished in 0 s.
2017-05-30 09:39:19,255 [ 145179] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 0 s.
2017-05-30 09:39:19,255 [ 145179] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.
Edit 2:
I've just reinstalled Android Studio, now everything is working fine.

Related

Task Tracker Tutorial TypeError: null is not an object (evaluating 'projectRealm.write')

I've followed the Task Tracker tutorial for MongoDB Realm. The app is loading on an ios emulator. After sign in I navigate to the MyProject's Tasks page. I click on the + sign. The create a new task button pops up. I type in the New Task Name and click the Create Button. It does not create a new task. Instead I receive the following error on the emulator - Exception null is not an object(evaluation "projectRealm.write'). Further it shows a snippet from the code on TasksProvider.js however it is the exact code from the tutorial AND I can't see anything wrong with it.
Here is the code in question from my IDE:(the error on the emulator points to this line
projectRealm.write(() => {
Here is the larger code snippet:
const createTask = (newTaskName) => {
const projectRealm = realmRef.current;
projectRealm.write(() => {
// Create a new task in the same partition -- that is, in the same project.
projectRealm.create(
"Task",
new Task({
name: newTaskName || "New Task",
partition: projectPartition,
})
);
});
};
My terminal looks like this:
[Thu Mar 18 2021 11:43:04.126] BUNDLE ./index.js
[Thu Mar 18 2021 11:43:53.819] LOG Running "rn" with {"rootTag":1,"initialProps":{}}
[Thu Mar 18 2021 11:51:29.277] ERROR TypeError: null is not an object (evaluating 'projectRealm.write')
Please help if you can. I'm new to coding and I've been stuck on this for days. I've searched SO and Git, etc.
Thanks for reading this!
I think that the tutorial could be a bit clear.
I was getting the same error because I've created a realm app and set the appId pointing to that app in the getRealmApp.js, but that realm app didn't have the backend configuration, so every action in the app ended up on error.
In the project's README.md I found a link mentioning a "Set up the backend for the tutorial" so I followed that tutorial and changed the original appId for the appId asociated to the backend app and everything becomes to work.

Exception when starting axelor-erp, web on eclipse

I’m running at the first time axelor-erp (web project) on eclipse. I downloaded code from github, configured PostGreSql and then started the project using gradle.
When starting, I got this exception: Exception starting filter [guiceFilter]
org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [com.axelor.apps.base.tracking.GlobalAuditInterceptor] as strategy [org.hibernate.Interceptor]
Any help please?
Exception starting filter [guiceFilter]
org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [com.axelor.apps.base.tracking.GlobalAuditInterceptor] as strategy [org.hibernate.Interceptor]
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:126)
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:194)
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:152)
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:139)
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:133)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl$SessionFactoryOptionsStateStandardImpl.determineInterceptor(SessionFactoryBuilderImpl.java:794)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl$SessionFactoryOptionsStateStandardImpl.<init>(SessionFactoryBuilderImpl.java:610)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.<init>(SessionFactoryBuilderImpl.java:81)
at org.hibernate.boot.internal.MetadataImpl.getSessionFactoryBuilder(MetadataImpl.java:135)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:885)
at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:58)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
at com.google.inject.persist.jpa.JpaPersistService.start(JpaPersistService.java:110)
at com.google.inject.persist.PersistFilter.init(PersistFilter.java:77)
at com.google.inject.servlet.FilterDefinition.init(FilterDefinition.java:110)
at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:98)
at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:232)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:106)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4548)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5193)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2020-11-09 15:16:35.794 ERROR 11680 --- [ost-startStop-1] o.apache.catalina.core.StandardContext : One or more Filters failed to start. Full details will be found in the appropriate container log file
2020-11-09 15:16:35.794 ERROR 11680 --- [ost-startStop-1] o.apache.catalina.core.StandardContext : Context [/axelor-erp] startup failed due to previous errors
The back-end modules are not well configured with the project.

Nativescript - tns create test app errors

I created a test app with "tns create test" but it errors when I try to run it. Error: "Unfortunately, test app has stopped."
Please advice what I'm missing!
Thanks in advance,
ami
--
Error log:
https://www.dropbox.com/s/9mf26a8hdwcl3b4/Screenshot%202016-06-06%2022.41.48.png?dl=0
Test app code:
https://www.dropbox.com/sh/k8lkwoulh0k34ij/AAC7yTnMWIvGhWAF8lBQeUvra?dl=0
Command Logs:
# Ubuntu 16 LTS
# NODE, TNS, JAVA, ANDROID installed with: https://github.com/nraboy/ubuntu-nativescript-installer/blob/master/ubuntu_nativescript_installer.sh
dev#farm:~/test$ env
ANDROID_HOME=/opt/android-sdk
SHELL=/bin/bash
TERM=xterm
USER=dev
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin:/opt/node/bin:/opt/android-sdk/tools:/opt/android-sdk/platform-tools:/opt/genymobile/genymotion
PWD=/home/dev/test
JAVA_HOME=/usr/lib/jvm/default-java
NODE_HOME=/opt/node
......
dev#farm:~/test$ node --version
v4.4.5
dev#farm:~/test$ tns --version
2.0.1
dev#farm:~$ tns create test
Project test was successfully created.
dev#farm:~$ cd test
/home/dev/test
dev#farm:~/test$ tns install babel && tns platform add android
-
> nativescript-dev-babel#0.1.6 postinstall /home/dev/test/node_modules/nativescript-dev-babel
> node postinstall.js
babel-core#6.9.1 node_modules/babel-core
babel-messages#6.8.0
path-is-absolute#1.0.0
slash#1.0.0
babel-template#6.9.0
shebang-regex#1.0.0
path-exists#1.0.0
babel-helpers#6.8.0
private#0.1.6
convert-source-map#1.2.0
source-map#0.5.6
babylon#6.8.1
minimatch#2.0.10 (brace-expansion#1.1.4)
debug#2.2.0 (ms#0.7.1)
babel-types#6.9.1 (to-fast-properties#1.0.2, esutils#2.0.2)
babel-code-frame#6.8.0 (js-tokens#1.0.3, esutils#2.0.2, chalk#1.1.3)
babel-traverse#6.9.0 (globals#8.18.0, invariant#2.2.1)
json5#0.4.0
babel-generator#6.9.0 (detect-indent#3.0.1)
lodash#4.13.1
babel-register#6.9.0 (mkdirp#0.5.1, home-or-tmp#1.0.0, source-map-support#0.2.10, core-js#2.4.0)
babel-runtime#6.9.2 (regenerator-runtime#0.9.5, core-js#2.4.0)
nativescript-dev-babel#0.1.6 node_modules/nativescript-dev-babel
minimatch#3.0.0 (brace-expansion#1.1.4)
glob#5.0.15 (path-is-absolute#1.0.0, inherits#2.0.1, inflight#1.0.5, once#1.3.3)
nativescript-hook#0.2.1 (glob#6.0.4, mkdirp#0.5.1)
Copying template files...
\u25e1 Installing tns-androidbabel-traverse#6.9.0 node_modules/babel-traverse
babel-messages#6.8.0
globals#8.18.0
babylon#6.8.1
debug#2.2.0 (ms#0.7.1)
babel-types#6.9.1 (to-fast-properties#1.0.2, esutils#2.0.2)
invariant#2.2.1 (loose-envify#1.2.0)
babel-code-frame#6.8.0 (js-tokens#1.0.3, esutils#2.0.2, chalk#1.1.3)
lodash#4.13.1
babel-runtime#6.9.2 (regenerator-runtime#0.9.5, core-js#2.4.0)
Installing tns-androidbabel-types#6.9.1 node_modules/babel-types
to-fast-properties#1.0.2
esutils#2.0.2
lodash#4.13.1
babel-runtime#6.9.2 (regenerator-runtime#0.9.5, core-js#2.4.0)
Installing tns-androidbabylon#6.8.1 node_modules/babylon
babel-runtime#6.9.2 (regenerator-runtime#0.9.5, core-js#2.4.0)
Installing tns-androidfilewalker#0.1.2 node_modules/filewalker
fqueue#0.0.0
Installing tns-androidlazy#1.0.11 node_modules/lazy
Project successfully created.
dev#farm:~/test$ tns livesync android --watch --geny nexus5-emug
Successfully prepared plugin tns-core-modules for android.
Successfully prepared plugin tns-core-modules-widgets for android.
Project successfully prepared
Executing after-prepare hook from /home/dev/test/hooks/after-prepare/nativescript-dev-babel.js
Processing complete
Transferring project files...
Successfully transferred all project files.
Applying changes...
Successfully synced application org.nativescript.test on device 192.168.57.101:5555.
06-09 00:10:11.445 105 105 F DEBUG : #11 pc 00553d83 /data/app/org.nativescript.test-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::CompileIrregexp(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, bool)+675)
06-09 00:10:11.445 105 105 F DEBUG : #12 pc 00553fd5 /data/app/org.nativescript.test-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::IrregexpPrepare(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>)+165)
06-09 00:10:11.445 105 105 F DEBUG : #13 pc 005544f3 /data/app/org.nativescript.test-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::IrregexpExec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>)+51)
06-09 00:10:11.445 105 105 F DEBUG : #14 pc 005546a0 /data/app/org.nativescript.test-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::Exec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>)+144)
Error! I uninstall app from geny and try this:
dev#farm:~/test$ tns platform remove android
Platform android successfully removed.
dev#farm:~/test$ tns platform add android
Copying template files...
Project successfully created.
dev#farm:~/test$ tns run android --watch --geny nexus5-emug
Successfully prepared plugin tns-core-modules for android.
Successfully prepared plugin tns-core-modules-widgets for android.
Project successfully prepared
Executing after-prepare hook from /home/dev/test/hooks/after-prepare/nativescript-dev-babel.js
Processing complete
:config phase: createDefaultIncludeFiles
+found plugins: tns-core-modules-widgets
+ creating include.gradle file for /home/dev/test/platforms/android/configurations/tns-core-modules-widgets
Renaming plugin directory to flavor name: /home/dev/test/platforms/android/src/tns-core-modules-widgets -> /home/dev/test/platforms/android/src/F0
:config phase: createPluginsConfigFile
Creating product flavors include.gradle file in /home/dev/test/platforms/android/configurations folder...
:config phase: pluginExtend
+applying configuration from: /home/dev/test/platforms/android/configurations/tns-core-modules-widgets/include.gradle
+applying configuration from: /home/dev/test/platforms/android/configurations/include.gradle
:config phase: copyAarDependencies
:config phase: addAarDependencies
+adding dependency: /home/dev/test/platforms/android/libs/aar/widgets-release.aar
:preBuild UP-TO-DATE
:preF0DebugBuild UP-TO-DATE
:checkF0DebugManifest
:preF0ReleaseBuild UP-TO-DATE
:prepareComAndroidSupportAnimatedVectorDrawable2340Library
:prepareComAndroidSupportAppcompatV72340Library
:prepareComAndroidSupportSupportV42340Library
:prepareComAndroidSupportSupportVectorDrawable2340Library
:prepareWidgetsReleaseLibrary
:prepareF0DebugDependencies
:compileF0DebugAidl
:compileF0DebugRenderscript
:generateF0DebugBuildConfig
:cleanLocalAarFiles
:ensureMetadataOutDir
:collectAllJars
:setProperties
:asbg:generateInterfaceNamesList
:asbg:runAstParser
couldn't find logDirectory so it will be created in place:/home/dev/test/platforms/android/build-tools/android-static-binding-generator/ast-parser/logs/i.txt
inputDir: /home/dev/test/platforms/android/src/main/assets/app
outFile: ../bindings.txt
:asbg:generateBindings
:generateF0DebugAssets UP-TO-DATE
:mergeF0DebugAssets
:generateF0DebugResValues
:generateF0DebugResources
:mergeF0DebugResources
:processF0DebugManifest
:processF0DebugResources
:generateF0DebugSources
:compileF0DebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:compileF0DebugNdk UP-TO-DATE
:compileF0DebugSources
:buildMetadata
'assets/metadata/treeNodeStream.dat' NOT FOUND
'assets/metadata/treeStringsStream.dat' NOT FOUND
'assets/metadata/treeValueStream.dat' NOT FOUND
'assets/metadata/treeNodeStream.dat'...
'assets/metadata/treeStringsStream.dat'...
'assets/metadata/treeValueStream.dat'...
:transformClassesWithDexForF0Debug
:mergeF0DebugJniLibFolders
:transformNative_libsWithMergeJniLibsForF0Debug
:processF0DebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForF0Debug
:validateDebugSigning
:packageF0Debug
:zipalignF0Debug
:assembleF0Debug
:assembleDebug
:deleteExplodedAarFolder
:buildapk
BUILD SUCCESSFUL
Total time: 39.405 secs
This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.8/userguide/gradle_daemon.html
Project successfully built
Successfully deployed on device with identifier '192.168.57.101:5555'.
06-09 11:29:39.549 105 105 F DEBUG : #11 pc 00553d83 /data/app/org.nativescript.test-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::CompileIrregexp(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, bool)+675)
06-09 11:29:39.549 105 105 F DEBUG : #12 pc 00553fd5 /data/app/org.nativescript.test-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::IrregexpPrepare(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>)+165)
06-09 11:29:39.549 105 105 F DEBUG : #13 pc 005544f3 /data/app/org.nativescript.test-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::IrregexpExec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>)+51)
06-09 11:29:39.549 105 105 F DEBUG : #14 pc 005546a0 /data/app/org.nativescript.test-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::Exec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>)+144)
Error!
In your rootFolder/platforms/android you have a build.gradle file :
In this file (which is generated) you should have a "defaultConfig" property which might look like this :
android {
...
defaultConfig {
minSdkVersion 17
targetSdkVersion computeTargetSdkVersion()
}
...
}
Update this code and add an "applicationId" property
defaultConfig {
minSdkVersion 17
targetSdkVersion computeTargetSdkVersion()
applicationId "com.stackoverflow.yourpackage"
}
By the way , this is how i fixed this but i have no idea why this generated file needs to be manually updated

How to inspect result of `node --prof` on x64 MacOS X 10.7?

I try to profile my node.js script at CLI.
As written at https://code.google.com/p/v8/wiki/V8Profiler, or http://blog.arc90.com/2012/03/05/profiling-node-programs-on-mac-os-x/ a do:
$ node --prof my_script.js
All ok, I get file named v8.log with bunch of lines.
But then in inspection tools all go wrong.
$ tools/mac-tick-processor v8.log
show to me
Statistical profiling result from v8.log, (298 ticks, 237 unaccounted, 0 excluded).
and empty JavaScript section.
[JavaScript]:
ticks total nonlib name
Also I try https://github.com/bnoordhuis/node-profiler, but get some results too.
How I can work with --prof results?
$ node -v
v0.8.18
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.7.4
BuildVersion: 11E53
As suggested by #Dogbert you can use github.com/sidorares/node-tick
Feel free to create pull request if you missing any functionality. I haven't updated it for quite a while and it still seems to work
After Node 4.4.0:
node --prof-process isolate-0xnnnnnnnnnnnn-v8.log > processed.txt
From: https://nodejs.org/en/docs/guides/simple-profiling/

Node.js, Cygwin and Socket.io walk into a bar... Node.js throws ENOBUFS and everyone dies

I'm hoping someone here can help me out, I'm not having much luck figuring this out myself. I'm running node.js version 0.3.1 on Cygwin. I'm using Connect and Socket.io. I seem to be having some random problems with DNS or something, I haven't quite figured it out. The end result is that I the server is running fine, but when a browser attempts to connect to it the initial HTTP Request works, Socket.io connects, and then the server dies (output below).
I don't think it has anything to do with the HTTP request because the server gets a lot data posted to it, and it was receiving requests and responding up until my connection that killed it. I've googled around and the closest thing I've found is DNS being set improperly. It's a network program meant to run only on an internal network, so I've set the nameserver x.x.x.x in my /etc/resolv.conf to the internal DNS. I've also added nameserver 8.8.8.8 in addition. I'm not sure what else to check, but would be grateful of any help.
In node.exe.stackdump
Exception: STATUS_ACCESS_VIOLATION at eip=610C51B9
eax=00000000 ebx=00000001 ecx=00000000 edx=00000308 esi=00000000 edi=010FCCB0
ebp=010FCAEC esp=010FCAC4 program=\\?\E:\cygwin\usr\local\bin\node.exe, pid 3296, thread unknown (0xBEC)
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
010FCAEC 610C51B9 (00000000, 00000000, 00000000, 00000000)
010FCBFC 610C5B55 (00000000, 00000000, 00000000, 00000000)
010FCCBC 610C693A (FFFFFFFF, FFFFFFFF, 750334F3, FFFFFFFE)
010FCD0C 61027CB2 (00000002, F4B994D5, 010FCE64, 00000002)
010FCD98 76306B59 (00000002, 010FCDD4, 763069A4, 00000002)
End of stack trace
Node Output:
node.js:50
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ENOBUFS, No buffer space available
at doConnect (net.js:642:19)
at net.js:803:9
at dns.js:166:30
at IOWatcher.callback (dns.js:48:15)
EDIT
I'm hitting an LDAP server using http.createClient immediately after a client connects to get information, and that seems to be where the problem is that is causing ENOBUFS. I've edited the source to include && errno != ENOBUFS which now prevents the server from dying, however now the LDAP request isn't working. I'm not sure what the problem is that would cause that though. As I mentioned this is an internal only application, so I set the DNS servers in /etc/resolv.conf to the DNS servers that are being applied to the host machine. Not sure if this is part of the issue?
EDIT 2
Here's some output from gdb --args ./node_g --debug ../myscript.js. I'm not sure if this is related to ENOBUFS, however, as it seems to be disconnecting immediately after connection with Socket.io
[New thread 672.0x100]
Error: dll starting at 0x76e30000 not found.
Error: dll starting at 0x76250000 not found.
Error: dll starting at 0x76e30000 not found.
Error: dll starting at 0x76f50000 not found.
[New thread 672.0xc90]
[New thread 672.0x448]
debugger listening on port 5858
[New thread 672.0xbf4]
14 Jan 18:48:57 - socket.io ready - accepting connections
[New thread 672.0xed4]
[New thread 672.0xd68]
[New thread 672.0x1244]
[New thread 672.0xf14]
14 Jan 18:49:02 - Initializing client with transport "websocket"
assertion "b[1] == 0" failed: file "../src/node.cc", line 933, function: ssize_t
node::DecodeWrite(char*, size_t, v8::Handle<v8::Value>, node::encoding)
Program received signal SIGABRT, Aborted.
0x7724f861 in ntdll!RtlUpdateClonedSRWLock ()
from /cygdrive/c/Windows/system32/ntdll.dll
(gdb) backtrace
#0 0x7724f861 in ntdll!RtlUpdateClonedSRWLock ()
from /cygdrive/c/Windows/system32/ntdll.dll
#1 0x7724f861 in ntdll!RtlUpdateClonedSRWLock ()
from /cygdrive/c/Windows/system32/ntdll.dll
#2 0x75030816 in WaitForSingleObjectEx ()
from /cygdrive/c/Windows/syswow64/KernelBase.dll
#3 0x0000035c in ?? ()
#4 0x00000000 in ?? ()
(gdb)
OK, I digged around a bit, and after your second edit I found this bug on the issue list.
I doesn't state whether this was encountered under cygwin or not, but the error that it is hitting leads down to this piece of code:
uint16_t * twobytebuf = new uint16_t[buflen];
str->Write(twobytebuf, 0, buflen, String::HINT_MANY_WRITES_EXPECTED);
for (size_t i = 0; i < buflen; i++) {
unsigned char *b = reinterpret_cast<unsigned char*>(&twobytebuf[i]);
assert(b[1] == 0); // this assertion fails
buf[i] = b[0];
}
From what I can read (with my rusted C) it will convert it will create a new uin16 array and write the contents of the V8 string in their, then it will ensure that casting did not write any values outside the range of 0 - 255, and that's exactly what fails here.
I couldn't find anything regarding whether this is a V8 issue or not.
Since the code was added in this commit, the only thing I can suggest here is to try pulling the tree from a commit before the code was added. Since all versions after that have the crashing code.
If that works, I would recommend you to file another bug report on the issue Node.js issue list, although I made do this later this day.
Very hard to answer this one but +1 for the subject line.
Node.js comes with a test suite along with the main build, have you run that? I had built node successfully but because I'd omitted OpenSSL my web socket tests were failing. Install/rebuild fixed it. The test projects helped me diagnose the issue.
suggest doing "make test" as http://nodejs.org/#download describes.

Categories

Resources