text:
AjvResolver cannot handle $schema or $id keys

Describe the bug
When using the AjvResolver, it throws errors when the json-schema has a $schema key.
Removing those keys from the schema is the current workaround to get it working.
To Reproduce
Steps to reproduce the behavior:
The example in the README.md file does not contain a $schema key.
Add it to this example, and watch it 🔥
Codesandbox link (Required)
Include a codesandbox will help us to investigate the issue quicker:
https://codesandbox.io/s/custom-hook-with-resolver-v7-forked-pbh05l?file=/src/App.js
Expected behavior
The $schema key (as well as $id) are official keys according to the json-schema spec.
The resolver should not fail if these keys are present.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: MacOS Monterey
Browser: Firefox
Version 102

Currently not supported, please send a feature request instead and we will monitor how many users would like to support this.

repo: react-hook-form/resolvers


text:
fatal build failures in tvOS project

Opening this issue because I see there is an example app which uses tvOS and yet using this library causes fatal build errors.
Anyone have any experience with this issue and know what is the workaround?

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
React Native 0.61.5 crashed whenever I install any version of AsyncStorage

Current behavior
React Native 0.61.5 crashed whenever I install any version of AsyncStorage

Expected behavior
It should not crash

#Device
Tested on Android
How do I sort this out? What version am I going to use? Are there any tweak I need to do?

I sorted it out by manually linking the package, weird, I thought it is automatically linked. Anyways it is all okay now.

I sorted it out by manually linking the package, weird, I thought it is automatically linked. Anyways it is all okay now.

would you mind give more detail on how to link it manually on iOS?

authors: nateblog theanhmx

repo: react-native-community/async-storage


text:
Usage with CodePush

What would you like to be added
This is more of a question, I need help figuring out how the optimal workflow would be in our case.
We're using RN with AppCenter's CodePush and therefore we rarely update the native part of iOS/Android. We'd still want to be able to run E2E tests (using Detox) automatically in our pipes but it feels redundant to build the native apps if there isn't any change.
The only solution I could figure out would be to detect before running the build part if there is a diff in the ios or android folder. If there is, build and test like normally. But if there isn't, we could get the bundle somehow (this is the part I'm not sure with) and install it to the simulator/emulator. On mount we'd receive the latest CodePush version and start the E2E tests.
What other possible workflows can you guys think of? If none, any ideas how we could install the app in the simulators?

hello, thanks for asking.

The only solution I could figure out would be to detect before running the build part if there is a diff in the ios or android folder

this likely won't catch all the changes you're interested in: eg. when you update a dependency that includes native code, that code lives in node_modules/xyz/ios(android). Maybe the safest way is to invert the change detection: if the only changes on a branch are in your src folder where your javascript code lives, then consider the branch as one where you don't need to build the native code.

we could get the bundle somehow (this is the part I'm not sure with) and install it to the simulator/emulator. On mount we'd receive the latest CodePush version and start the E2E tests.

You could probably publish the changes to a specific codepush deployment (that means you'd have per-branch deployments and so you'd have many of them) and download the update upon app start up.
Alternatively, what can be done is this: build the javascript bundle using npx react-native bundle. If you're using hermes you'll also need to transform that using hermesc (see here).
Then on android, you'd take an old apk, unzip it, replace the bundle with the new one, and create a new apk with the new application bundle.
On iOS, I'm not sure how that would be done but on simulator I think it ought to be doable.
Another thing you can look at are the functions here (android) / sourceURLForBridge (ios) functions that control where to load the app bundle from.
Hope this helps!

authors: gunnartorfis vonovak


text:
feat(events): Add support to Android

Description
Added support for the following events on Android

RNDeviceInfo_batteryLevelDidChange
RNDeviceInfo_batteryLevelIsLow
RNDeviceInfo_powerStateDidChange

Checklist

[X] I have tested this on a device/simulator for each compatible OS
[X] I added the documentation in README.md
[ ] I mentioned this change in CHANGELOG.md
[ ] I updated the typings files (deviceinfo.d.ts, deviceinfo.js.flow)
[ ] I updated the dummy web/test polyfill (default/index.js)
[ ] I added a sample use of the API (example/App.js)

One thing that I'd like to discuss, is that Android generally show battery low at 15%.
The documentation currently says the battery low event is triggered at 20%, so to keep it consistent with iOS, I am also triggering the event at 20%.
Should we update the code and documentation to say that Android will trigger at 15%?

This looks fantastic - I'm dreaming of presenting more information (exposing most of https://developer.android.com/reference/android/os/BatteryManager.html is possible) but this is a great parallel implementation to the original iOS PR. Let me look at it more closely and test it but on a first scan I don't see anything wrong :muscle:

I was tempted to add the rest, but feature parity and all.

I'm -1 on feature parity. I just don't see how it's possible when the APIs themselves diverge. I'm more interested in return value shape and something that is consumable easily but where return object members are optional and documented as such.
'device-info' to me means 'anything device-specific information we can expose', and I would rather give devs more information than try to pretend all platforms are the same. That's where I'm at currently philosophically anyway.
The location providers interface is an example based on that philosophy - it's just not available information on one of the platforms but why not expose it from the other so devs at least have a chance to behave differently based on it?

maybe worth mentioning I am also not completionist - if a PR exposes some information we did not have before, in a way that can expand (if possible) to hold more data from one platform than the other, but doesn't have everything? Sweet. Can get more later...

Not sure what needs to be added to the flow/typescript types and example, as getPowerState() already exists in all of these.

Not sure what needs to be added to the flow/typescript types and example, as getPowerState() already exists in all of these.

Realized that after I made the comment as I was dozing off for the night 🤦♂  :-) - but I didn't see the power state come in on my emulator in App.js at least so I need to look a bit more at the example
I see what you mean about the blank vs unknown for first trigger, I want it triggered at first too.
I'll scan through this again this morning. Thanks @Johan-dutoit !

I believe it didn't appear on android because I left out the ||  OS === 'android' bit 😅
if (OS === 'ios' || OS === 'android') {
    return RNDeviceInfo.getPowerState();	    return RNDeviceInfo.getPowerState();
  }	  }

Sweet - I checked this all and it worked for me. I noticed it didn't have a sync version and I don't see why it couldn't? So I hacked that in, what do you think? It's your branch so if you don't like it feel free to git reset --hard HEAD~1 and force push it back out. Either way I think it's good to merge now so after you choose, go for merge (and release if you want - feature so, 3.1.0)

source: gharchive/pull-request

authors: Johan-dutoit mikehardy


text:
package use deprecated "rnpm"

Requesting update for next releases.
The packages use deprecated "rnpm" config that will stop working from next release of React-native. Please give a release update for the same.
React-Native 6.0 have some breathtaking changes like:

completely removing "rnpm" in next release.

AndroidX migration for mantained support lib version. All the support libs are updated to jetpack AndroidX. you can check these changes here.

These changes seems mandatory and I will be great if I can help you on same.

Any update on this?

same problem.

same problem

Seems to have been solved by ce99dd3ab201f16f55394ce85d003454afda59e5 they just hasn't released it to npm yet

When will this be released? The fix looks like it has been in for a while on master.

@vonovak Any update on this?

released in v3, thanks

authors: Shanie1331 ajiehatajie anniewey cdownard joaopaulorefatti lindskogen rajesh8005 vonovak


text:
Revert "android google map callout support  (#3035)"

This reverts commit 27c0e60b6c007819ef99523fcd7f8b1704ecb5f5.
PR #3035

Why revert image support on callout ?

authors: christopherdro kperreau


text:
Maintenance

Is there anyone left to maintain this library?
react-native-svg has been broken in the latest react-native for over a week (npm publishing mistake, OOM errors, and color conversion error) and there hasn't been any response to issues or emails.
We need at least someone in the community who can merge PRs and publish fixes to npm.

There are a few of us, yes. If you'd like to help, see this post: https://github.com/react-native-community/react-native-svg/pull/486#issuecomment-342358990

I have switched to own fork as I can fix it asap, the reaction to bugs and PRs is rather slow.

@algotrader Apologies, we’re trying to get more help. This is a community repo, so we depend on community help.

I understand. I have decent JS skills and Android. I can help with JS code and resolving Android issues

That would be much appreciated! Please see this post

Ok, went through outstanding PRs and got quite a few of them merged. @dantman Going to close this now that we have some traction going forward :)

authors: AlgoTrader dantman dustinsavery

repo: react-native-community/react-native-svg

license: mit

license_source: bigquery


text:
Android app crashes when video loaded - Audio issue ?

Hi !
Just got this weird error , thanks in advance.
Current behavior
Android App crashes when videos are loaded
Reproduction steps
// package.json
 "dependencies": {
    "aws-amplify": "^1.0.8",
    "aws-amplify-react-native": "^2.0.0",
    "react": "16.4.1",
    "react-native": "0.56.0",
    "react-native-progress": "^3.5.0",
    "react-native-vector-icons": "^5.0.0",
    "react-native-video": "^3.0.0",
    "react-navigation": "^2.12.1",
    "react-waterfall": "^4.0.0"
  },

// linking with
$ react-native link
Scanning folders for symlinks in /Users/javierhack/Documents/dev/learning_projects/react-native/ReactNativeReduxCasts_start/albums/node_modules (23ms)
rnpm-install info Platform 'ios' module react-native-vector-icons is already linked
rnpm-install info Platform 'android' module react-native-vector-icons is already linked
rnpm-install info Platform 'ios' module react-native-video is already linked
rnpm-install info Platform 'android' module react-native-video is already linked
rnpm-install info Linking assets to ios project
rnpm-install info Linking assets to android project
rnpm-install info Assets have been successfully linked to your project
// video.js
<Video
     source={{ uri: 'https://s3-sa-east-1.amazonaws.com/albums-userfiles-mobilehub-405038094/public/PlaneOverhead.mp4' }}
      style={{ width: 300, height: 300 }}
      muted={true}
      resizeMode="contain"
      onError={this.handleError}
      onLoadStart={this.handleLoadStart}
      onLoad={this.handleLoad}
      onProgress={this.handleProgress}
      onEnd={this.handleEnd}
      onBuffer={this.handleBuffer}
      paused={true}
      ref={ref => this.player = ref}
/>

Note:
If I remove the style prop,
<Video
     source={{ uri: 'https://s3-sa-east-1.amazonaws.com/albums-userfiles-mobilehub-405038094/public/PlaneOverhead.mp4' }}

      muted={true}
      resizeMode="contain"
      onError={this.handleError}
      onLoadStart={this.handleLoadStart}
      onLoad={this.handleLoad}
      onProgress={this.handleProgress}
      onEnd={this.handleEnd}
      onBuffer={this.handleBuffer}
      paused={true}
      ref={ref => this.player = ref}
/>

it is loaded and does not crashes, as shown in the callback run for onLoad={this.handleLoad}
handleLoad = (metaData) => {
       // Alert.alert('The Movie has been loaded! metaDat: ', metaData);
       console.warn('The Movie has been loaded! metaDat: ', metaData);
      ...
   }

// logcat console
9-06 12:15:35.676 29669-29669/com.albums D/ReactExoplayerView: onStateChanged: playWhenReady=false, playbackState=ready
09-06 12:15:35.691 29669-29722/com.albums W/ReactNativeJS: 'The Movie has been loaded! metaDat: ', { canStepForward: true,
      canStepBackward: true,
      canPlayReverse: true,
      canPlaySlowForward: true,
      canPlayFastForward: true,
      textTracks: [],
      naturalSize: { orientation: 'landscape', height: 1080, width: 1920 },
      canPlaySlowReverse: true,
      currentTime: 0,
      duration: 12.91 }

Expected behavior
Video is loaded and shown, paused and muted.
Platform

Android ExoPlayer

Video sample
https://s3-sa-east-1.amazonaws.com/albums-userfiles-mobilehub-405038094/public/PlaneOverhead.mp4
Logccat dump
09-06 12:10:28.128 29320-29320/com.albums I/ExoPlayerImpl: Init 91d2c9c [ExoPlayerLib/2.7.3] [generic_x86_64, Android SDK built for x86_64, unknown, 23]
09-06 12:10:28.133 1644-1802/system_process I/MediaFocusControl:  AudioFocus  requestAudioFocus() from android.media.AudioManager@613a7acom.brentvatne.exoplayer.ReactExoplayerView{d93422b V.E...... ......I. 0,0-0,0} req=1flags=0x0
09-06 12:10:28.134 29320-29320/com.albums D/ReactExoplayerView: onStateChanged: playWhenReady=true, playbackState=idle
09-06 12:10:28.135 29320-29320/com.albums D/ReactExoplayerView: onStateChanged: playWhenReady=false, playbackState=idle
09-06 12:10:28.162 29320-29320/com.albums I/ExoPlayerImpl: Init e1e7688 [ExoPlayerLib/2.7.3] [generic_x86_64, Android SDK built for x86_64, unknown, 23]
09-06 12:10:28.165 1644-2155/system_process I/MediaFocusControl:  AudioFocus  requestAudioFocus() from android.media.AudioManager@613a7acom.brentvatne.exoplayer.ReactExoplayerView{3b88446 V.E...... ......I. 0,0-0,0} req=1flags=0x0
09-06 12:10:28.166 29320-29320/com.albums D/ReactExoplayerView: onStateChanged: playWhenReady=true, playbackState=idle
onStateChanged: playWhenReady=false, playbackState=idle
09-06 12:10:28.168 29320-29320/com.albums D/AudioManager: AudioManager dispatching onAudioFocusChange(-1) for android.media.AudioManager@613a7acom.brentvatne.exoplayer.ReactExoplayerView{d93422b V.E...... ......I. 0,0-0,0}
09-06 12:10:28.179 29320-29320/com.albums I/ExoPlayerImpl: Init 201d607 [ExoPlayerLib/2.7.3] [generic_x86_64, Android SDK built for x86_64, unknown, 23]
09-06 12:10:28.183 1644-3708/system_process I/MediaFocusControl:  AudioFocus  requestAudioFocus() from android.media.AudioManager@613a7acom.brentvatne.exoplayer.ReactExoplayerView{fcb155d V.E...... ......I. 0,0-0,0} req=1flags=0x0
09-06 12:10:28.185 29320-29320/com.albums D/ReactExoplayerView: onStateChanged: playWhenReady=true, playbackState=idle
onStateChanged: playWhenReady=false, playbackState=idle
09-06 12:10:28.186 29320-29320/com.albums D/AudioManager: AudioManager dispatching onAudioFocusChange(-1) for android.media.AudioManager@613a7acom.brentvatne.exoplayer.ReactExoplayerView{3b88446 V.E...... ......I. 0,0-0,0}
09-06 12:10:28.255 29320-29320/com.albums D/ReactExoplayerView: onStateChanged: playWhenReady=false, playbackState=buffering
09-06 12:10:28.256 29320-29320/com.albums D/ReactExoplayerView: onStateChanged: playWhenReady=false, playbackState=buffering
09-06 12:10:28.258 29320-29320/com.albums D/ReactExoplayerView: onStateChanged: playWhenReady=false, playbackState=buffering
09-06 12:10:28.304 29320-29387/com.albums D/SoLoader: About to load: libimagepipeline.so
libimagepipeline.so not found on /data/data/com.albums/lib-main
Result 0 for libimagepipeline.so in source com.facebook.soloader.ApkSoSource[root = /data/data/com.albums/lib-main flags = 1]
Extraction logs: null
09-06 12:10:28.322 29320-29387/com.albums D/SoLoader: Loaded: libimagepipeline.so
09-06 12:10:28.688 29320-29381/com.albums W/VideoCapabilities: Unrecognized profile/level 0/0 for video/mpeg2
Unrecognized profile/level 0/2 for video/mpeg2
Unrecognized profile/level 0/3 for video/mpeg2
09-06 12:10:28.727 29320-29381/com.albums I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
09-06 12:10:28.756 29320-29399/com.albums I/OMXClient: Using client-side OMX mux.
09-06 12:10:28.761 29320-29400/com.albums I/OMXClient: Using client-side OMX mux.
09-06 12:10:28.766 29320-29401/com.albums I/OMXClient: Using client-side OMX mux.
09-06 12:10:28.792 29320-29399/com.albums D/SoftAVCDec: Number of CPU cores: 4
09-06 12:10:28.827 29320-29397/com.albums I/MediaCodec: [OMX.google.h264.decoder] setting surface generation to 30023681
09-06 12:10:28.851 29320-29400/com.albums D/SoftAVCDec: Number of CPU cores: 4
09-06 12:10:28.851 29320-29399/com.albums W/OMXNodeInstance: [1:google.h264.decoder] component does not support metadata mode; using fallback
09-06 12:10:28.852 29320-29399/com.albums E/ACodec: [OMX.google.h264.decoder] storeMetaDataInBuffers failed w/ err -1010
09-06 12:10:28.863 29320-29401/com.albums D/SoftAVCDec: Number of CPU cores: 4
09-06 12:10:28.863 29320-29399/com.albums D/SoftAVCDec: Number of CPU cores: 4
09-06 12:10:28.885 29320-29398/com.albums I/MediaCodec: [OMX.google.h264.decoder] setting surface generation to 30023682
09-06 12:10:28.886 29320-29401/com.albums W/OMXNodeInstance: [1:google.h264.decoder] component does not support metadata mode; using fallback
09-06 12:10:28.886 29320-29401/com.albums E/ACodec: [OMX.google.h264.decoder] storeMetaDataInBuffers failed w/ err -1010
09-06 12:10:28.896 29320-29401/com.albums D/SoftAVCDec: Number of CPU cores: 4
09-06 12:10:28.917 29320-29396/com.albums I/MediaCodec: [OMX.google.h264.decoder] setting surface generation to 30023683
09-06 12:10:28.920 29320-29330/com.albums I/art: Background sticky concurrent mark sweep GC freed 7258(314KB) AllocSpace objects, 1(16KB) LOS objects, 0% free, 5MB/5MB, paused 10.072ms total 67.060ms
09-06 12:10:28.920 29320-29400/com.albums W/OMXNodeInstance: [1:google.h264.decoder] component does not support metadata mode; using fallback
09-06 12:10:28.920 29320-29400/com.albums E/ACodec: [OMX.google.h264.decoder] storeMetaDataInBuffers failed w/ err -1010
09-06 12:10:28.921 29320-29399/com.albums E/OMXNodeInstance: setConfig(1:google.h264.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
09-06 12:10:28.921 29320-29399/com.albums I/ACodec: codec does not support config priority (err -2147483648)
09-06 12:10:28.921 29320-29401/com.albums E/OMXNodeInstance: setConfig(1:google.h264.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
09-06 12:10:28.922 29320-29401/com.albums I/ACodec: codec does not support config priority (err -2147483648)
09-06 12:10:28.926 29320-29400/com.albums D/SoftAVCDec: Number of CPU cores: 4
09-06 12:10:28.928 29320-29400/com.albums E/OMXNodeInstance: setConfig(1:google.h264.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
09-06 12:10:28.928 29320-29400/com.albums I/ACodec: codec does not support config priority (err -2147483648)
09-06 12:10:29.013 29320-29330/com.albums W/art: Suspending all threads took: 7.665ms
09-06 12:10:29.015 29320-29410/com.albums I/OMXClient: Using client-side OMX mux.
09-06 12:10:29.036 29320-29411/com.albums I/OMXClient: Using client-side OMX mux.
09-06 12:10:29.037 29320-29330/com.albums I/art: Background partial concurrent mark sweep GC freed 3096(110KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 6MB/10MB, paused 22.263ms total 106.853ms
09-06 12:10:29.039 29320-29412/com.albums I/OMXClient: Using client-side OMX mux.
09-06 12:10:29.113 29320-29410/com.albums E/OMXNodeInstance: setConfig(1:google.aac.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
09-06 12:10:29.113 29320-29410/com.albums I/ACodec: codec does not support config priority (err -2147483648)
09-06 12:10:29.148 29320-29417/com.albums I/SoftAAC2: limiting to stereo output
09-06 12:10:29.157 29320-29417/com.albums I/SoftAAC2: Reconfiguring decoder: 0->44100 Hz, 0->2 channels
09-06 12:10:29.233 29320-29412/com.albums E/OMXNodeInstance: setConfig(1:google.aac.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
09-06 12:10:29.233 29320-29412/com.albums I/ACodec: codec does not support config priority (err -2147483648)
09-06 12:10:29.281 29320-29425/com.albums I/SoftAAC2: limiting to stereo output
09-06 12:10:29.286 29320-29425/com.albums I/SoftAAC2: Reconfiguring decoder: 0->44100 Hz, 0->2 channels
09-06 12:10:29.294 29320-29411/com.albums E/OMXNodeInstance: setConfig(1:google.aac.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
09-06 12:10:29.294 29320-29411/com.albums I/ACodec: codec does not support config priority (err -2147483648)
09-06 12:10:29.322 1253-1285/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 3112960
09-06 12:10:29.328 29320-29432/com.albums I/SoftAAC2: limiting to stereo output
09-06 12:10:29.339 29320-29432/com.albums I/SoftAAC2: Reconfiguring decoder: 0->44100 Hz, 0->2 channels
--------- beginning of crash

09-06 12:10:29.381 29320-29396/com.albums A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0xc14e1000 in tid 29396 (MediaCodec_loop)
09-06 12:10:29.433 1356-1356/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Android/sdk_google_phone_x86_64/generic_x86_64:6.0/MASTER/4931947:userdebug/test-keys'
Revision: '0'
09-06 12:10:29.434 1356-1356/? A/DEBUG: ABI: 'x86'
09-06 12:10:29.437 1356-1356/? A/DEBUG: pid: 29320, tid: 29396, name: MediaCodec_loop  >>> com.albums <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xc14e1000
09-06 12:10:29.448 1356-1356/? A/DEBUG:     eax 002f7600  ebx ea168eb4  ecx 000af980  edx ea206f3c
09-06 12:10:29.449 1356-1356/? A/DEBUG:     esi bf7c1000  edi c14e1000
xcs 00000023  xds 0000002b  xes 0000002b  xfs 00000177  xss 0000002b
eip ea162a38  ebp 003fffc4  esp d893b0b4  flags 00210202
09-06 12:10:29.451 1356-1356/? A/DEBUG: backtrace:
#00 pc 00002a38  /system/lib/libOpenglSystemCommon.so (goldfish_dma_write(goldfish_dma_context*, void*, unsigned int)+56)
#01 pc 00003853  /system/lib/libOpenglSystemCommon.so (ExtendedRCEncoderContext::lockAndWriteDma(void*, unsigned int)+67)
#02 pc 00003062  /system/lib/lib_renderControl_enc.so
#03 pc 0000314e  /system/lib/hw/gralloc.ranchu.so
#04 pc 00009e67  /system/lib/libui.so (android::GraphicBufferMapper::unlock(native_handle const*)+71)
#05 pc 0012987d  /system/lib/libstagefright.so (android::SoftwareRenderer::render(void const*, unsigned int, long long, long long, void*, android::spandroid::AMessage const&)+813)
#06 pc 000dec7e  /system/lib/libstagefright.so (android::MediaCodec::onReleaseOutputBuffer(android::spandroid::AMessage const&)+670)
09-06 12:10:29.452 1356-1356/? A/DEBUG:     #07 pc 000da678  /system/lib/libstagefright.so (android::MediaCodec::onMessageReceived(android::spandroid::AMessage const&)+6920)
#08 pc 0000c9b9  /system/lib/libstagefright_foundation.so (android::AHandler::deliverMessage(android::spandroid::AMessage const&)+41)
#09 pc 00010ed2  /system/lib/libstagefright_foundation.so (android::AMessage::deliver()+114)
#10 pc 0000ddef  /system/lib/libstagefright_foundation.so (android::ALooper::loop()+463)
#11 pc 0000e7a3  /system/lib/libstagefright_foundation.so (android::ALooper::LooperThread::threadLoop()+35)
#12 pc 00014aac  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+418)
#13 pc 0006bfae  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+98)
#14 pc 000141cf  /system/lib/libutils.so (thread_data_t::trampoline(thread_data_t const*)+122)
#15 pc 00081923  /system/lib/libc.so (__pthread_start(void*)+56)
#16 pc 000227f2  /system/lib/libc.so (__start_thread+25)
#17 pc 000170b6  /system/lib/libc.so (__bionic_clone+70)
--------- beginning of system

09-06 12:10:29.762 1644-29454/system_process W/ActivityManager:   Force finishing activity com.albums/.MainActivity
09-06 12:10:29.762 1356-1356/? A/DEBUG: Tombstone written to: /data/tombstones/tombstone_03
09-06 12:10:29.762 1356-1356/? E/DEBUG: AM write failed: Broken pipe
09-06 12:10:29.762 1644-1663/system_process I/BootReceiver: Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
09-06 12:10:29.774 1253-2046/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 1327104
09-06 12:10:29.799 1644-29454/system_process E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 112)
09-06 12:10:29.800 1644-29454/system_process W/ActivityManager: Exception thrown during pause
android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:727)
at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:867)
at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2907)
at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2763)
at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2755)
at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11971)
at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11867)
at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12556)
at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12063)
at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
09-06 12:10:29.805 1644-1665/system_process E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 60)
09-06 12:10:29.808 1251-1251/? E/lowmemorykiller: Error writing /proc/29320/oom_score_adj; errno=22
09-06 12:10:29.825 1644-1652/system_process W/JavaBinder: Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
09-06 12:10:29.826 1644-1652/system_process W/JavaBinder: Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
09-06 12:10:29.827 1644-1652/system_process W/JavaBinder: Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
09-06 12:10:29.828 1644-1652/system_process W/JavaBinder: Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
09-06 12:10:29.829 1644-1652/system_process W/JavaBinder: Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
09-06 12:10:29.830 1644-1652/system_process W/JavaBinder: Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
09-06 12:10:29.832 1644-1652/system_process W/JavaBinder: Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
09-06 12:10:29.834 1644-1686/system_process W/InputDispatcher: channel 'bdf276 com.albums/com.albums.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
09-06 12:10:29.834 1644-1686/system_process E/InputDispatcher: channel 'bdf276 com.albums/com.albums.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
09-06 12:10:29.837 1644-1652/system_process W/JavaBinder: Binder has been finalized when calling linkToDeath() with recip=0x7f7a6e51bf78)
09-06 12:10:29.849 1365-1365/? I/Zygote: Process 29320 exited due to signal (11)
09-06 12:10:29.856 1644-2055/system_process W/MediaFocusControl:   AudioFocus   audio focus client died
09-06 12:10:29.857 1644-2055/system_process I/MediaFocusControl: AudioFocus  removeFocusStackEntry(): removing entry for android.os.BinderProxy@d5ffbf1
09-06 12:10:29.857 1644-2213/system_process I/ActivityManager: Process com.albums (pid 29320) has died
09-06 12:10:29.857 1644-2055/system_process I/MediaFocusControl: AudioFocus  removeFocusStackEntry(): removing entry for android.os.BinderProxy@d5ffbf1
AudioFocus  removeFocusStackEntry(): removing entry for android.os.BinderProxy@d5ffbf1
09-06 12:10:29.857 1644-2055/system_process W/MediaFocusControl:   AudioFocus   audio focus client died
AudioFocus   audio focus client died
09-06 12:10:29.857 1644-18742/system_process D/GraphicsStats: Buffer count: 3
09-06 12:10:29.920 1644-2155/system_process I/WindowState: WIN DEATH: Window{bdf276 u0 com.albums/com.albums.MainActivity}
09-06 12:10:29.920 1644-2155/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel 'bdf276 com.albums/com.albums.MainActivity (server)'
09-06 12:10:29.921 1644-3708/system_process I/WindowState: WIN DEATH: Window{e07e3d6 u0 SurfaceView}
09-06 12:10:29.923 1644-1658/system_process I/WindowState: WIN DEATH: Window{e4b6657 u0 SurfaceView}
09-06 12:10:29.924 1644-1806/system_process I/WindowState: WIN DEATH: Window{d934544 u0 SurfaceView}
09-06 12:10:29.928 1644-10088/system_process I/OpenGLRenderer: Initialized EGL, version 1.4
09-06 12:10:29.935 1644-10088/system_process D/EGL_emulation: eglCreateContext: 0x7f7a580bbd60: maj 3 min 0 rcv 3
09-06 12:10:29.947 1644-10088/system_process D/EGL_emulation: eglMakeCurrent: 0x7f7a580bbd60: ver 3 0 (tinfo 0x7f7a574b78e0)
09-06 12:10:29.948 1644-10088/system_process E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
glUtilsParamSize: unknow param 0x00008824
09-06 12:10:29.950 2429-2808/com.google.android.gms W/art: Long monitor contention event with owner method=boolean ozo.a(ozn, android.content.ServiceConnection, java.lang.String) from :com.google.android.gms@12874027@12.8.74 (040800-204998136):4 waiters=1 for 104ms
09-06 12:10:29.989 1644-10088/system_process D/EGL_emulation: eglMakeCurrent: 0x7f7a580bbd60: ver 3 0 (tinfo 0x7f7a574b78e0)
09-06 12:10:30.043 1644-7693/system_process I/AccountManagerService: getTypesVisibleToCaller: isPermitted? true
09-06 12:10:30.052 1644-18735/system_process I/AccountManagerService: getTypesVisibleToCaller: isPermitted? true
09-06 12:10:30.100 1644-2055/system_process I/AccountManagerService: getTypesVisibleToCaller: isPermitted? true
09-06 12:10:30.127 1644-18735/system_process I/AccountManagerService: getTypesVisibleToCaller: isPermitted? true
09-06 12:10:30.136 1644-18735/system_process I/AccountManagerService: getTypesVisibleToCaller: isPermitted? true
09-06 12:10:30.155 2035-2216/com.android.launcher3 D/EGL_emulation: eglMakeCurrent: 0x7f7a69961d20: ver 3 0 (tinfo 0x7f7a699428e0)
09-06 12:10:30.158 1644-1657/system_process I/AccountManagerService: getTypesVisibleToCaller: isPermitted? true
09-06 12:10:30.678 1644-1665/system_process W/WindowAnimator: Failed to dispatch window animation state change.
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:603)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
Failed to dispatch window animation state change.
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:603)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
09-06 12:10:30.679 1644-1665/system_process W/WindowAnimator: Failed to dispatch window animation state change.
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:603)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
Failed to dispatch window animation state change.
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:603)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
09-06 12:10:31.251 1360-1711/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 15914474 , only wrote 15776748

@jhackGC seeing the exact same behavior on different CPUs, did you find any way around this?

Hey @andyschwob  I dont think I understand the question, I found a solution changing the AVD CPU architecture from 64 to 32 bits, like said here: "it only fails when the AVD has a x86_64 CPU assigned, if you use the same AVD config, but change it to have a x86 CPU instead, it works fine "
pls clarify the question, you have the same behavior for all CPUs mentioned x86 and x86_64?
Cheers

I tested in emulator Android 6.0 with CPU x86_64 and the crash is real, on x86 the video loads perfectly.

it is failing on USB connect device too

authors: Venkat1P andyschwob iagorm jhackGC


text:
[iOS] Unable to set transparent background

After upgrading to 5.6.1 from 5.4.1 I'm no longer able to set a transparent background on a WebView.
I think it broke in 319a86e2361ac0161cbe2897a907d43b085029fc
The background is always white.

I have confirmed that the commit I referenced is the cause and the specific line is https://github.com/react-native-community/react-native-webview/commit/319a86e2361ac0161cbe2897a907d43b085029fc#diff-a32cd1cea4d19bbfff56369224e62299R18 where the webview's container style has backgroundColor set to white.

Thanks for the report. Please could you send in a PR to remove this. @Titozzz do you know the reason for making the style change?

I hadn't sent a PR yet because I wasn't sure of the reason for the change. I'm not sure if it's needed for something on Android.
If it's safe to remove, I'll submit a PR to remove the backgroundColor style.

authors: Ehesp maxschmeling


text:
fix(Workaround for MAC address in android 11)

Description
Workaround for MAC address in android 11
Fixes #1248

Updated getMacAddressSync method to add workaround for getting mac address in android 11
Compatibility

OS
Implemented

Android
✅

Checklist

[ X] I have tested this on a device/simulator for each compatible OS

Hi there! Thanks for proposing this. I believe I understand it but you have included no discussion or information about the solution at all.
Can you please describe the actual problem you are solving, your approach to solving it, and how this code does so?

Android 11 doesn't provide MAC address of the device , as a workaround we can deduce the device wifi mac address from the ipv6 address provided by the device

authors: mikehardy rohitshampur-dev


text:
[IOS] Can't play Flac file and Urls

When I try to play flac audio I get this error.
Track player can't play flac?

As far as I know the iOS version of RNTP does indeed not support FLAC. You could try using ALAC instead.

authors: Yu-sooho puckey


text:
Calculate device internet data usage

Is there any way to calculate cellular or wifi data usage or some kind of statistics?
For eg I have this kind of requirement, If I click on button named "Start" the data usage calculation should start and when I press "Stop" button, then a label should show how much data I have used.
Can I get any help from this package?

What you want is based on a very special user permission:
https://developer.android.com/reference/android/app/usage/UsageStatsManager
I'm guessing this package won't support it and you would want to make your own module

It would be android specific if based on that, for ios you would have to directly parse information from the interfaces apparently https://stackoverflow.com/questions/14436172/realtime-network-statistics-on-ios
I would potentially be interested in this if you proposed it as a feature or as a separate module, you could tag me in

Sure I'll tag you if I'll create one.
Thanks for the help @mikehardy

@mikehardy We are also interested to this, we have a requirement to show the app's data usage inside the profile screen (especially the cellular one which in some countries is expensive).
Thanks a lot!
P.S. If you happen to know any dedicated package created for this purpose please let us know. Thanks!

I'm unaware of any progress in the area, but also I have not looked, sorry. I would still be interested if there was progress though, same as before (but, nearly a year later :-) ) - feel free to @ me if you discover something. Cheers

@mikehardy @matt-oakes Hello, would you be interested to implement this with a fee (for both Android and iOS)? Our company would like to get a quote for this, where would you like us to contact you? Thanks!

any updates?

@ThanhNguyen140797 I haven't seen any here, do you see any here? Do you have a PR you would like us to review?

@ThanhNguyen140797 I haven't seen any here, do you see any here? Do you have a PR you would like us to review?

No, I don't. I'm going to implement this feature that show celluar usage data.

@ThanhNguyen140797 I haven't seen any here, do you see any here? Do you have a PR you would like us to review?

No, I don't. I'm going to implement feature show cellular usage data.

authors: ThanhNguyen140797 afilp mikehardy mitesh-db mitjnextt thanhnn-bap-jp


text:
swipe to back inside drawer

Is there anyway to enable swipe to go back inside a drawer navigation? I wrapped my app around a drawer navigation and in just one screen I want that when i swipe from left to right it goes back, thats how most apps work on iOS, but i couldnt figure out how to do that, btw i know i can change drawerLockMode to lock the drawer from opening, but I wasnt able to go back on swipe yet

Hi @diego-lipinski-de-castro,
you can do this https://reactnavigation.org/docs/en/navigation-options-resolution.html#a-drawer-has-a-stack-inside-of-it-and-you-want-to-lock-the-drawer-on-certain-screens

authors: diego-lipinski-de-castro eriveltonelias


text:
MaterialTopBarNavigator orientation change bug

Current Behavior
I have implemented a basic navigation layout with one materialTopTabNavigator with some simple screens.
When I change the rotation of the device back to portrait (bellow I have attached a short screencast about the current behaviour - it also happens on actual devices) it seems that the previous screen pops back in front of the current one, and I can't even navigate back to the current one, just to the previous, which is already partly visible.
Here is a video about the current behaviour
Expected Behavior
I would expect it to go back to the original layout, without the previous screen in the view.
How to reproduce
I have uploaded all the code to a public repo
Your Environment

software
version

react-navigation
3.8.1

react-native
0.59.5

node
8.9.3

npm
6.9.0

Please install and use the latest react-navigation-tabs which shouldn't have the bug.

repo: react-navigation/react-navigation-tabs


text:
Module parse failed button\theme.css

I copied the basic button implementation from the react-toolbox website and it seems to give an error in the react-toolbox theme. Please see the screenshot for the error.
My index.js file
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'react-toolbox/lib/button';
ReactDOM.render(
<Button label="Hello World!" />,
     document.getElementById('app') );
My webpack.config.js file
var HTMLWebpackPlugin = require('html-webpack-plugin');
var HTMLWebpackPluginConfig = new HTMLWebpackPlugin({
	template: __dirname + '/app/index.html',
	filename: 'index.html',
inject: 'body' });
module.exports = {
entry: __dirname + '/app/index.js',
module: {
	loaders: [
		{
			test: /\.js$/,
			exclude: /node_modules/,
			loader: 'babel-loader'
		}
	]
},
output: {
	filename: 'transformed.js',
	path: __dirname+'/build'
},
plugins: [HTMLWebpackPluginConfig]

};
and the package.json file
   {   "name": "react2",   "version": "1.0.0",   "description": "",   "main": "index.js",   "scripts": {     "build": "webpack",     "start": "webpack-dev-server"   },   "author": "",   "license": "ISC",   "dependencies": {     "react": "^15.4.2",     "react-dom": "^15.4.2",     "react-toolbox": "^2.0.0-beta.7"   },   "devDependencies": {     "babel-core": "^6.23.1",     "babel-loader": "^6.3.2",     "babel-preset-react": "^6.23.0",     "html-webpack-plugin": "^2.28.0",     "webpack": "^2.2.1",     "webpack-dev-server": "^2.4.1"   } }
This is the error

Am i missing something? Because all the website says is npm install --save react-toolbox, nothing more.
Note - npm build runs fine. npm start gives the error.
Please guide :)

In your webpack config you need to handle the css, you only have the loader for the .js files. You have an example here: https://github.com/react-toolbox/react-toolbox-example

authors: Bryze rubenmoya

repo: react-toolbox/react-toolbox


text:
Snackbar.label should be either a string or a React.Element

Would make Snackbar labels much nicer to work with. My use case is simply to add some syntax highlighting to Snackbar labels
All that needs to be done is make label's proptypes:
PropTypes.oneOfType([
  PropTypes.string,
  PropTypes.element
]),

Alternatively Snackbar could use children as the same thing [but that would be a breaking change], or have both.
Not sure if making tiny PRs like that is shunned here or not.

Done!


text:
fix: clear apollo client cache after placing an order as an authenticated user

Resolves #302
Impact: minor
Type: bugfix
Summary
Clear Apollo Client cache after placing an order as an authenticated user.
Testing

Login as admin
Place an order
Verify cart page & mini cart do NOT contain cart items

@willopez I don't think this PR caused this issue but I'm seeing the following error while trying to check out.
Uncaught (in promise) Error: GraphQL error: No such token: tok_1DCIYmBuk6WT0RO5NFT6ikQo
    at new ApolloError (ApolloError.js:43)
    at Object.next (QueryManager.js:103)
    at notifySubscription (Observable.js:126)
    at onNotify (Observable.js:161)
    at SubscriptionObserver.next (Observable.js:215)
    at notifySubscription (Observable.js:126)
    at onNotify (Observable.js:161)
    at SubscriptionObserver.next (Observable.js:215)
    at Object.next (index.js:26)
    at notifySubscription (Observable.js:126)

I tried checking out from Reaction and it seems to work fine there.

@mikemurray That error is most likely cause by having different API keys in reaction and the starterkit. Make sure your are using the same Stripe publishable key on both reaction and starterkit.

authors: mikemurray willopez


text:
Restyle logo width to make translations easier

Currently, the width of the logo is fixed at calc(100% / 6) so that the nav links are flush with the search bar:

Unfortunately, this leads to cut-offs in some translations with longer words in the nav bar:

We're currently solving this by just adjusting the width of the logo, but it would be nice to have a solution that doesn't require hard-coding the logo width (e.g. just making the nav bar flush against the search bar)
I'll probably fix it myself when I have time but I figured I'd put this up here in case anyone wants to take a look.

Hi, I would be interested in taking a look at this issue. Thanks!

Added PR #1860 for review, thank you!

same issues repo vi.reactjs.org
Text current

After translate to vietnamese

@tesseralis @tuantvk
Hello, I would like to work on this issue. This will be my first contribution to oss.
@kevjin
You have worked on this issue before, would you mind if I took over?

Thank you. I try it!

is this issue resolved i ? I would like to work on this issue

is this issue resolved ? . Can i please know the status of the issue so that i can take over it?

Please note that we're going to replace this site with https://beta.reactjs.org/ soon so we don't really plan to make changes to the old one.

authors: abhay27chauhan harish-sethuraman kevjin nigiiro-taro tesseralis tuantvk yashbujji


text:
Fix command for initializing tsconfig

Project dependency doesn't add itself it global PATH. So call tsc will work either with globally installed typescript, or from npm/yarn script.

Good catch, just let's add another command for Yarn, for consistency with the text, i.e.

If you use Yarn, run:

yarn run tsc --init

If you use npm, run:
npx tsc --init

@vvscode thank you!


text:
update to latest conferences

moved latest conferences to past section
added latest ReactEurope 2020

@katcita thank you!


text:
[Beta] Add ARIA labels

This will improve accessibility for screen readers. I've checked with Lighthouse locally.

Would you like look into these as well?

I'll take a look.

I've solved ARIA label issues. I'll solve other accessibility issues in another pull request.

authors: harish-sethuraman shamwela


text:
fix error close tag

here has an error close tag
I have fixed it

issue 1

这个没问题啊

authors: ZuccRoger yuqingc


text:
OPDS catalogs: cannot past a URL anymore

Just copy a URL somewhere and try pasting in in the text field. Impossible

related to #390

Pierre is right, duplicate of https://github.com/readium/readium-desktop/issues/390

authors: danielweck llemeurfr panaC

repo: readium/readium-desktop


text:
Expose fd in client for use with epoll

We're in an environment with a bunch of data sources, almost all of which use epoll in order to know when to wake up.
In order to get the best latency in an Aeron client we have to busy spin. That unfortunately negatively impacts everything else that wants to use epoll.
Would it be possible to expose a file descriptor in the client (possibly to the mmaped image?) that would allow an aeron client to get plugged in to epoll and play nice in a more diverse environment?
Thoughts much appreciated!

It sounds to me like you have core contention on your host, as otherwise I can't see why aeron spinning would adversely affect the latency of other processes running on the host (epolling or not).
Assuming you do have core contention, then i'd suggest re-evaluating whether the hardware has the capacity you need for the latency you are wanting to achieve. You can use csets to provide dedicated cores for the media driver, and consider moving to 1 core rather than 3 for the media driver to partition the hardware resources more appropriately.
Another thing to consider would be alternative network hardware with kernel bypass drivers, which has the advantage of reduced context switches and interrupts, lower CPU use, lower latency, and dedicated ports for the aeron traffic.

Thanks for the reply. I probably didn't explain well. I have a single-threaded process that gets other data via epoll that I also want to use aeron with. It does work if I'm smart about polling, but was wondering about the possibility of getting everything into epoll.

Wrapping a client agent invoker + polling mechanism into a duty cycle that also calls epoll for a set of FDs is not too hard to do and can be quite efficient. Instead of having Aeron indicate data by triggering an FD, you can simply call Subscription::poll and the client agent invoker from your duty cycle. i.e. instead of waiting on epoll, poll it, then poll Aeorn and agent invoker, and then if no work to do, use an idle strategy with a backoff. It's essentially what epoll does anyway in many cases with active FDs.

Another option to consider is is to put the connections into non-blocking mode and busy poll everything.

Agree that I can do this as you've suggested- closing.

authors: cesaref lukepalmer mjpt777 tmontgomery

repo: real-logic/aeron


text:
Add support for HTTP Basic Auth for HTTP asset uploads.

Currently, Tundra HttpAssetProvider can do HTTP uploads only if the destination allows HTTP PUT commands without authorization. Add support for specifying HTTP credentials in a HttpAssetStorage.

I would also like to see custom header map that would be put as the PUT headers. For example some REST APIs use custom headers to do auth and all sorts of things. Maybe this generic map of headers would solve the auth issue as well, the calling script could prefill it.
I'd also like me to have "http://example.com/upload/" storage, id like to upload something there without the upload process automatically assuming the asset is now in http://example.com/upload/filename. I'd suggest inspecting "Location" header when the PUT returns and reading if the location of the created asset was somewhere else. This is problematic though as the upload transfer actually uses the storage to make the full url, so for any "Location" header youd need to create new in mem storage to the system and switch the storage ptr in the transfer. Anyhow i feel this should be supported so one can do services that actually put the assets where it likes and simply returns where it put the file.

authors: jonnenauha juj

repo: realXtend/naali


text:
RealmSwift Object DynamicList referenced from: expected in: crash

dyld: Symbol not found: _TFC10RealmSwift6Object11dynamicListfS0_FSSGCS_4ListCS_13DynamicObject
Referenced from: /var/mobile/Containers/Bundle/Application/15474483-948F-49BF-BC63-E0F396D14D69/LGCY.app/LGCY
Expected in: /private/var/mobile/Containers/Bundle/Application/15474483-948F-49BF-BC63-E0F396D14D69/LGCY.app/Frameworks/RealmSwift.framework/RealmSwift
in /var/mobile/Containers/Bundle/Application/15474483-948F-49BF-BC63-E0F396D14D69/LGCY.app/LGCY
This started to occur after I updated to RealmSwift 0.96.1
I run my app, the app immediately crashes and this shows up in the log

A little more info: Running xcode 7.1, on El Capitan 11.1, and iOS 9.1
I was able to fix it by removing RealmSwift from my podfile, updating, then add it again to the podfile and pod install

Glad your resolved whatever this was.

repo: realm/realm-cocoa


text:
Storing Swift strings array from server response

I am using Realm + ObjectMapper in Swift.
I am blocked at storing String array in Realm.
Here is the response JSON -
{
"options_set":
                        {
                            "name": "color",
                            "values": [
                                "Blau",
                                "Weiß",
                                "Rot",
                                "Grün"
                            ]
                        }
}

I have used this code for the model.
public class SPProductOptionSet:Object, Mappable {
    public dynamic var name: String?
    public var options = List<Value>()

    required convenience public init?(_ map: Map) {
        self.init()
    }

    public func mapping(map: Map) {
        name        <- map["name"]
        options     <- (map["values"],ListTransform<Value>())
    }
}

public class Value: Object, Mappable {
    public dynamic var value: String?

    required convenience public init?(_ map: Map) {
        self.init()
    }

    public func mapping(map: Map) {
     //   value       <- (map["values"]) // tried without this as well
    }
}

Please correct me if I am doing anything wrong. Looking for a quick solution.

@jazz-mobility
What do you think the following code?
First, store map["values"] to local variable. It is an array of strings. Then fill a string values to the `List.
public class SPProductOptionSet: Object, Mappable {
    public dynamic var name: String?
    public let options = List<Value>() // Should be declared with `let`

    required convenience public init?(_ map: Map) {
        self.init()
    }

    public func mapping(map: Map) {
        name <- map["name"]

        var options: [String]? = nil
        options <- map["values"] // Maps to local variable

        options?.forEach { option in // Then fill options to `List`
            let value = Value()
            value.value = option
            self.options.append(value)
        }
    }
}

public class Value: Object {
    public dynamic var value: String?
}

Thanks @kishikawakatsumi worked like a charm. Exactly what i was looking for.

authors: jazz-mobility kishikawakatsumi


text:
Property does not exist

I am facing this issue while sorting with keypath after upgrading swift version.
When I am using swift 3 and realm 2.10.1, it was working well.
Now I upgraded them, but it stopped to work with following message.
Terminating app due to uncaught exception 'RLMException', reason: 'Cannot sort on key path 'titleForSort': property 'Book.titleForSort' does not exist.'
This is my current code.
..........
let books = realm.objects(Book.self)
return books.sorted(byKeyPath: "titleForSort", ascending: true)
...............
Realm framework version: 3.17.3
Xcode version: 10.3
Swift version :5
iOS/OSX version: 12.3

What does the definition of your Book class look like?

Closing this issue due to no response. Feel free to reopen if additional information can be provided.

authors: dalba1992 stennie tgoyne


text:
RFC git submodules

Problem
When developing/testing features, there is often a need to use different version of reana-commons and other shared packages when compared to their released versions. For example:

reana-commons @ pr-123
reana-workflow-controller @ pr-124
reana-client @ pr-125

This requires to (i) rebuild and redeploy cluster components with new reana-commons dependency; (ii) redeploy the client with new reana-commons.
The former is the object of this RFC. The latter is easy.
Technique
We don't want to release reana-commons v0.5.0.devYYYYMMDD and friends on PyPI too often, so we want to install the package from Git sources.
A technique I have been using locally goes roughly as follows:

Get wanted sources:

$ reana-dev git-checkout -b r-commons 123
$ reana-dev git-checkout -b r-w-controller 124
$ reana-dev git-checkout -b r-client 125

Verify sources:

$ reana-dev git-status

Upgrade client:

$ reana-dev install-client

Upgrade cluster:

$ cd reana-workflow-controller
$ rsync -az ../reana-commons .
$ vim Dockerfile
$ # add a line like follows:
$ # RUN pip install ./reana-commons --upgrade
$ reana-dev docker-build -c .
$ reana-dev kubectl-delete-pod -c .

Test wanted feature:

$ cd reana-demo-root6-roofit
$ reana-dev run-example

Wash our bowl:

$ cd reana-workflow-controller
$ rm -rf ./reana-commons
$ git reset --hard

This technique works well, but has a disadvantage of having to modify Dockerfile manually.
Proposal
What is being done above is basically emulating what git submodules do natively.
Hence this RFC: what about treating reana-commons, reana-db and any other shared packages as real git submodules?
Pros:

Simplifies building of cluster components with any development versions of anything.
Avoids manual editing of sources in pull requests.
Avoids making PyPI development releases if they are not really necessary.

Cons:

Using git submodules or subtrees makes the development process more error prone. Care should be taken so that commits to shared repositories are made strictly there.

Let's ponder the pros/cons IRL for simplicity?

First, I'll put up a demo "mimicking" the git submodule functionality so that the above-described built process will be automated.
Later, we can go for "real" submodules and group various component repositories under cluster.

Note: we are generally happy with git-submodules mimicking style, so closing this issue.  Can reopen if we would like to change one day.

repo: reanahub/reana


text:
don't create links to nonexistent directories

file:symlink will happily create links to nonexistent directories but we don't want those showing up in the _build tree

Actually, I think we do. It originally didn't, but some of those dirs are created after prv_compile runs. Like priv might not exist until a Makefile post compile hook runs that builds the library to priv/.

i didn't consider hooks. i guess non-existent directories might just be something we have to live with?

authors: talentdeficit tsloughter


text:
Take into account content negotiation with GET-requests

POST-headers are apparently taken into account when caching requests, but not for GET-requests.
In the case of content negotiation with GET-requests, it would be useful if the cache could take into account at least the Accept-header, allowing to case responses in different formats for the same URI.

+1
requests.get('some_link', headers={'Accept':'application/json'})
requests.get('some_link', headers={'Accept':'application/xml'})

Will both return results in json as the second request was taken from cache :(

Added option to include headers to cache key: include_get_headers (bool)
By default it's disabled for compatibility with existing code.
See usage example in tests
test_cache.py#L304-L325

See also: #389, #387

authors: JWCook mhermans mnowotka reclosedev

repo: reclosedev/requests-cache


text:
Please invite me to the Recode-Hive GitHub Community Organization

Name
Mahak Garg
Discord Username (if applicable)
Mahak008
Additional Context
No response

Invitation sent to join the GitHub Organisation. Welcome to the community 🎉
Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see. You can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/recodehive/people

repo: recodehive/Support


text:
#185 Fixed popup rendering on Android

Issues
See - https://github.com/recogito/text-annotator-js/issues/185#issuecomment-2545199474
In the https://github.com/recogito/text-annotator-js/pull/123 I made the popup presence check resilient to the underlying collapsed ranges in the target's selectors.
However, it caused a timing regression on Android. When the annotation is processed in the popup's useEffect, the target and its bounds aren't yet populated.
https://github.com/recogito/text-annotator-js/blob/5b9abad31724db14d473f7d363b295a967cd93b7/packages/text-annotator-react/src/TextAnnotationPopup/TextAnnotationPopup.tsx#L95-L98

Also, the timing of the selection change event that populates the target differs on Android:

Android
Mac

Changes Made
I added a check for the selectors' presence on the annotation's target. That way, the effect will react properly to their addition and re-run the bounds querying.

I need to look at this tomorrow with a fresh mind (it's been a long day). But whatever you did - it's working, thanks! :-)

authors: oleksandr-danylchenko rsimon

repo: recogito/text-annotator-js


text:
Batch processing and numeric key

When using Batch() with numeric keys in array body, everything is replaced by other keys due to $params = array_merge($params, $req->getBodyParameters()) in RequestBatchArray() method
So numeric keys can not be used
Regards

Can you please give a sample code of such a usage?

Not tested but should fail with error unknown property 0
$client = new Client('--my-database-id--', '--my-secret-token--');
$client->send(new Reqs\AddItemProperty('price', 'double'));
$client->send(new Reqs\AddItemProperty(45, 'int'));

$requests = array();
for($i=0; $i<NUM; $i++)
{
    $itemId = "computer-{$i}";
    $r = new Reqs\SetItemValues(
      $itemId,
      //values:
      [
        'price' => rand(15000, 25000),
        45 => rand(1, 8),
      ],
      //optional parameters:
      ['cascadeCreate' => true] // Use cascadeCreate for creating item
                                 // with given itemId, if it doesn't exist]
    );
    array_push($requests, $r);
}

$result =  $client->send(new Reqs\Batch($requests));
var_dump($result);

@lwillems But the names of the properties (columns) can only be strings, so this is not valid anyway, right?

https://github.com/recombee/php-api-client/pull/12

i was not aware of string only, is it in documentation ?

https://docs.recombee.com/api.html#add-item-property states, that propertyName must is a string.
I think that what is not very nice, is that the endpoint silently converted 45 to "45" and created the property, instead of returning HTTP 400. This should be fixed in the API.

authors: OndraFiedler lwillems

repo: recombee/php-api-client


text:
Medulla Demos 06/24

Summary
Medulla Demos
The goal of this ticket is to record what will be demo'd for Medulla Demos 06/24.
Everyone who will demo, should add a comment to this issue detailing what you will be demoing on 06/24.
We will do this in standup as well.

Demo By: Keith Becker
Title: Workflow Designer Demo
What will be in the demo:
A workflow designer for designing actionable scripts where each action has input ports, and output ports. You can draw a line from one output port to any other input port on an action. The Action controller will make sure to route the data, and run the actions.

Discussions would be a better area for stuff like this, specifically the show and tell category

Tried to convert it but it gave an error
Unable to convert this issue to a discussion. Category is not accessible to the actor

repo: recro/medulla


text:
All pagination to continue without state.

Allow stateless servers to return a continuation token and then use the token to continue the iteration.

@BrydenOliver Can you further explain how the current code doesn't meet your expectations? I'm happy to review and merge this but I want to fully understand the problem.

Ok, so we are using Recurly behind our own web service. So what happens is a request comes into our web service for the first page (200 items) of our list, so we call Accounts.List() and then retrieve the first page from Recurly. We then want to return to our caller with a continuationtoken so they can continue from where they finished.
There is a continuationtoken returned by Recurly, the client library just hides it right now.
So when our caller then wants the next page we have no continuationtoken or any method to continue the iteration. That's what the changes do, just expose that again.

@bhelx Explanation above. Thanks.

@BrydenOliver I have confirmed that all uses of RecurlyList indeed use pagination with a similar token. You can read more about it in the pagination documentation.
If you want to go ahead and edit this PR to abstract the token getter out to RecurlyList, we can go ahead and get this reviewed and merged.

Closing this out due to inactivity. Please feel free to re-open with the continue method in RecurlyList instead of AccountList.

authors: BrydenOliver aaron-suarez bhelx

repo: recurly/recurly-client-net


text:
[Sync]: ODH incubation to RHOAI main

Description

https://issues.redhat.com/browse/RHOAIENG-9806
https://issues.redhat.com/browse/RHOAIENG-10647

How Has This Been Tested?

local build: quay.io/wenzhou/rhods-operator-catalog:v2.13.0-1
Screenshot or short clip

Merge criteria

[ ] You have read the contributors guide.
[ ] Commit messages are meaningful - have a clear and concise summary and detailed explanation of what was changed and why.
[ ] Pull Request contains a description of the solution, a link to the JIRA issue, and to any dependent or related Pull Request.
[ ] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[ ] The developer has manually tested the changes and verified that the changes work

/test rhods-operator-e2e

repo: red-hat-data-services/rhods-operator


text:
sync downstream with upstream devel

sync downstream with upstream devel

/cc @nixpanic @Madhu-1

/lgtm

authors: Rakshith-R nixpanic

repo: red-hat-storage/ceph-csi


text:
Topology: Add sidebar for NodeKind resources

WIP: in order to test this PR, you need this https://github.com/red-hat-storage/odf-console/pull/621 and follow the same instructions mentioned there.

@bipuladh @SanjalKatiyar @GowthamShanmugam @debjyoti-pandit

/assign @bipuladh

/assign @SanjalKatiyar

/retest

/lgtm
/approve

authors: alfonsomthd bipuladh

repo: red-hat-storage/odf-console


text:
Multi-level wildcard

Client a subscribe the topic " a/#", and client b publish to "a/topic1/b", but client a can not receive message.
I don't know what is the reason, please help, thanks.

Which broker are you using ?
https://github.com/redboltz/mqtt_cpp/blob/master/example/broker.cpp works as I expected.

no_tls_client.cpp
set_connack_handler  -->  c->subscribe("a/#", MQTT_NS::qos::at_most_once);
set_suback_handler  -->  c->publish("a/topic1/b", "test1", MQTT_NS::qos::at_most_once);
I tested in this way

no_tls_client.cpp is client. The client does not do something about wildcard.
It is broker's responsibilty.

authors: joeevon redboltz


text:
Wrong positioned floating thumb?

I set up my RecyclerView as README writes, but finding the thumb view has a wrong position. Like this:

It's about that I press the letter 'M' (middle of the screen), the thumb starts showing from the top. And then keep sliding the letters on right side, the thumb also follows, starts going down. It always has a half-screen distance between the pressed letter and the thumb.
My XML:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
>
    <androidx.recyclerview.widget.RecyclerView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/recycler_view"
    />
    <com.reddit.indicatorfastscroll.FastScrollerView
            android:layout_width="32dp"
            android:layout_height="match_parent"
            android:id="@+id/fast_scroller"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent"
    />
    <com.reddit.indicatorfastscroll.FastScrollerThumbView
            android:id="@+id/fast_scroller_thumb"
            android:layout_width="40dp"
            android:layout_height="match_parent"
            android:layout_marginEnd="16dp"
            app:layout_constraintBottom_toBottomOf="@+id/fast_scroller"
            app:layout_constraintEnd_toStartOf="@+id/fast_scroller"
            app:layout_constraintTop_toTopOf="@+id/fast_scroller"
    />
</androidx.constraintlayout.widget.ConstraintLayout>

Recently I have also faced this issue and I solved it by changing the FastScrollerThumbView tag id from fast_scroller_thumb to something else. I don't why but it seems that if you used the same id as the FastScrollerThumbView library layout id i.e. fast_scroller_thumb  then it triggers this positioning issue.

Oh thanks for the info! Now I got it worked!

I don't know why I picked this conflicted ID for the thumb view... But just having solved it, I can close this issue.

repo: reddit/IndicatorFastScroll


text:
Expose FramebackController and emit events

Request instance available via FramebackController.getCurrent()
Events emitted:

showFrame
hideFrame

LGTM

authors: gigabo roblg

repo: redfin/react-server


text:
Add maven deployment task

This provides an independent maven deployment task (to run after build) and has also been integrated into JBS.
This also removes the 'tag' task which used to tag the images in quay.io with the sha of the GAVs.

/lgtm

repo: redhat-appstudio/jvm-build-service


text:
RHTAPINST-126: Multiple OS Support

Using os/user package to discovery the user's home directory, that's supported for multiple operating systems.

/lgtm

authors: otaviof xinredhat

repo: redhat-appstudio/rhtap-cli


text:
chore(RHTAPWATCH-381): add tests for fetch-uj-records.sh

implementing tests for fetch-uj-records.sh, currenly only for 5 out of 8 queries in querygen
Issue ticket number and link
RHTAPWATCH-381
Type of change
Adding tests for scripts/fetch-uj-records.sh
How Has This Been Tested?
Testing can be found at /fetch-uj-records/fetch-uj-records_test.go.
manually picked and loaded logs into a container with a local splunk server, then the logs were retrieved by the script running in the local environment.
to activate the tests:
cd fetch-uj-records
go test

returns:
PASS
ok  	github.com/redhat-appstudio/segment-bridge.git/fetch-uj-records	0.809s

@ShakedAviv50313 unit tests are failing.

Details about the files changed in this PR:

.github/workflows/unit_tests.yaml - excluded this tests from the Ci's tests, the tests are running inside of a separate splunk container, therefore they are excluded from the CI tests.

fetch-uj-records/fetch-uj-recordsPass - the expected output of the script. (this is validated in the test with the script's actual output. the tests fails if it doesn't match).

fetch-uj-records/fetch-uj-records_test.go - The actual tests for fetch-uj-records.sh

fetch-uj-records/splunk_container_default.yaml - same file as in splunk/splunk_container_default.yaml, golang "embed" does not support importing from other directories.

fetch-uj-records/splunk_container_template.tmpl - same as n.4

splunk/Dockerfile - updated image, added added limits.conf and props.conf to load properly the logs into the splunk server in the container.

splunk/limits.conf - disabling some limits

splunk/props.conf - disabling truncate limit

splunk/splunk.go - added WithSplunk container, because in this file it is available in the "splunk" package

splunk/splunk_test.go - relates to n.10

splunk/tests/test_logs/fetch-uj-recordsFail.jsonl - logs which are loaded into the local splunk server (inside the testing container) but are not retrieved by fetch-uj-records.sh script

splunk/tests/test_logs/fetch-uj-recordsPass.jsonl -  logs which are loaded into the local splunk server (inside the testing container) and are retrieved by fetch-uj-records.sh script

splunk/tests/test_logs/log_example.log -deleted, there's no use of it.

@ShakedAviv50313 you mentioned that those tests are not expected to pass, but I think we still need CI to pass. What do we do about that? Do we have similar tests that should fail for similar reasons? How do we handle those?
@yftacherzog
The tests run inside of a splunk container which is not the CI container, of course I require the tests to pass, on the CI the tests wouldn't pass because of the container so it's excluded from the CI's tests, the CI now passes.

ed that those tests are not expected to pass, but I think we still need CI to pass. What do we do about that? Do we have similar tests that shoul

I'll clarify: Currently it had been decided that any test that require running a container in order to perform the test (splunk, uid_map, ws_map, kwok, and this one) should be excluded from our CI, while ensuring they pass locally. No need for "dummy tests" as they won't provide us with verification for the results we expect to see.
That being said, the tests which are not excluded from the unit-test CI should pass (RHTAP is expected to fail currently, can be ignored).

authors: Omeramsc ShakedAviv50313 yftacherzog

repo: redhat-appstudio/segment-bridge


text:
Added danhawker to CoP org

Added danhawker to CoP org

/lgtm

repo: redhat-cop/org


text:
Question 9 need ? marks after each of the 2 questions

Should have a ? after HIPPA etc. And at the end.

No.

authors: dstockdreher noelo

repo: redhat-cop/pathfinder


text:
Add trigger to a pipeline

Add an action to the pipeline context menu to be able to add a trigger a pipeline. Adding a trigger would create the required Tekton resources (EventListener, TriggerTemplate, etc) in order to configure triggers and expose a webhook url that user can add to the Git provider repository settings. Example:
https://github.com/tektoncd/triggers/tree/master/examples/github
User should be able to easily get access to the webhook url associated with the pipeline after triggers are configured.

Should this be through Tekton CLI or k8s API?

repo: redhat-developer/vscode-tekton


text:
[WIP] Test jenkins pr trigger

What does this PR do?

Test triggering  Jenkins job: https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/WTO/job/WTO-smee/job/wto-smee/

[dwo-ci-test]

[dwo-ci-test]

[dwo-ci-test]

[dwo-ci-test]

[wto-ci-test]

[wto-ci-test]

[wto-ci-test]

[wto-ci-test]

[wto-ci-test]

[dwo-ci-test]

[wto-ci-test]

dwo-ci-e2e-tests

[wto-ci-test]

[wto-ci-test]

[wto-ci-test.]

wto-ci-test]

[wto-ci-test]

❌ E2E Happy path tests failed ❗
See Details

Use comment "[wto-ci-test]" to rerun happy path E2E test.

[wto-ci-test]

:x: E2E Happy path tests failed :heavy_exclamation_mark:  See Details  - [Jenkins job](https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/WTO/job/WTO-smee/job/wto-smee - [ - Use comment "[wto-ci-test]" to rerun happy path E2E test.

[wto-ci-test]

:white_check_mark: E2E Happy path tests succeed :  See Details  - Jenkins job - [ - Use comment "[wto-ci-test]" to rerun happy path E2E test.

repo: redhat-developer/web-terminal-operator


text:
Adding a SQL based LeaseManager impl so that we can distribute tasks across a cluster and make sure only 1 node process them at a time.

Move the Recordings utility class to it’s own module.

retest this please

retest this please

add to whitelist

Not yet diving in the code, but will it work with JPA ?

I'm not sure JPA can do some of the SQL queries being used in this class. Why do you ask?

As said, I have not really yet a clear idea what this PR is supposed to do (not the PRs fault btw ;-), but want to know when using different, JPA based provider for the domain models (so not accessing the DB directly), that then this still works.

I wonder if PostgreSQL advisory locks would be good here (https://www.postgresql.org/docs/9.4/static/explicit-locking.html)

@rhuss this does not depend on any of the domain models, so I think we are ok on that front.

@zregvart I tried avoiding using features that can only be found in postgresql just in case we ever want to switch off it.

@chirino yeah, I've done that many times, it complicates the implementation and rarely does do the job well and in the end the need to switch to another backend never arises. Anyway just a thought since I started getting these on account of retest this please comment :)

retest this

I'm still concerned about

not having a PENDING state anymore so I don't really understand how the workflows (https://github.com/redhat-ipaas/ipaas-rest/tree/master/docs/workflows) work now and
it still uses the time setting in the db rather then doing it in java code.

Codecov Report

Merging #236 into master will increase coverage by 3.58%.
The diff coverage is 81.32%.

@@             Coverage Diff              @@
##             master     #236      +/-   ##
============================================
+ Coverage     42.34%   45.92%   +3.58%
- Complexity      179      214      +35
============================================
  Files            95       98       +3
  Lines          1639     1805     +166
  Branches        176      186      +10
============================================
+ Hits            694      829     +135
- Misses          892      913      +21
- Partials         53       63      +10

Impacted Files
Coverage Δ
Complexity Δ

...a/com/redhat/ipaas/leases/LeasesConfiguration.java
0% <0%> (ø)
0 <0> (?)

.../com/redhat/ipaas/leases/impl/SqlLeaseManager.java
81.2% <81.2%> (ø)
29 <29> (?)

...in/java/com/redhat/ipaas/leases/impl/SqlLease.java
87.5% <87.5%> (ø)
6 <6> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update baa90e9...c03e2fa. Read the comment docs.

retest this please

retest this please

@chirino @iocanel what is the status of this?

Is this still needed or can we close it now? If it's needed, then please rebase, fix merge conflicts and we can re-review? Thanks!

closing.. I need to rebase and refresh this.

authors: KurtStam chirino codecov-io iocanel jimmidyson rhuss zregvart

repo: redhat-ipaas/ipaas-rest


text:
jobs: regenerate jobs

/cc @stevekuznetsov

/retest

repo: redhat-operator-ecosystem/release


text:
Add managers and account admin to cc field only

It doesn't make sense to add the same email address to the to and cc fields.
x
Signed-off-by: Sai Sindhur Malleni smalleni@redhat.com

/LGTM

authors: athiruma smalleni

repo: redhat-performance/cloud-governance


text:
constructor of  predicate

How can I construct combinations of predicates of different types, such as 'and' and 'or'? Currently, writing something like this results in a generic type incompatibility error. Do I need to specify the generic type within these constructs
xxx$.NAME_SPACE.eq(NameSpaceEnum.PERSONAL.name())
                .and(xxx$.RELATE_ID.eq(user.getId()))

At compile time, I'm getting the following error
Required type: Predicate <? super String,

Provided: EqualPredicate <xxx,java.lang.Long>

If 'and' and 'or' don't return Predicate types but instead assemble into a string query expression like the following, is it feasible?
public interface QueryCondition {
    String get();

    default QueryCondition and(QueryCondition otherCondition) {
        return () -> {
            return this.get() + "  " + otherCondition.get();
        };
    }

    default QueryCondition or(QueryCondition otherCondition) {
        return () -> {
            return "(" + this.get() + ")" + "| " + "(" + otherCondition.get() + ")";
        };
    }
}

then use it,
 QueryCondition queryCondition = () -> xxx$.CONTENT.containing(keyword).apply(QueryBuilders.union(new Node[0])).toString(Node.Parenthesize.NEVER);
        queryCondition = queryCondition.or(() -> xxx$.NAME.startsWith(keyword).apply(QueryBuilders.union(new Node[0])).toString(Node.Parenthesize.NEVER))
                .or(() -> xxx$.NAME.endsWith(keyword).apply(QueryBuilders.union(new Node[0])).toString(Node.Parenthesize.NEVER))
                .or(() -> xxx$.NAME.containing(keyword).apply(QueryBuilders.union(new Node[0])).toString(Node.Parenthesize.NEVER))
.and(() -> xxx$.NAME_SPACE.eq("namespace").apply(QueryBuilders.union(new Node[0])).toString(Node.Parenthesize.NEVER));
        long total = entityStream.of(xxx.class).filter(predicate).count();
        List<FileResourceSearchEntity> collect = entityStream.of(xxx.class)
                //.filter("(@name:" + keyword + ")|(@content:" + keyword + ")")
                .filter(queryCondition.get())
                //.filter(predicate)
                .skip(pageable.getOffset())
                .limit(pageable.getPageSize())
                .collect(Collectors.toList());

@HengCC sorry, this one slipped by... Would you be interested in working in a PR with us?

authors: HengCC bsbodden

repo: redis/redis-om-spring


text:
Support for dnsMonitoring in Sentinel Setup

After the fix of https://github.com/redisson/redisson/issues/1280 which improved greatly the resilience of Sentinel setup, it would be great to have dnsMonitoring  feature as well because in failover scenarios of sentinels instances, the box can get a different IP and the current implementation caches the dns resolution forever.  It means it never reconnects to new sentinels in the cluster.

Done

authors: leolimajr mrniko

repo: redisson/redisson


text:
Can Redisson KryoCodec default support 0-arg constructor object

As the immutable object is wildly used nowadays can redisson's KryoCodec supports it by default
when get the kryo instance from the pool using following code   Objenesis helps do the trick
         Kryo kryo = new Kryo();
        ((Kryo.DefaultInstantiatorStrategy) kryo.getInstantiatorStrategy()).setFallbackInstantiatorStrategy(new StdInstantiatorStrategy());

related issue

I don't see any problem with 0-arg contructor invocation using KryoCodec. Anyway you can your extension code overriding KryoCodec.createInstance method.


text:
Is there a way to delete BinaryStream in a batch operation?

I'm trying to do something like this:
final RBatchRx batch = rxClient.createBatch();
final var deleteMapOp = batch.getMap("map1").delete().ignoreElement();
final var deleteStreamOp = batch.getBinaryStream("blob1").delete().ignoreElement();
...

But it looks like RBatchRx is missing getBinaryStream() method (or anything similar).
Is it not implemented or is there another way to do that?

RBinaryStream interface doesn't contain reactive compatible methods. You can use RBucket<byte[]> instead.

authors: mrniko sergiy-sc


text:
Fix build errors: cspell, k8s-raw.gotmpl, etc

I fixed some of the build errors but I'm not sure how deep this rabbit hole goes. I fixed some errors, but I assume we agreed that the contributor is responsible for fixing the build so I was hoping @morriz could clean up the code. It's not that I don't want to help, but I also take in consideration that I might inadvertently break something else because I've not been working on this.

@svatwork what should I clean up?

@Morriz I already did:
Generating k8s v1.19 manifests
638
helmfile-init.yaml: basePath=.
639
in helmfile.tpl/helmfile-init.yaml: failed to render values files "../values/k8s/k8s-raw.gotmpl": failed to render [../values/k8s/k8s-raw.gotmpl], because of template: stringTemplate:14:18: executing "stringTemplate" at <.Values.otomi>: map has no entry for key "Values"
640
[2021-07-13T 06:45:29.796] ERROR: Templates validation FAILED

But now there's a new error:
ERR  - raw/templates/resources.yaml: Duplicate 'ServiceAccount' resource 'default' in namespace 'drone-pipelines'
644
ERR  - raw/templates/resources.yaml: Duplicate 'ServiceAccount' resource 'default' in namespace 'otomi'
645
ERR  - raw/templates/resources.yaml: Duplicate 'ServiceAccount' resource 'default' in namespace 'maintenance'
646
[2021-07-13T 07:02:43.593] ERROR: Templates validation FAILED
647
The command '/bin/sh -c if [ "$SKIP_TESTS" = 'false' ]; then bin/ci-tests.sh; fi' returned a non-zero code: 1
648
+ logout_from_registry
649
+ echo -e '\n[Action Step] Log out from registry...'
650
+ docker logout ghcr.io

I don't know what else since the commit went to master last night without a successful build.

Solved in https://github.com/redkubes/otomi-core/commit/121bf455eacc33055bf5d5c1aece15021dfe9bb0.

authors: Morriz svatwork

repo: redkubes/otomi-core


text:
no default for mongo script home in RPM distribution

When deploying Smarti from a RPM, there comes up an error message in the log:
2017-12-13 14:06:22,016 [main] ERROR i.r.s.m.MongoDbMigrationService - smarti.migration.mongo.script-home not set - not running database migration!

By setting the property:
smarti.migration.mongo.script-home=/usr/share/smarti/scripts

manually, the migration scripts are executed.
The following actions should be done in oder to resolve this issue:

[x] set the default value for smarti.migration.mongo.script-home to /usr/share/smarti/scripts for the RPM dist
[x] extend the documentation by this property
[x] add a note to the changelog

The required settings is configured in the application.properties shipped in the rpm-package (also in deb). However, when upgrading this configuration file does not get updated, thus the migration might fail.
Documentation (changelog and application-config) updated.

OK, we need think about how to transfer the default properties to our operations.
But anyway my expectation would be to have a default value if no property is set.
Do we have this now?

authors: ja-fra ruKurz

repo: redlink-gmbh/smarti


text:
Category Adding error

I can't add a category. It shows an error. This is the error:
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fancyshirt`.`categories`, CONSTRAINT `categories_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`)) (SQL: insert into `categories` (`name`, `short_description`, `long_description`, `active`, `order`, `options`, `category_id`, `updated_at`, `created_at`) values (T-shirts, this is test category,
ghfjhjfghj
, 1, 0, {"name":null,"short_description":null,"long_description":null}, 0, 2015-01-08 09:45:30, 2015-01-08 09:45:30))

Hi @ulshamim, this issue has already been resolved at issue #37.
Are you using branch v1 or master?

How can I see that? The changes log says it's Version 0.1.3. I followed this doc..
http://packalyst.com/packages/package/redooor/redminportal

I see. We're planning to release the fix in version 0.1.4 on 10 Jan 2015. So it's still in the development branch.
In the mean time, you may get the latest of branch 0.1 by changing the following in file composer.json:
"require": {
    "redooor/redminportal": "0.1.*"
},

To this
"require": {
    "redooor/redminportal": "0.1.*@dev"
},

Hi @ulshamim, v0.1.4 has been released. It consists of the fix for this issue. You may now change back to use the stable release in composer.json file.
"require": {
    "redooor/redminportal": "0.1.*"
},

Thanks.

authors: kongnir ulshamim

repo: redooor/redminportal


text:
Show cursor when exiting game

Fixes issue where leaving the game will result in cursor not showing up in the terminal.

Redox moved to GitLab years ago, thus if you still want to merge it, move this pull request to there.
If you still want to contribute to Redox, talk with us in the Matrix chat.

authors: hardBSDk sgian-ime

repo: redox-os/games


text:
version 1.4.2-SNAPSHOT

version 1.4.1 has been released and we're now working on 1.4.2-SNAPSHOT.
"-SNAPSHOT" is a version suffix required by maven.

LGTM

authors: takahi-i yusuke

repo: redpen-cc/redpen


text:
Which assertion frameworks/libraries are you using?

Will be useful to know all assertion frameworks/libraries which used by users of redux-actions-assertions.
Feel free to leave a comment.

Running tests through Karma with Jasmine and expect. The examples in the test/ folder were really helpful in formulating them. Viewable in this branch: https://github.com/Kitware/HPCCloud/pull/420

NB: With expect + jasmine we're passing our own done() function which calls done.fail(). Otherwise, with just done() the test will slip through.

@TristanWright thanks for the hint.
Javascript variant is actually accept fail callback as argument, but it was not used in any assertions wrapper. We can add it in order to make testing with Jasmine easier.

I use https://github.com/substack/tape and https://github.com/michaelrhodes/tape-catch to do assertions. I can get the tests working with something like this:
test('someThunk', (t) => {
  registerMiddlewares([thunk])
  registerInitialStoreState(buildInitialStoreState(rootReducer))

  const expectedActions = [
    actions...
  ]

  const initialState = {
    ...
  }

  assertions.toDispatchActionsWithState(
    initialState,
    someAction(),
    expectedActions,
    t.end
  )
})

This kind of works, because if something goes wrong in toDispatchActionsWithState, tape catches the thrown error and fails the test run, but it doesn't count the test in the tape output when it's passing, because you never actually assert anything with tape (t.equal, t.deepEqual, etc.). If there was some way to get the output actions of toDispatchActionsWithState, I could do some assertion like this:
  const expectedActions = [
    actions...
  ]

  const initialState = {
    ...
  }

  assertions.toDispatchActionsWithState(
    initialState,
    someAction(),
    expectedActions,
    (actualActions) => {
      t.deepEqual(
         actualActions,
         expectedActions,
         'should run the correct actions'
      )
    }
  )

@adamyonk thanks for commenting.
Can you please split your comment into two parts: the first part, about the framework that you are using leave here, and a second part, about the problem - extract to a separate issue?
So we will keep this issue clean and also we will be able to discuss your issue separately.

I use Jest primarily.

+1 for Jest. It's really taking off lately, would be really nice to have a shim for that.

Here is the issue: https://github.com/redux-things/redux-actions-assertions/issues/33

authors: StevenACoffman TristanWright adamyonk dmitry-zaets

repo: redux-things/redux-actions-assertions


text:
Equivalent implementation of re-reselect for cache-key

Hi, this is more a question than a real issue.
I am not sure how I should implement reselect to have the same behavior as re-reselect with the cache-key.
Here is a simple example of a selector that may be used a lot of time in my app, so I want to prevent any re-computation of myExpensiveComputation if the selectBookById has no changed.
In re-reselect
import createCachedSelector from 're-reselect'

const selectBookById = (state, id: string) => state.books[id]
const myExpensiveComputation = () => // stuff

const myCachedSelector = createCachedSelector(
  selectBookById,
  myExpensiveComputation
)((_, id) => id)) // here is the cache key

In reselect 4.1.0
import { createSelector } from 'reselect'

const selectBookById = (state, id: string) => state.books[id]
const myExpensiveComputation = () => // stuff

const myCachedSelector = createSelector(
  selectBookById,
  myExpensiveComputation,
  {
    memoizeOptions: {
      maxSize: 50, // Set size to 50, so if multiple components are connected to the same selector, it will not recompute
    }
  }
)

I believe this one has been resolved by #649, due to weakMapMemoize providing an effectively infinite cache size out of the box.

repo: reduxjs/reselect


text:
Updated AddTransaction component - now uses state.

I've updated the AddTransaction.jsx component so it now uses an Input Group, Dropdown Buttons and Dropdown Items.
The component now has 2 Dropdown Buttons:

Type
Category

The buttons have the following Dropdown Items within:
Type Dropdown:

Income
Expense

Category Dropdown:

Salary
Bonus
Refund
Cheque
Saving
Food
Debt
Holiday
Other

I've coded these to now use state, so when the user selects "Income" from the Type Dropdown List, the state (transactionType) updates to "Income" - this again for the Category Button, if the user selects "Food" from the Category Dropdown List the state (transactionCategory) will update to "Food".

I've also added a Button - which is going to be used for taking the states of the dropdowns, and the value of the input field and passing these to localstorage.

Appears this was closed in error instead of being merged.
Could this be re-reviewed please and if accepted again, merged to Main branch please?

repo: reececorkhill/BudgetBuddy


text:
Performance issue opening and filtering label list

Description
When opening or filtering the label list in a PR or issue on https://github.com/coq/coq (repo has 144 labels) firefox hangs for single digit seconds with 1 CPU at 100%.
The "identify feature" tool points to locked-issue which makes no sense since it's disabled (https://github.com/refined-github/refined-github/issues/7116).
How to replicate the issue + URL
I guess you need a repository with lots of labels where you have label setting rights (to get the label dropdown) to reproduce.
Extension version
23.12.17
Browser(s) used
firefox 121.0 (linux, debian testing)

Duplicate of https://github.com/refined-github/refined-github/issues/7176

authors: SkySkimmer fregante

repo: refined-github/refined-github


text:
Firefox: broken-features.csv and strings.json aren't loaded due to CSV violation

Description
I don't know if this is related to recent issues like https://github.com/refined-github/refined-github/issues/8142, but I noticed in the Firefox devtools that on every load I get the following errors:

I don't know what these files contain or what functionality might be broken by not loading them.
How to replicate the issue + URL

Load any GitHub repo, like https://github.com/refined-github/refined-github
Observe CSV errors in the devtools

Extension version
24.12.9
Browser(s) used
Firefox 133.0
Token ⚠

[X] I set a token in the options page. I understand that some features require a token to work.

Yes it's also https://github.com/refined-github/refined-github/pull/8128. The fix is to load those files in the background instead (via webext-msg)

authors: ehoogeveen-medweb fregante


text:
Remove testing modules/structure

Move the testing stuff (Karma et al) out of the default setup.  They're an optional extra for now.
Creating a rehab-testing NPM module which we could optionally install would be an elegant solution for including them where needed.

I'm looking into this as we speak.

repo: rehabstudio/fe-skeleton


text:
Create rehearsal lint command

We can run rehearsal lint command to only run lint plugin to allow people to do a separate PR with linter-related changes.

Related to #747. Backlog this.

authors: egorio lynchbomb

repo: rehearsal-js/rehearsal-js


text:
Cannot import Content PAck

With Graylog 3.1.0 this content pack would not be imported with this error:

Could not import content pack
Error importing content pack, please ensure it is a valid JSON file. Check your Graylog logs for more information.Null id at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@1da06c7d; line: 207, column: 1] (through reference chain: org.graylog2.contentpacks.model.AutoValue_LegacyContentPack$Builder["id"])

Content pack has been rebuild for 3.1, please test.

authors: kartone reighnman


text:
🛑 Student Certification Apps is down

In 1e5022b, Student Certification Apps (http://studentcertification.apps.binus.ac.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Student Certification Apps is back up in 9177dd7.


text:
🛑 SLC Remote Lab (rlab.binus.ac.id) is down

In cd511fb, SLC Remote Lab (rlab.binus.ac.id) (https://rlab.apps.binus.ac.id/) was down:

HTTP code: 502
Response time: 11216 ms

Resolved: SLC Remote Lab (rlab.binus.ac.id) is back up in d421124.


text:
🛑 BINUS Mobile (Server 1) is down

In be0517c, BINUS Mobile (Server 1) (https://mobileapi.apps.binus.edu) was down:

HTTP code: 503
Response time: 889 ms

Resolved: BINUS Mobile (Server 1) is back up in 3ef0bdd.


text:
🛑 GreatNusa.com is down

In a5d4a81, GreatNusa.com (https://greatnusa.com) was down:

HTTP code: 403
Response time: 120 ms

Resolved: GreatNusa.com is back up in 773477d.


text:
vibe.core.file.readFile throws OOM Exception reading pseudo system file.

Example test.
import vibe.core.file;

shared static this()
{
    auto f = readFile("/proc/self/statm");
}

Building vibe-d 0.7.26 configuration "libevent", build type debug.
Running dmd...
Building bug ~master configuration "application", build type debug.
Compiling using dmd...
Linking...
Running ./bug
core.exception.OutOfMemoryError@(0)
Error executing command run:
Program exited with code 1

Also happens with master.
Stepping through the code:
ubyte[] readFile(Path path, ubyte[] buffer = null, size_t max_size = size_t.max)
{
        auto fil = openFile(path);
        scope (exit) fil.close();
        enforce(fil.size <= max_size, "File is too big.");
        auto sz = cast(size_t)fil.size;      // <---  fil.size = -1
        auto ret = sz <= buffer.length ? buffer[0 .. sz] : new ubyte[sz];   // <--- OOM
        fil.read(ret);
        return ret;
}

i guess it comes from here:
https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/core/drivers/threadedfile.d#L109
i don't understand the comment on stat_t being wrong on linux, it seems to work fine.
then i guess
https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/core/drivers/threadedfile.d#L174
would also need a fix to cope with unknown filesize

authors: ibuclaw yannick