text:
react-native-apple-healthkit showing compatibility with Adroid.

I'm assuming this is a mistake?

:+1: I'll correct this, until someone can verify otherwise. Thanks @dabit3

repo: react-community/native-directory


text:
Method does not override or implement a method from a supertype

Description
Error in file ImagePickerPackage.java
\android\src\main\java\com\imagepicker\ImagePickerPackage.java:34 error: method does not override or implement a method from a supertype
@Override

Solution

Comment line 34 "@Override" before function createJSModules()
cd android -> gradlew clean

+1

This has been already fixed.

Fixed in 0.26.4

source: gharchive/issue

license: mit

license_type: permissive

license_source: bigquery


text:
ref arrow function parameter always null on . Is this normal?

Dear all,
I have the following render content:
<View style={styles.container}>
        {this.props.userRegion &&
        <MapView
          ref={c => this.mapView = c}
          provider={'google'}
          mapType={'standard'}
          style={styles.map}
          initialRegion={this.props.userRegion}
        >
          <MapUserMarker
            userLocation={this.props.userLocation}
          />
          {
            this.props.poppyVehicles.map(vehicle => (
              <MapView.Marker
                key={vehicle.id}
                coordinate={{ latitude: vehicle.latitude, longitude: vehicle.longitude }}
                image={poppyVehicle}
              />
            ))
          }
          {
            this.props.cloudbikeVehicles.map(vehicle => (
              <MapView.Marker
                key={vehicle.id}
                coordinate={{ latitude: vehicle.latitude, longitude: vehicle.longitude }}
                image={cloudbikeVehicle}
              />
            ))
          }
        </MapView>
        }
        {this.props.destinationSearchBoxVisible &&
        <SearchBox
          onSearch={this.props.onChangeDestinationSearchBoxQuery}
          query={this.props.destinationSearchBoxQuery}
        />
        }
        {!this.props.destinationSearchBoxVisible &&
        <SearchButton onPress={this.props.onChangeDestinationSearchBoxVisible}/>
        }
        {(this.props.destinationAddresses.length > 0) &&
        <SearchResult
          list={this.props.destinationAddresses}
          onSelect={this.props.onChangeDestinationAddress}
        />
        }
      </View>

I'm trying to get a reference to the map view so that I can call animateToCoordinate.
Unfortunattely I can't get a reference to map view as c is null in:
ref={c => this.mapView = c}.

My component is a class extending React.component and I guess map view is also a full component otherwise it would not have methods...
Any idea?
Thanks for any help...

No one any advice on this? I'm really stuck :(

How are you trying to call your ref? Are you doing it manually with a button or are you trying to call it in a lifecycle function?
When accessing a ref it is always good to check that it is there before trying to use it, like so:
onPress() {
  this.mapView && this.mapView.animateToCoordinate(coor, 500)
  // or
  if (this.mapView) {
    this.mapView.animateToCoordinate(coor, 500)
  }
}

Also make sure that your <MapView/> component renders before you try to access the ref because the ref will not exist until the component renders.

I am having the same problem.
<MapView ref={ref=>this.map=ref} onMapReady={()=>console.log(this.ref)}/>
This is further complicated by the fact that onMapReady is not firing (currently on v0.17.0).

See this example: https://github.com/react-community/react-native-maps/issues/209#issuecomment-350907665

Anyone who's struggling with this problem should test out animateToRegion with a button. console.log always showed ref as null for me but when I added a button to test out the animateToRegion, it worked well.

I have the same problem. Unfortunately I could not run any function from reference because it is always null. I am trying to center the map on the specific pins.
Here is my code:
import React, { Component } from 'react';
import MapView, { Marker, PROVIDER_GOOGLE } from 'react-native-maps';
import { StyleSheet } from 'react-native';

export default class ZJMapView extends Component {
  state = {
      stops: [],
      stopMarkers: [],
  };

  render() {
    return(
      <MapView
        ref={ref => { this.mapView = ref }}
        showsUserLocation
        style={ styles.map }
        provider={ PROVIDER_GOOGLE }
        showsMyLocationButton={ true }
        {
          this.state.stops.map((stop, index) => (
            <StopMarker
              stop={ stop }
              detailed={ this.state.detailStopsPresented }
              key={ String(stop.stopId) + String(stop.stopSubId) }
              name={ String(stop.stopId) + String(stop.stopSubId) }
              identifier={ String(stop.stopId) + String(stop.stopSubId) }
            />
          ))
        }
        </MapView>
    );
  }

  didSelectStops(stops) {
    this.setState({ stopMarkers: []}, () => {
      this.setState({ stops: stops }, () => {
        setTimeout(function () {
          var fittedStopMarkers = stops.map((stop, index) => String(stop.stopId) + String(stop.stopSubId))
          alert(fittedStopMarkers)
          this.mapView.fitToSuppliedMarkers(fittedStopMarkers, true);
        }, 1000);
      })
    })
  }

Got same issue

authors: AlexandreRoba RyanMitchellWilson alvelig devashishsethia piotrekjeremicz resson-ntranquilla rosnaib11

repo: react-community/react-native-maps

license: MIT

license_source: github-api


text:
Drawer navigation causesre-mounting of components

Current Behavior
Having implemented the Drawer navigation nested in Tab navigation, going from page "Home" to "Settings" and navigating back to "Home", it causes the "Home" component to reload. Same behavior when navigating back using the back button of the phone.
This behavior is only on Drawer navigator where Tab navigation works fine..
Happens on both Android and iOS ...
Expected Behavior
Navigating back to initial page (which was just open) shouldn't cause the component to reload
Your Environment

software
version

react-navigation
1.0.0-beta.15

react-native
0.50.3

node
v6.11.1

npm or yarn
3.10.10

duplicate https://github.com/react-community/react-navigation/issues/2277

authors: amirmatin kelset

repo: react-community/react-navigation


text:
(0 , _clsx2.default) is not a function

Hi,
few days ago I updated all the packages in my project. Unfortunately, I came across an error in this repository. At first, I thought it might be the children's fault, but no. I hope you can get it right :)

Hi @gsiwiec01 ,
How were you able to fix this issue?

repo: react-grid-layout/react-draggable


text:
Can't find variable: DeviceEventEmitter

Version 1.0.3 is using DeviceEventEmitter in src/GoogleSigninButton.js but not importing it.
https://github.com/react-native-community/react-native-google-signin/blob/914c40e0938d9aadbe8a2ffc6bd19275dfb4ed10/src/GoogleSigninButton.js#L4-L24

Sorry, not quite sure what happened there, I probably didn't test thoroughly enough. Please let me know if current master branch works, thanks.

I'm fairly certain that the DeviceEventEmitter issue is fixed with 1.0.4 (I just double checked). So I'm closing this one.

authors: adrianocola vonovak


text:
Fix flow errors

Summary
When importing in projects, this files raises flow errors.
Test Plan

What's required for testing (prerequisites)?
What are the steps to reproduce (after prerequisites)?
Compatibility

OS
Implemented

iOS
✅❌

Android
✅❌

Checklist

[ ] I have tested this on a device and a simulator
[ ] I added the documentation in README.md
[ ] I mentioned this change in CHANGELOG.md
[ ] I updated the typed files (TS and Flow)
[ ] I added a sample use of the API in the example project (example/App.js)

merge it please :/

source: gharchive/pull-request


text:
Status bar show white color when open modal?

Environment

Platforms

Versions

Android:
iOS:
react-native-modal:
react-native:
react:

Description

Reproducible Demo

See https://github.com/react-native-community/react-native-modal#the-statusbar-style-changes-when-the-modal-shows-up


text:
Add addEventListener for isInternetReachable

Describe the Feature

I am using redux-saga eventChannels to subscribe to connectionChanges. Currently, I have this snippet:
function startNetworkChannel() {
  return eventChannel(listener => {
    const handleConnectivityChange = status => {
      listener(status);
    };

    const unsubscribe = NetInfo.addEventListener(handleConnectivityChange);

    return () => unsubscribe();
  });
}

However when I connect to my hotspot, but disable internet (isConnected: true, isInternetReachable: false) and then turn on my internet I am expecting listener is doing it's job and that isInternetReachable becomes true.
Currently this is not really happening.
Update:
It is working effectively, but it takes several minutes before the state of isInternetReachable is being updated. Around 3-5 minutes? How come? I also tried it with NetInfo.fetch... Same result.

Did you try with physical device or simulator?

I did it on a real device. iPad pro 2018 19.5 inch

👋 We just send over the message that the iOS system gives us, so if there's a delay then it's likely coming from iOS.
I'm going to close this issue, but if you think it is a bug in the library, then you can provide a minimal reproducible demo project which I can run to see this behaviour?

@matt-oakes How would I be able to test if this is a bug from iOS itself or from the lib?

authors: MakhouT gabrielrra matt-oakes


text:
6.0.0

@msand I had removed Quartz and PerformanceBezier from this repo.
Will run a postinstall script to download them from Github.
And finally this will be released as 6.0.0.

@msand You can try to install this in 6.0.0-rc10

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


text:
ExoPlayer: Android 6.0 - Video disappears

I'm using a full screen background video which seems to disappear after minimizing the app. This works just fine on other OS versions and on 6.0 if using the standard MediaPlayer build.

Can u provide a reproduction repo?
Also, what do you mean by minimizing the app?
If you can try to test this the Exoplayer instead of MediaPlayer and let us know if it's still happened it would be great.

Tried on a few devices and it looks like this may be device specific too. Can't recreate on Nexus 5 Android 6.0.1 but happens sometimes on Lenevo A7020a48 Android 6.0. Seems quite intermittent and a bit more rare than I had originally thought.
Thanks for looking into this.

A little more info for you @cobarx. This is happening only upon a video switch which is followed by a minimize. My app uses a full screen video background and we tried several times and this is the only case where this happens. Seems pretty corner case. Feel free to ignore and close out the issue.


text:
After stopLoading, the whole webView can't trigger any press, only can scroll, on Android.

I write stopLoading in onNavigationStateChange to prevent redirect in webView, and do what I want. But After stopLoading, the whole webView can't trigger any press, only can scroll, on Android, recently.
please help me. thanks.
Below is what I do simplest:
command line:
expo init app
cd app
yarn run eject
yarn add react-native-webview
react-native link react-native-webview
package.json:
"dependencies": {
  "expo": "^32.0.0",
  "expokit": "32.0.7",
  "react": "16.5.0",
  "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",//react-native@0.57.1
  "react-native-webview": "^5.4.6"
}
app/build.gradle:
configurations.all {
  resolutionStrategy {
    force 'org.webkit:android-jsc:r224109'
    force 'com.android.support:appcompat-v7:27.1.1'
    force 'com.android.support:support-fragment:27.1.1'
    force 'com.android.support:animated-vector-drawable:27.1.1'
    force 'com.android.support:support-core-ui:27.1.1'
    force 'com.android.support:support-core-utils:27.1.1'
    force 'com.android.support:support-vector-drawable:27.1.1'
    force 'com.android.support:support-compat:27.1.1'
    force 'android.arch.lifecycle:runtime:1.1.0'
    force 'android.arch.lifecycle:livedata-core:1.1.0'
    force 'android.arch.lifecycle:viewmodel:1.1.0'
    force 'android.arch.lifecycle:common:1.1.0'
    force 'android.arch.core:runtime:1.1.0'
    force 'android.arch.core:common:1.1.0'
  }
}
App.js:
<WebView
  ref={ref=>this.webview=ref}
  source={{uri:anyUrl}}
  style={{marginTop:20}}
  onNavigationStateChange={e=>{
    if(!e.url.includes(anyUrl)){
      this.webview.stopLoading();
    }
  }}
/>

Thank you very much.

I was able to solve it, using  onShouldStartLoadWithRequest

onShouldStartLoadWithRequest

But not with Android :(

I am using Android 9 with expo 34 and it works (I think it was a bug last year, but it should work now).

authors: Adrianotiger Eric013 dwyanelin


text:
Does base64 not supported by webView?

//converting blob to base64data
const fileReaderInstance = new FileReader();
fileReaderInstance.readAsDataURL(response.data);
fileReaderInstance.onload = () => {
base64data = fileReaderInstance.result;
console.log(base64data);
dispatch({
type: OPEN_DOCUMENT, url:  base64data
});
}
//rendering
<WebView
source={{ uri: url }}
originWhitelist={['*']}
/>
<Image source={{uri: url}} style={{ height: 400, width: 300, }} />
I am able to render the image file using Image tag but Webview is throwing error "028
data:application/pdf;base64,JVBERi0xLjMNCiXi48/TDQoNCjEgMCBvYmoNCjw8DQovVHlwZ... is not a file url ".
Please help.

what is the solution for this issue?
Please let me know
thank you

source={{ html:                  <iframe src="data:application/doc;base64,${documentBase64}" height="100%" width="100%">                     The “iframe” tag is not supported by your browser.                  </iframe>                 }}


text:
window.ReactNativeWebView.postMessage(data) and onMessage doesn't work on release apk mode. [only works in debug mode]

Bug description:
Hello, i'm trying to send data from my web page to my react native app through this library, using a phone phisical android and it only perfectly works in debug mode. When i build it for production, it doesn't work, window.ReactNativeWebView.postMessage(data) does nothing.
Expected behavior:
Capure the data sent from my web page in release apk mode
Screenshots/Videos:
Code from my web page

code from my RN app

Environment:

OS: android
OS version:  8.1.1
react-native version: 0.63.4
react-native-webview version: 11.15.0 => I was trying another version 9.0.2 and it didn't work either

let message = "hello";
webView.injectJavaScript(getInjectableJSMessage(message));
function getInjectableJSMessage(message) {
  return
    `(function() {document.dispatchEvent(new MessageEvent('message', {data: ${JSON.stringify(
      message
    )}}));})();`
}

Try injectJavaScript to inject new MessageEvent

let message = "hello"; webView.injectJavaScript(getInjectableJSMessage(message));
function getInjectableJSMessage(message) {
  return
    `(function() {document.dispatchEvent(new MessageEvent('message', {data: ${JSON.stringify(
      message
    )}}));})();`
}

Try injectJavaScript to inject new MessageEvent

Thanks for answering @tero-paananen. That method wouldn't work because I need to send data from the web to react native, and that way I can't access the data I'm going to send

I'm having same issue. In my case, I'm trying to get events from iframe video but it only works on browser and not on react native via webview.
    window.onmessage = function (event) {
      if (event.data.event == "play") {
        alert('lll');                                     // this won't fire
        sendEvent(event.data.event, event.data.data);
      }
      if (event.data.event == "pause") {
        sendEvent(event.data.event, event.data.data);
      }
      if (event.data.event == "ready") {
        sendEvent(event.data.event, event.data.data);
      }
      if (event.data.event == "timeupdate") {
        sendEvent('playing', event.data.data);
      }
      if (event.data.event == "ended") {
        sendEvent('end', event.data.data);
      }
    };

    const sendEvent = (evt, data) => {
      // Passes events through the bridge
      console.log("event", evt);
      var payload = {
        name: evt,
        data: data,
      };
      window.ReactNativeWebView.postMessage(JSON.stringify(payload));
    };

  const INJECTEDJAVASCRIPT =
    "const meta = document.createElement('meta'); meta.setAttribute('content', 'width=device-width, initial-scale=1, maximum-scale=0.99, user-scalable=0'); meta.setAttribute('name', 'viewport'); document.getElementsByTagName('head')[0].appendChild(meta);";

<WebView
      allowsFullscreenVideo={true}
      onLoadEnd={() => console.log('live load enddddddddddddddddd')}
      source={{
        html: LivePlayer(videoId),
      }}
      javaScriptEnabled={true}
      ref={ref}
      onMessage={onBridgeMessage}
      bounces={false}
      scrollEnabled={false}
      scalesPageToFit={scalesPageToFit}
      onError={error => console.error(error)}
      style={[
        {
          marginTop: -8,
          marginLeft: -10,
        },
        style,
      ]}
      containerStyle={containerStyle}
      setBuiltInZoomControls={false}
      setDisplayZoomControls={false}
      automaticallyAdjustContentInsets
      onNavigationStateChange={a => console.log(a?.url)}
      injectedJavaScript={INJECTEDJAVASCRIPT}
    />

One issue in your code that i noticed is that Windows WebView does not have injectedJavaScript prop it is function that you can call after WebView is loaded by webView.injectedJavaScript

I faced the same issue. After a few hours of debugging, I figured it out it was because of ProGuard.
ProGuard obfuscated the onMessage method in the release build. I fixed it by updating ProGuard rules to keep the method names.

I faced the same issue. After a few hours of debugging, I figured it out it was because of ProGuard. ProGuard obfuscated the onMessage method in the release build. I fixed it by updating ProGuard rules to keep the method names.

hey @incleaf,
Can you explain how you updating ProGuard rules ?

Hello, has anyone fixed this, for me onMessage is working but onNavigationStateChange returns empty url data when proguard is enabled on android. iOS is working fine. I have tried to use several ways to add proguard rules
# React Native WebView -keep class com.reactnativecommunity.webview.** { *; } -keepclassmembers class com.reactnativecommunity.webview.** { *; }
But this is not working.

Hey @nabinkumarn,
Any luck with adding proguard rules for this package?

Hey @nabinkumarn, Any luck with adding proguard rules for this package?

No, i had to disable proguard. Updated react native to enable hermes, worked on other security concerns and disabled proguard.

authors: aubert-creation incleaf isaac-tcs jose1937JS nabinkumarn nazmeln tero-paananen


text:
Access methods of the web application opened in webview

I have a web application opened in webview in my mobile application and I want to access a method that is exposed by my web application. I think on the web it can be done by iframe.contentwindow() but I am not sure how this can be done using webview

You'll want to use onMessage and postMessage for this: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#the-windowreactnativewebviewpostmessage-method-and-onmessage-prop

authors: noumanmoeen wbobeirne


text:
Camera not opening to scan the qr code in new version 3 beta version.

Tried to test the live demo and it didn't open camera.
Also, tried to use it in my react project, happens the same.

same here! Actually it works in chrome (OS X) but I cannot get any image on my iphone (tested withIOS 15.6.1 in safari and mobile chrome)

same. i suspect this has something to do with recent iOS updates, because i definitely remember it working previously.

Same, the demo gives the error

undefined is not an object (evaluating 'navigator.mediaDevices.getUserMedia')

I suspect it has something to do with some recent iOS updates, because I definitely remember the same code worked before.

Same here. Permission granted, but window does not open in iPhone. Neither safari nor Chrome.

It works using HTTPS

@aelfannir i am using this for a project i am able to scan through the frontCamera but not able to open the rare camera what should i do

Hi everyone,
I hope this message finds you well. I am currently facing an issue with the QR scanner in my project. While I am able to successfully scan using the front camera, I am encountering difficulties in accessing the rear camera.
Here is the relevant code snippet:
jsx
<QrScanner
onScan={handleScan}
onError={handleError}
style={{ width: '100%' }}
facingMode="rare"
/>
Despite setting facingMode to "rare," the scanner continues to use the front camera.
I would greatly appreciate any insights or suggestions on how to resolve this issue and ensure the QR scanner utilizes the rear camera as intended.
Thank you in advance for your assistance.

Hi everyone,
I hope this message finds you well. I am currently facing an issue with the QR scanner in my project. While I am able to successfully scan using the front camera, I am encountering difficulties in accessing the rear camera.
Here is the relevant code snippet:
jsx
<QrScanner onScan={handleScan} onError={handleError} style={{ width: '100%' }} facingMode="rare" />
Despite setting facingMode to "rare," the scanner continues to use the front camera.
I would greatly appreciate any insights or suggestions on how to resolve this issue and ensure the QR scanner utilizes the rear camera as intended.
Thank you in advance for your assistance.

facingMode must be "environment" for back camera.

repo: react-qr-reader/react-qr-reader


text:
initial value

is there way to set initial value of which photo will be visible at start (fe. third one)?
i want to store id of current photo and when coming back to the gallery be able to see this photo on top
https://codesandbox.io/s/viewpager-xcg52

@zcaalock I'm not sure how this is related to how the lib functions, it's really something you should ask on Spectrum. In your situation, you should look at setting the initial spring with the value allowing the photo you want to be shown to be at the correct position.
  const [props, set] = useSprings(pages.length, i => ({
    x: i * window.innerWidth - 500, // <-- look at this value
    scale: 1,
    display: 'box', // <-- set style directly, doesn't need to be interpolated through springs
    opacity: '1', // <-- this should be a number, not a string,
    userSelect: 'none' // <-- set style directly, doesn't need to be interpolated through springs
  }))

thanks, this works exactly as i want

here is the resolve
const index = useRef(counter)   const [props, set] = useSprings(pages.length, i => ({     x: (i - index.current) * window.innerWidth,            scale: 1,     display: 'box',     opacity: 1,     userSelect: 'none'   }))

Glad you figured it out. Once more though, display and userSelect shouldn’t be in your spring logic unless you actually change them. Just pass them as regular style attributes in the style prop of your component.

authors: dbismut zcaalock

repo: react-spring/react-use-gesture


text:
Add ability to sort a data table by clicking a table heading

Adds the ability to sort columns by clicking the table header. Accepts an onClick in the model, which will make the column clickable. Then, you can pass props.sortColumn and props.sortDirection into the <Table /> to get the up/down icon to display.

Thank you @tuckerconnelly I have been keeping this unmerges because the Table is already deprecated in favour of a more flexible version. We are keeping the 1.x in the master branch so if you think it's worthy feel free to open a PR there. Dev holds now the 2.0 beta with some rewritten components

authors: javivelasco tuckerconnelly

repo: react-toolbox/react-toolbox


text:
[Bug]: IScreen.Router.Navigate.Execute not working with ReactiveUI On .net MAUI IOS

Describe the bug 🐞
IScreen.Router.Navigate.Execute not working with ReactiveUI On .net MAUI IOSappened!
Below is the Error And code Attached:
The message:	"NavigationPage must have a root Page before being used. Either call PushAsync with a valid Page, or pass a Page to the constructor before usage."
Step to reproduce
Launch the App.
I see below the error
The message	"NavigationPage must have a root Page before being used. Either call PushAsync with a valid Page, or pass a Page to the constructor before usage."	string

And the Navigation is not working message
Reproduction repository
https://github.com/reactiveui/ReactiveUI
Expected behavior
This should happen...
Screenshots 🖼
No response
IDE
Visual Studio 2022
Operating system
MAC
Version

Device
IOS and Andrirod
ReactiveUI Version
19.2.1
Additional information ℹ
ReactiveUI-NAV.zip

Thank you for submitting the issue and the zip repo, I will try to take a look at this in the next few days.

I’m having same issue, do we have any solution for this?

Okay, I'm happy that I found this bug because I thought I was missing something in my code. I'm also having the same issue.

@DanielCauser  did you get any solution for the above Bug ..please do share it

We are working on it. Volunteer open source and having real lives and all that fun stuff :)
I think Chris was having issues getting the emulator to work to test.

If it helps @glennawatson, the stack trace is bellow. Also, I was getting the exception on mac catalyst, Android and iOS.
Unhandled Exception:
System.InvalidOperationException: NavigationPage must have a root Page before being used. Either call PushAsync with a valid Page, or pass a Page to the constructor before usage.
   at Microsoft.Maui.Controls.Handlers.Compatibility.NavigationRenderer.ViewDidLoad()
   at UIKit.UIViewController.get_View()
   at Microsoft.Maui.Controls.Handlers.Compatibility.NavigationRenderer.get_NativeView()
   at Microsoft.Maui.Controls.Handlers.Compatibility.NavigationRenderer.Microsoft.Maui.IElementHandler.get_PlatformView()
   at Microsoft.Maui.Handlers.ViewHandler.MapInputTransparent(IViewHandler handler, IView view)
   at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Microsoft.Maui.IView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.IViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v)
   at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
   at Microsoft.Maui.PropertyMapper.UpdateProperty(IElementHandler viewHandler, IElement virtualView, String property)
   at Microsoft.Maui.Controls.Layout.UpdateInputTransparent(IViewHandler handler, IView layout)
   at Microsoft.Maui.Controls.Layout.MapInputTransparent(IViewHandler handler, IView layout)
   at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Microsoft.Maui.IView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.IViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v)
   at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
   at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
   at Microsoft.Maui.Controls.Handlers.Compatibility.VisualElementRenderer`1[[Microsoft.Maui.Controls.NavigationPage, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view, IPlatformViewHandler nativeViewHandler, Action`1 onElementChanged, NavigationPage& currentVirtualView, IPropertyMapper& _mapper, IPropertyMapper _defaultMapper, Boolean autoPackage)
   at Microsoft.Maui.Controls.Handlers.Compatibility.ViewHandlerDelegator`1[[Microsoft.Maui.Controls.NavigationPage, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view, Action`1 onElementChanged, Boolean autoPackage)
   at Microsoft.Maui.Controls.Handlers.Compatibility.NavigationRenderer.Microsoft.Maui.IElementHandler.SetVirtualView(IElement view)
   at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
   at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
   at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
   at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
   at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
   at Microsoft.Maui.Platform.ElementExtensions.ToUIViewController(IElement view, IMauiContext context)
   at Microsoft.Maui.Handlers.WindowHandler.MapContent(IWindowHandler handler, IWindow window)
   at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Microsoft.Maui.IWindow, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IWindowHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v)
   at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
   at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
   at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
   at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
   at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
   at Microsoft.Maui.Platform.ElementExtensions.SetHandler(INativeObject nativeElement, IElement element, IMauiContext context)
   at Microsoft.Maui.Platform.ElementExtensions.SetWindowHandler(UIWindow platformWindow, IWindow window, IMauiContext context)
   at Microsoft.Maui.Platform.ApplicationExtensions.CreatePlatformWindow(IApplication application, UIWindowScene windowScene, NSDictionary[] states)
   at Microsoft.Maui.Platform.ApplicationExtensions.CreatePlatformWindow(IUIApplicationDelegate platformApplication, IApplication application, UIApplication uiApplication, NSDictionary launchOptions)
   at Microsoft.Maui.MauiUIApplicationDelegate.FinishedLaunching(UIApplication application, NSDictionary launchOptions)
   at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName)
   at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass)
   at ComboBoxSample.Program.Main(String[] args) in /Users/danielcauser/Downloads/ComboBoxSample/ComboBoxSample/Platforms/iOS/Program.cs:line 13

@DanielCauser Thank you for this, confirming it's an issue with all the main MAUI targets, this is very useful, I have put aside time this weekend to look at these issues. We aim to resolve this and to get a update out as soon as possible.

Thank you for the hard work folk! Cheers!

@glennawatson is there any new release for Nuget...How to get the new fix on to MAUI Application

I will try to get a release done shortly, just waiting for another fix to be merged.

FYI a release should be available in the next 30 to 40 minutes, the package is being published now.
Thank you for all who assisted to raise and resolve this issue.

Please use the next release version which will come out today, 19.3.2 has an issue which has now been resolved in the next release

@ChrisPulman  I ma seeing same issues
HostScreen.Router.Navigate.Execute(new AnotherViewModel2())
and HostScreen.Router.NavigateAndReset.Execute(new AnotherViewModel()))
are not working they are not navigating to the page ..i see same Exeption ,Can You please test with the same I tested on IOS Simulator 16.
Please find the Execption and Code attcahed

ReactiveUI-NAVv2.zip

I will take a look with the attached code.

@RAMESHKUMAR502 Can you confirm that this is now only an issue with iOS as previously it was said to be an issue with Android too which proved true. There was no root page being set, the update from yesterday should have resolved this issue.

@RAMESHKUMAR502 in your example you have a local copy of the old RoutedViewHost please try this version instead
ReactiveUI-NAV-V3.zip

I currently don't have access to my Apple Developer Account as Apple decided to kindly lock it for me, I am waiting for them to resolve this, its already been a week as I was intending to look at this last weekend.
When it was specified that the same issue existed on Android I proceeded to use Android and Windows as the test platforms leading to the same issues as reported on iOS and the resolution as created yesterday.
As a result we will need more details from the exceptions and if possible the line numbers that are causing the issues in ReactiveUI. We want to resolve this, so any assistance is appreciated.
NOTE
You should no longer need to include both the ReactiveUI.Maui and ReactiveUI.WinUI packages, I could see that there was an issue with Schedulers previously where the Maui-WinUI version would have been missing the windows Scheduler.
For Windows targets where you intend to target both WinUI and Maui-WinUI you should have two separate projects, 1 with the <UseMaui>true</UseMaui> for Maui-WinUI with the ReactiveUI.Maui package and the other <UseWinUI>true</UseWinUI> for the WinUI only version with the ReactiveUI.WinUI package.

@ChrisPulman I have tested with the above-attached project. The app is getting crashed on every launch on both IOS and Android below are the Carsh details.

we are using Ios and Andriod we are using only IOS and Andriod. The issue is with ReactiveUI.Maui**---Specified cast is not valid.**
Can you please test on Android and IOS?

@RAMESHKUMAR502 This is a new issue, and different to the reported one, something is trying to cast from type A to type B and failing, thankyou for the update, I will take another look this evening as it can be replicated with Android and iOS, I will need to test with Windows too to ensure that any changes are applicable for all targeted OS's.
Is there any particular sequence of events that cause this exception?

PS: The stack trace text of the exception would be nice as this will give the line numbers involved in the exception and guide us to the issue faster.

Please find the Stack Trace Below
"   at ReactiveUI.Maui.ReactiveContentPage1[[MauiApp5.ViewModels.AnotherViewModel2, MauiApp5, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].ReactiveUI.IViewFor.set_ViewModel(Object value) in /_/src/ReactiveUI.Maui/ReactiveContentPage.cs:line 43\n   at ReactiveUI.Maui.RoutedViewHost.InvalidateCurrentViewModel() in /_/src/ReactiveUI.Maui/RoutedViewHost.cs:line 249\n   at ReactiveUI.Maui.RoutedViewHost.<.ctor>b__2_8(Unit _) in /_/src/ReactiveUI.Maui/RoutedViewHost.cs:line 122\n   at System.Reactive.AnonymousSafeObserver1[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]].OnNext(Unit value)\n   at System.Reactive.Sink1[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]].ForwardOnNext(Unit value)\n   at System.Reactive.Linq.ObservableImpl.Where1.Predicate.[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]].OnNext(Unit value)\n   at System.Reactive.Subjects.Subject`1[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]].OnNext(Unit value)\n   at ReactiveUI.Maui.RoutedViewHost.<>c__DisplayClass2_1.<.ctor>g__Handler|14(Object sender, NavigationEventArgs e) in //src/ReactiveUI.Maui/RoutedViewHost.cs:line 105\n   at Microsoft.Maui.Controls.NavigationPage.RemoveAsyncInner(Page page, Boolean animated, Boolean fast, Boolean requestedFromHandler)"

@RAMESHKUMAR502 Excellent, thank you for this, InvalidateCurrentViewModel is most likely the issue here, I will see what is happening, it may be trying to write directly over an existing item causing the issue.

19.4.x should be released shortly, please try this and report back on your findings, many thanks.

We will close this based on no news is good news, please open a new issue if further problems occur. Many thanks again.

Thanks, @ChrisPulman  i have tested the Sample it's working for me..,if any issue i will get back to you

repo: reactiveui/ReactiveUI


text:
asynchronous context change is not propagated to the connected components

Please see the following example. The only difference between Bar and ConnectedBaz is that the second one uses redux connect.
The problem is that the context changes do not get propagated to the component Baz and it statically renders 0. Cmponent Bar is being updated and re-rendered correctly every second.
import React, {PropTypes} from 'react';
import { connect } from 'react-redux';

class Bar extends React.Component {
  static contextTypes = {
    time: React.PropTypes.number
  };

  render() {
    return
{this.context.time}
;
  }
}

class Baz extends React.Component {
  static contextTypes = {
    time: React.PropTypes.number
  };

  render() {
    return
{this.context.time}
;
  }
}

const ConnectedBaz = connect()(Baz);

export default class Foo extends React.Component {
  static childContextTypes = {
    time: React.PropTypes.number
  };

  getChildContext() {
    return {
      time: this.state ? this.state.time : 0
    };
  }

  componentDidMount() {
    setInterval(() => {
      this.setState({time: new Date().getTime()});
    }, 1000);
  }

  render() {
    return
<Bar/><ConnectedBaz/>
;
  }
}

Yes, this is a known React issue.
There are a few possible fixes:

Don’t rely on context updates propagating correctly and instead expose something like subscribeToMyThing() in context. (This is pretty much what React Redux does by the way.)
Pass { pure: false } as the fourth argument to connect(). This will significantly slow it down but context changes will propagate.
Wait for React to fix this or help them to :wink:

authors: gaearon zdila

repo: reactjs/react-redux


text:
Using Immutable in routing reducer causes infinite loop

If I implement a custom routing reducer and store the value of locationBeforeTransitions as an Immutable Map it sends the Router into a tailspin until the Maximum call stack size exceeded error is encountered.
Example routing reducer:
import Immutable from 'immutable';
import { LOCATION_CHANGE } from 'react-router-redux';

const initialState = Immutable.fromJS({
    locationBeforeTransitions: null
});

export default function routing(state = initialState, action) {
    switch (action.type) {
        case LOCATION_CHANGE:
            return state.set('locationBeforeTransitions', Immutable.fromJS(action.payload));
        default:
            return state;
    }
}

Synced with the history like so:
const history = syncHistoryWithStore(browserHistory, store, { selectLocationState: (appState) => appState.get('routing').toJS() });

https://github.com/reactjs/react-router-redux/issues/370#issuecomment-212749964

authors: rybon timdorr

repo: reactjs/react-router-redux


text:
Not working with react-router v4.0 and browserHistory

I'm just able to see an empty screen. My apoligize that I came to know by read me that current version is only compatible with react-router 3.x so I downgraded it and changed my code but till  I'm getting the same problem.
import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, combineReducers, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import { Router, Route, browserHistory } from 'react-router'
import { syncHistoryWithStore, routerReducer, routerMiddleware } from 'react-router-redux'
import EngagementsContainer from './Engagements/EngagementsContainer.js'
import EngagementViewContainer from './Engagements/EngagementViewContainer.js'
import EngagementReducer from './Engagements/reducers/reducers.js'
import thunk from 'redux-thunk'

const router = routerMiddleware(browserHistory);

const middlewares = [ thunk, router ];

// Add the reducer to your store on the `routing` key
const store = createStore(
  combineReducers({
    routing: routerReducer,
    deals: EngagementReducer
  }),
  applyMiddleware(...middlewares),
);

store.subscribe( state => console.log(state) );

// Create an enhanced history that syncs navigation events with the store
const history = syncHistoryWithStore(browserHistory, store)

const AppRoutes = () => { return (
    <Provider store={store} >
      <Router history={history} >
        <Route path="/" component={ EngagementsContainer } /
         <Route path="/hello" component={ EngagementViewContainer } />
        </Route>
      </Router>
    </Provider>
  ) };

export default AppRoutes;

It says right at the top of the readme that this version doesn't work with 4.0...


text:
updated first example

fixed the bug in first example.

fixed separately, thanks for your PR!


text:
Add git hook to generate headings ids

Let's automate the generation of custom headings ids on per commit so we don't have to do it manually.

Deployment of the beta site fails apparently because Vercel does not exposed CI env var, its value must be true for husky not to run.

Can you remind me why we need this? I'm forgetting why this system exists.

In short: having stable headings ids help for translators, check out this issue for more details -> https://github.com/reactjs/reactjs.org/issues/1608

Oh ok.

translating one heading would mean having to search in the entire docs and change multiple files simultaneously

This makes sense that it's annoying.
Can you fix CI pls?

Without your help, I can't fix this. Need to set CI env var to true in the Vercel deployment settings for the beta site. In all likelihood, this env is not set now, otherwise husky would not have installed during the build step since already is-ci check is used.
https://vercel.com/docs/concepts/projects/environment-variables#system-environment-variables

Sure, just updated the PR branch. Have you added CI env var to Vercel deployment settings?

Hmm. Vercel project has this on:

which supposedly includes CI:
https://vercel.com/docs/concepts/projects/environment-variables#system-environment-variables
Why does this not work?

Sorry, that was my mistake in new npm script, just fixed it, and everything should be ok now.

Awesome. Thanks.


text:
Re-wording static-type-checking.md

With the assistance of ChatGPT:
:person_bald: Transfer "Static type checkers like Flow and TypeScript identify certain types of problems before you even run your code. " to the style of Bertrand Russel

:robot: Static type checkers such as Flow and TypeScript possess the capability to apprehend specific types of quandaries prior to code execution, as they are equipped with the faculty of detecting irregularities in the typing system.

Since these are all subjective nits that don't seem to alter or clarify the original meaning, I'm going to close. But thanks for your suggestions.

@eps1lon It's not a big deal but "before you even run" has a redundant even, however "prior to code execution" does not have any unnecessary words.


text:
This cannot be real world without tests (unless you're advocating that projects with no tests is a real world situation, therefore it is right)

Where are the tests?

https://github.com/reactjs/redux/tree/master/test

By “real-worldiness” I mostly meant smart caching, loading indicators, pagination, and using middleware.
Maybe not the best naming in retrospect 😄

The question remains, are tests going to be written for this "real world" example?

If you contribute them, maybe. 😉

authors: gaearon jimbolla legacyWork

repo: reactjs/redux


text:
RN启动报错

请按以下格式提供问题的相关信息。
问题的具体描述
执行npx react-native run-android时，显示如下错误，请问该如何解决呢？

请尽量配上相关代码截图

请描述完整的环境/版本信息
预期结果

代码有问题，extend了一个不存在的class（可能由于版本变迁或者import/export写得不对）

建议贴一下 JS 代码看一下

authors: cctv1005s rgbtdkjcel sunnylqm

repo: reactnativecn/react-native-website


text:
Async polling slower then sync polling

I am experimenting with reading the content of a bunch of files async. While doing some tests I notice that reading the files sync is a lot faster (+10 times) then doing this async with this library (using ext-eio)
Experiment:
I am monitoring (polling) 32 different sysfs files used for digital inputs (kinda like the raspberry pi). If I read them with file_get_content it takes about 2-4 milliseconds in total to read them, one by one, sync. If I use $filesystem->file($file)->getContents() and use \React\Promise\all() on all the promises, it takes something between 35-120 milliseconds. I would expect that reading them async would be faster, when reading multiple files.
Could somebody explain me why this is so slow?

Async is slower because there's a lot more switching between PHP and C, but also a file descriptior (from eio) needs to be watched by the event loop and wait for activity on it.
Using libuv might improve this, since it's completely C-land outside of the callback and the command. But I don't expect better performance than sync. You could test the libuv adapter from #69 (the adapter works, that's not why the PR was closed).

@hvanoch These are some interesting benchmarking results! I think we all know async code execution doesn't magically make the code execute any faster, but your results are clearly now what one would expect from this (I know I didn't). Here's my attempt at explaining why theses results are reasonable:
The filesystem is inherently blocking, so no matter which event or filesystem extension you're using, it means it has to execute some additional overhead to wrap this blocking access in a non-blocking thread or process. In there, it will still execute the blocking filesystem primitives, which is why it's unlikely to get any faster.
In your specific case, you're reading from a virtual filesystem instead of regular files. In this case, the underlying filesystem functions happen to be surprisingly fast because they're actually executed in kernel space and usually do not have to access any underlying hardware devices. This means that any additional overhead will slow down this process disproportionately.
On the other hand, when you're using this component to access regular files, you may see some significant performance improvements. In this case, the filesystem often takes a few milliseconds to return data (depending on I/O utilization, device speeds etc.). This means that any overhead to move this into a non-blocking thread is well worth it because it allows you to do something else in the meantime (processing other filesystem streams or any other non-blocking I/O operation).
This means that in your specific case it may or may not be okay to block the loop for a very short period. You may also use some timers to periodically only check certain inputs to more evenly distribute this load to not cause any "spikes" in your program execution. Your numbers suggest one operations takes around 100µs, so there's plenty of time available for your 32 inputs. Depending on your workload, you may also be better off using an event-driven mechanism to only read your inputs when some change has been detected. ReactPHP happens to be really good at reacting to changes :-)
I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we can always reopen this :+1:

I want to thank you guys for the reply. Your explanation makes a lot of sense. Indeed I guess one would benefit from using async when the access to the filesystem is actual slow (instead of me using a virtual filesystem) or with larger files instead of just having to read one character (0 or 1) from a file.
I looked if there is a way in PHP to only get notified if a file has changed. Like Inotify, but that doesn't work with sysfs. Did not find an alternative for sysfs, That is why I thought polling async every 20 ms would be the best alternative.
I guess I will stick with reading the files sync. Like you said reading a single file only takes 0.1ms. If I add a timer for each file, maybe even add some jitter, I will not block the event loop that much.

@clue Just noting that both linux and windows kernel support asynchronous filesystem access. On windows the kernel can fallback to synchronous mode, which must be taken note of (I'm not aware under which conditions or circumstances). The filesystem is inherently only for the program (or thread) blocking, if you do not request asynchronous access (and the kernel does not fallback to synchronous).

authors: CharlotteDunois clue hvanoch

repo: reactphp/filesystem


text:
Add benchmarking script to measure throughput in CI

Add benchmarking script to measure throughput in CI. This gives some interesting insights into differences between PHP versions / HHVM.
Also, this serves as the basis for future performance improvements.

Very much approve of this and is a good plan, going to implement the same in filesystem :+1: ! :shipit:

:+1:

authors: WyriHaximus clue mbonneau

repo: reactphp/stream


text:
browser_prod: background-image in stylesheets rise a error

ERROR in ./src/views/Home/index.css
Module build failed: ModuleBuildError: Module build failed: Error: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
Reason: image not found

Because of  image-webpack-loader!!!
I solved this on OSX: https://www.npmjs.com/package/image-webpack-loader#libpng-issues
But it still have problem on win10

You're probably best submitting an issue on image-webpack-loader, since image compression is something that's handled externally.

authors: DrReMain leebenson

repo: reactql/kit


text:
Flush option for ListGroup

Issue description
Feature request: Flush mode for List group

components: List Group
reactstrap version #5.0.0-beta2
import method es (if umd, are you using the "full" version (only for v5+)?)
react version #16.3.0
bootstrap version #4.0.0

What is happening?
Using list group inside card. Have to manually put list-group-flush inside className
What should be happening?
flush option on ListGroup component so don't have to use className
Steps to reproduce issue
<Card>
  <ListGroup flush>
    <ListGroupItem>...</ListGroupItem>
  </ListGroup>
</Card>

Error message in console
None
paste error message with stacktrack here
Code

<Card>
  <ListGroup flush>
    <ListGroupItem>...</ListGroupItem>
  </ListGroup>
</Card>

the following should work right?
<Card>
  <ListGroup
     flush={true}>
    <ListGroupItem>...</ListGroupItem>
  </ListGroup>
</Card>

https://github.com/reactstrap/reactstrap/blob/master/src/ListGroup.js#L28

thanks. it actually works. Just didn't found such options in the docs.

repo: reactstrap/reactstrap


text:
A button for removing highlight content from the page

It would be nice to have a button or something else which removes the highlighted content from the page.

(link: http://2.python-requests.org/en/master/user/quickstart/?highlight=payload#passing-parameters-in-urls)
Ref: https://github.com/readthedocs/readthedocs.org/pull/6087

I missed the underlying change here. I'm -1 on this change and -1 on the underlying removal of the search highlighting. The link in this case is not easy to find for users, it is superfluous for most users, and there is better UX to display that we are showing search results. Additionally, search results should be able to highlight across themes in similar ways, so this is an RTD problem.
We need to revisit the search highlighting in RTD, there are better ways to accomplish whatever problem we were hitting with search. Going to close this as I don't think this is a good answer and would be a theme dependent fix to a platform problem.

See #876 for a possible implementation.

authors: agjohnson dojutsu-user mgeier


text:
Messages stop and a couple "Could not find stream ID" exceptions reported when receiver is suspended

Start the driver:
$ java -cp aeron-samples/build/libs/samples.jar -Dagrona.disable.bounds.checks=true uk.co.real_logic.aeron.samples.LowLatencyMediaDriver
Start the first receiver, receiver A:
$ java -cp aeron-samples/build/libs/samples.jar -Dagrona.disable.bounds.checks=true -Daeron.sample.frameCountLimit=256 uk.co.real_logic.aeron.samples.RateSubscriber
Start a second receiver, receiver B:
$ java -cp aeron-samples/build/libs/samples.jar -Dagrona.disable.bounds.checks=true -Daeron.sample.frameCountLimit=256 uk.co.real_logic.aeron.samples.RateSubscriber
Start a publisher:
$ java -cp aeron-samples/build/libs/samples.jar -Daeron.sample.messageLength=40 -Daeron.sample.messages=500000000 -Dagrona.disable.bounds.checks=true uk.co.real_logic.aeron.samples.StreamingPublisher
Now, suspend receiver B with control-z.  After a second or two, the sending and receiving rate will drop to 0 on the source and on receiver A.  Wait a few more seconds, and the send rate will return and messages will flow again.  Now unsuspend receiver B by an ‘fg’, and it should start receiving messages again.  Now kill receiver B with control-c.
At this point, sending and receiving appears to stop altogether.  Source reports no messages sent, receiver A (up the whole time) does not receive any further messages.  That’s not good…
Now kill receiver A with a control-c as well.  Uh oh - it now reports this:
Shutting down...
Exception in thread "main" uk.co.real_logic.aeron.exceptions.RegistrationException: Could not find stream Id to decrement: 10
at uk.co.real_logic.aeron.ClientConductor.onError(ClientConductor.java:257)
at uk.co.real_logic.aeron.DriverListenerAdapter.onError(DriverListenerAdapter.java:135)
at uk.co.real_logic.aeron.DriverListenerAdapter.onMessage(DriverListenerAdapter.java:120)
at uk.co.real_logic.agrona.concurrent.broadcast.CopyBroadcastReceiver.receive(CopyBroadcastReceiver.java:84)
at uk.co.real_logic.aeron.DriverListenerAdapter.receiveMessages(DriverListenerAdapter.java:56)
at uk.co.real_logic.aeron.ClientConductor.doWork(ClientConductor.java:104)
at uk.co.real_logic.aeron.common.AgentRunner.run(AgentRunner.java:85)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
and hangs forever with this stack:
2015-02-24 14:03:02
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.31-b07 mixed mode):
"Attach Listener" #14 daemon prio=9 os_prio=31 tid=0x00007fa1f505c800 nid=0x380f waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"DestroyJavaVM" #13 prio=5 os_prio=31 tid=0x00007fa1f4002000 nid=0xe07 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"pool-1-thread-2" #11 prio=5 os_prio=31 tid=0x00007fa1f3820000 nid=0x5703 waiting on condition [0x0000000136305000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for  <0x000000076abb9ff8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
"pool-1-thread-1" #10 prio=5 os_prio=31 tid=0x00007fa1f381f800 nid=0x5503 waiting on condition [0x0000000136202000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for  <0x000000076abb9ff8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
"Service Thread" #9 daemon prio=9 os_prio=31 tid=0x00007fa1f5024800 nid=0x5103 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C1 CompilerThread3" #8 daemon prio=9 os_prio=31 tid=0x00007fa1f3023000 nid=0x4f03 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread2" #7 daemon prio=9 os_prio=31 tid=0x00007fa1f3022800 nid=0x4d03 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread1" #6 daemon prio=9 os_prio=31 tid=0x00007fa1f3021800 nid=0x4b03 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread0" #5 daemon prio=9 os_prio=31 tid=0x00007fa1f4001000 nid=0x4903 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Signal Dispatcher" #4 daemon prio=9 os_prio=31 tid=0x00007fa1f283e000 nid=0x3c17 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Finalizer" #3 daemon prio=8 os_prio=31 tid=0x00007fa1f5809000 nid=0x3503 in Object.wait() [0x000000012bf2d000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x000000076ab062f8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:142)
- locked <0x000000076ab062f8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:158)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)
"Reference Handler" #2 daemon prio=10 os_prio=31 tid=0x00007fa1f5808000 nid=0x3303 in Object.wait() [0x000000012be2a000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x000000076ab05d68> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:502)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)
- locked <0x000000076ab05d68> (a java.lang.ref.Reference$Lock)
"VM Thread" os_prio=31 tid=0x00007fa1f5805800 nid=0x3103 runnable
"GC task thread#0 (ParallelGC)" os_prio=31 tid=0x00007fa1f280e000 nid=0x140b runnable
"GC task thread#1 (ParallelGC)" os_prio=31 tid=0x00007fa1f281d000 nid=0x2313 runnable
"GC task thread#2 (ParallelGC)" os_prio=31 tid=0x00007fa1f281d800 nid=0x2503 runnable
"GC task thread#3 (ParallelGC)" os_prio=31 tid=0x00007fa1f281e800 nid=0x2703 runnable
"GC task thread#4 (ParallelGC)" os_prio=31 tid=0x00007fa1f281f000 nid=0x2903 runnable
"GC task thread#5 (ParallelGC)" os_prio=31 tid=0x00007fa1f281f800 nid=0x2b03 runnable
"GC task thread#6 (ParallelGC)" os_prio=31 tid=0x00007fa1f2820000 nid=0x2d03 runnable
"GC task thread#7 (ParallelGC)" os_prio=31 tid=0x00007fa1f2821000 nid=0x2f03 runnable
"VM Periodic Task Thread" os_prio=31 tid=0x00007fa1f5025800 nid=0x5303 waiting on condition
JNI global references: 326
Meanwhile, at the same time that receiver A was control-c’d, the driver reports this:
[44947.428765] EXCEPTION [591/591]: java.lang.IllegalStateException(Could not find stream Id to decrement: 10)
uk.co.real_logic.aeron.driver.ReceiveChannelEndpoint.decRefToStream ReceiveChannelEndpoint.java:114
uk.co.real_logic.aeron.driver.DriverConductor.onRemoveSubscription DriverConductor.java:513
uk.co.real_logic.aeron.driver.DriverConductor.onClientCommand DriverConductor.java:306
uk.co.real_logic.aeron.driver.DriverConductor$$Lambda$38/1327763628.onMessage null:-1
uk.co.real_logic.agrona.concurrent.ringbuffer.ManyToOneRingBuffer.read ManyToOneRingBuffer.java:144
and is using up an awful lot of CPU; here’s a stack sample of the driver after this exception while it’s burning CPU:
015-02-24 14:04:41
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.31-b07 mixed mode):
"Attach Listener" #13 daemon prio=9 os_prio=31 tid=0x00007fea39a8c000 nid=0x3a0b waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"driver-conductor" #12 prio=5 os_prio=31 tid=0x00007fea39adb800 nid=0x5903 runnable [0x00000001290a6000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.DatagramChannelImpl.receive0(Native Method)
at sun.nio.ch.DatagramChannelImpl.receiveIntoNativeBuffer(DatagramChannelImpl.java:429)
at sun.nio.ch.DatagramChannelImpl.receive(DatagramChannelImpl.java:407)
at sun.nio.ch.DatagramChannelImpl.receive(DatagramChannelImpl.java:360)
- locked <0x000000076b5ed2e8> (a java.lang.Object)
at uk.co.real_logic.aeron.driver.UdpChannelTransport.receive(UdpChannelTransport.java:294)
at uk.co.real_logic.aeron.driver.UdpChannelTransport.pollFrames(UdpChannelTransport.java:241)
at uk.co.real_logic.aeron.driver.TransportPoller.pollTransports(TransportPoller.java:146)
at uk.co.real_logic.aeron.driver.DriverConductor.doWork(DriverConductor.java:201)
at uk.co.real_logic.aeron.common.AgentRunner.run(AgentRunner.java:85)
at java.lang.Thread.run(Thread.java:745)
"receiver" #11 prio=5 os_prio=31 tid=0x00007fea39a61000 nid=0x5703 runnable [0x0000000128fa3000]
java.lang.Thread.State: RUNNABLE
at uk.co.real_logic.aeron.common.AgentRunner.run(AgentRunner.java:85)
at java.lang.Thread.run(Thread.java:745)
"sender" #10 prio=5 os_prio=31 tid=0x00007fea39a60800 nid=0x5503 runnable [0x0000000128ea0000]
java.lang.Thread.State: RUNNABLE
at uk.co.real_logic.aeron.driver.Sender.doSend(Sender.java:123)
at uk.co.real_logic.aeron.driver.Sender.doWork(Sender.java:50)
at uk.co.real_logic.aeron.common.AgentRunner.run(AgentRunner.java:85)
at java.lang.Thread.run(Thread.java:745)
"Service Thread" #9 daemon prio=9 os_prio=31 tid=0x00007fea3a805000 nid=0x5103 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C1 CompilerThread3" #8 daemon prio=9 os_prio=31 tid=0x00007fea3b80b000 nid=0x4f03 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread2" #7 daemon prio=9 os_prio=31 tid=0x00007fea3b80a800 nid=0x4d03 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread1" #6 daemon prio=9 os_prio=31 tid=0x00007fea3b809800 nid=0x4b03 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread0" #5 daemon prio=9 os_prio=31 tid=0x00007fea3988e800 nid=0x4903 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Signal Dispatcher" #4 daemon prio=9 os_prio=31 tid=0x00007fea3988e000 nid=0x3d0b runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Finalizer" #3 daemon prio=8 os_prio=31 tid=0x00007fea3986f800 nid=0x3503 in Object.wait() [0x000000011e8f0000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x000000076ab062f8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:142)
- locked <0x000000076ab062f8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:158)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)
"Reference Handler" #2 daemon prio=10 os_prio=31 tid=0x00007fea3986f000 nid=0x3303 in Object.wait() [0x000000011e7ed000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x000000076ab05d68> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:502)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)
- locked <0x000000076ab05d68> (a java.lang.ref.Reference$Lock)
"main" #1 prio=5 os_prio=31 tid=0x00007fea39812800 nid=0xe07 waiting on condition [0x0000000100da0000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:304)
at uk.co.real_logic.aeron.common.concurrent.SigIntBarrier.await(SigIntBarrier.java:54)
at uk.co.real_logic.aeron.samples.LowLatencyMediaDriver.main(LowLatencyMediaDriver.java:39)
"VM Thread" os_prio=31 tid=0x00007fea3986c000 nid=0x3103 runnable
"GC task thread#0 (ParallelGC)" os_prio=31 tid=0x00007fea3981e000 nid=0x150b runnable
"GC task thread#1 (ParallelGC)" os_prio=31 tid=0x00007fea3a800000 nid=0x1407 runnable
"GC task thread#2 (ParallelGC)" os_prio=31 tid=0x00007fea3a003000 nid=0x2503 runnable
"GC task thread#3 (ParallelGC)" os_prio=31 tid=0x00007fea3a801000 nid=0x2703 runnable
"GC task thread#4 (ParallelGC)" os_prio=31 tid=0x00007fea3a004000 nid=0x2903 runnable
"GC task thread#5 (ParallelGC)" os_prio=31 tid=0x00007fea3a801800 nid=0x2b03 runnable
"GC task thread#6 (ParallelGC)" os_prio=31 tid=0x00007fea3a802000 nid=0x2d03 runnable
"GC task thread#7 (ParallelGC)" os_prio=31 tid=0x00007fea3981e800 nid=0x2f03 runnable
"VM Periodic Task Thread" os_prio=31 tid=0x00007fea3a83e000 nid=0x5303 waiting on condition
JNI global references: 473
At this point, starting up a new receiver does allow messages to be sent (still from the original source, which has been up the whole time) and received again by the brand new receiver.

I think this is due to the default flow control strategy not tracking activity of the receivers and timing them out. It's all very simplistic and taking the position min irregardless of receiver activity. That will be changing as we add IPC support and have to deal with this cleaner.
BTW, you could take a maximum position strategy and avoid the pause.

I think the "could not find" is due to the driver timing out the underlying pub/sub pieces. Which is fine. However, the hang is not. I think it might be due to the API not seeing a response to it's correlation Id in the error. Have to consider how best to handle this one.

The error handling has been redone a bit. This has probably been changed. Worth a retest.

Closing due to no further issues reported with the new error handling.

authors: mjpt777 strangelydim tmontgomery

repo: real-logic/Aeron


text:
Useless text "SettingsWidget" in Renderer Settings dialog.

If you change the Texture Quality settings in Renderer Settings, a label "SettingsWidget" will pop up, which does not do anything.
Looks like some logic is flawed, to produce that effect.

Recently reimplemented RendererSettings by JavaScript instead of C++. During this work could not reproduce this bug. Also inspected the renderersettings.ui file and could not find any obvious reason for this.

repo: realXtend/naali


text:
things that we want

show list of all my stacks

filter that list (grep)
show asgs for stack(s)
show instances associated with asgs

rds_arn()
$INSTANCE_OUTPUT
everythings() --tags
__bma_read_input()

do all input parsing

output

--output json

--output json works (--json as shorthand)

I think we have also done "show list of all my stacks, filter that list (grep) show asgs for stack(s) show instances associated with asgs"

I'm not sure what "everythings() --tags" means anymore. Can that be speced up and a ticket raised if we still want it?

I think the "do all input parsing" thing is done too.

authors: jonhiggs mbailey

repo: realestate-com-au/bash-my-aws


text:
🛑 Mammoth Plumbing is down

In a94fa8e, Mammoth Plumbing (https://mammothplumbingofdenver.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mammoth Plumbing is back up in 033d44a after 13 minutes.

repo: realewie/uptime


text:
Updated directions and content

Cleaned up directions
Added dependency for source-map-support to package.json
Edited adapter.js to look for Realm Access Token in file
addresses #4

@ianpward , made first round of changes to get this back in running state.  I think it might be worth revisiting the architecture section of the readme as well as adding more detail to the Overview.

repo: realm-demos/realm-dvdrental


text:
Realm Swift 0.96.0-1: ignoredProperties no longer working

After updating to 0.96+, my ignoredProperties are no longer ignored, and are now included in the Realm database.
After updating, I now receive an error of:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSZeroData setObject:]: unrecognized selector sent to instance
The instance refers to the NSData var I'm passing into my model.  Has anyone been able to fix this, and get ignored properties working again?  Here is my model for that object.  The commented out code are variations I tried to due documented variations in ignoring properties; none of these worked.
Realm Model:
class ImageFile: Object {
    dynamic var imageID:String = ""
    dynamic var imageFileID:String = ""
    dynamic var imageType:String = ""
    dynamic var selectedImageFile:Bool = false
    dynamic var folder:String = ""
    dynamic var filename:String = ""
    dynamic var scale:Int = 0
    dynamic var height:Float = 0
    dynamic var width:Float = 0
    dynamic var created:Int = 0
    dynamic var updated:Int = 0
    dynamic var expires:Int = 0
//    dynamic var imageData:NSData? = NSData()
    var imageData:NSData? = NSData()

    override static func primaryKey() -> String {
        return "imageFileID"
    }

    override static func indexedProperties() -> [String] {
        return [
            "imageID",
            "imageType",
            "selectedImageFile",
            "scale"
        ]
    }

//    override static func ignoredProperties() -> [String] {
//        return ["imageData"]
//    }

    override class func ignoredProperties() -> [String] {
        return ["imageData"]
    }
}

@mlusas Thank you for reporting this. I've reproduced the same issue. It seems a bug. We'll have a fix out shortly.

@kishikawakatsumi Wonderful, thank you for the quick response.

Fixed #2734

authors: kishikawakatsumi mlusas

repo: realm/realm-cocoa


text:
Exception (EXC_BAD_ACCESS) when calling add with realm::mixed type

I have the following schema:
struct TonalDBMapping
{
    bool                      customKeyMap = false;
    tonaldb::NoteLayout       noteLayout = tonaldb::NoteLayout::all;
    std::optional<int64_t>    referenceNote = std::nullopt;
    std::optional<double>     referenceFrequency = std::nullopt;
    std::optional<int64_t>    rootNote = std::nullopt;
    std::vector<realm::mixed> keyMap = { std::monostate() };
};
REALM_EMBEDDED_SCHEMA (TonalDBMapping, customKeyMap, noteLayout, referenceNote, referenceFrequency, rootNote, keyMap)

struct TonalDBTuning
{
    primary_key<realm::object_id> _id { realm::object_id::generate() };
    std::string                   title;
    std::string                   shortTitle;
    std::string                   description;
    std::string                   author;
    std::string                   period;
    std::vector<TonalDBPitch*>    pitches;
    TonalDBMapping*               mapping;
    // The ownerId property stores the user.identifier() of the logged-in user.
    std::string ownerId;
};
REALM_SCHEMA (TonalDBTuning, _id, title, shortTitle, description, author, period, pitches, mapping, ownerId)

When I call add:
       syncedRealm->write ([&]
                                   { syncedRealm->add (std::move (newTuning)); });
    }

I am hitting a EXC_BAD_ACCESS crash. It seems to be to do with the std::variant i.e. the realm::mixed type.
I'm on macOS Ventura, building with clang.

Here is the stack trace:
decltype(auto) std::__1::__variant_detail::__visitation::__base::__visit_alt_at[abi:v15006]<void std::__1::__variant_detail::__ctor<std::__1::__variant_detail::__traits<std::__1::monostate, long long, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, double, std::__1::vector<unsigned char, std::__1::allocator<unsigned char>>, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l>>>, realm::uuid, realm::object_id, realm::decimal128>>::__generic_construct[abi:v15006]<std::__1::__variant_detail::__copy_constructor<std::__1::__variant_detail::__traits<std::__1::monostate, long long, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, double, std::__1::vector<unsigned char, std::__1::allocator<unsigned char>>, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l>>>, realm::uuid, realm::object_id, realm::decimal128>, (std::__1::__variant_detail::_Trait)1> const&>(std::__1::__variant_detail::__ctor<std::__1::__variant_detail::__traits<std::__1::monostate, long long, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, double, std::__1::vector<unsigned char, std::__1::allocator<unsigned char>>, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l>>>, realm::uuid, realm::object_id, realm::decimal128>>&, std::__1::__variant_detail::__copy_constructor<std::__1::__variant_detail::__traits<std::__1::monostate, long long, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, double, std::__1::vector<unsigned char, std::__1::allocator<unsigned char>>, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l>>>, realm::uuid, realm::object_id, realm::decimal128>, (std::__1::__variant_detail::_Trait)1> const&)::'lambda'(std::__1::__variant_detail::__copy_constructor<std::__1::__variant_detail::__traits<std::__1::monostate, long long, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, double, std::__1::vector<unsigned char, std::__1::allocator<unsigned char>>, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l>>>, realm::uuid, realm::object_id, realm::decimal128>, (std::__1::__variant_detail::_Trait)1> const&, auto&&), std::__1::__variant_detail::__ctor<std::__1::__variant_detail::__traits<std::__1::monostate, long long, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, double, std::__1::vector<unsigned char, std::__1::allocator<unsigned char>>, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l>>>, realm::uuid, realm::object_id, realm::decimal128>>&, std::__1::__variant_detail::__copy_constructor<std::__1::__variant_detail::__traits<std::__1::monostate, long long, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, double, std::__1::vector<unsigned char, std::__1::allocator<unsigned char>>, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l>>>, realm::uuid, realm::object_id, realm::decimal128>, (std::__1::__variant_detail::_Trait)1> const&>(unsigned long, std::__1::__variant_detail::__copy_constructor<std::__1::__variant_detail::__traits<std::__1::monostate, long long, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, double, std::__1::vector<unsigned char, std::__1::allocator<unsigned char>>, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l>>>, realm::uuid, realm::object_id, realm::decimal128>, (std::__1::__variant_detail::_Trait)1> const&, std::__1::__variant_detail::__ctor<std::__1::__variant_detail::__traits<std::__1::monostate, long long, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, double, std::__1::vector<unsigned char, std::__1::allocator<unsigned char>>, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l>>>, realm::uuid, realm::object_id, realm::decimal128>>&, std::__1::__variant_detail::__copy_constructor<std::__1::__variant_detail::__traits<std::__1::monostate, long long, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, double, std::__1::vector<unsigned char, std::__1::allocator<unsigned char>>, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l>>>, realm::uuid, realm::object_id, realm::decimal128>, (std::__1::__variant_detail::_Trait)1> const&) variant:500
std::__variant_detail::__ctor::__generic_construct[abi:v15006]<…>(std::__variant_detail::__ctor<…> &, const std::__variant_detail::__copy_constructor<…> &) variant:898
std::__variant_detail::__copy_constructor::__copy_constructor(const std::__variant_detail::__copy_constructor<…> &) variant:977
std::__variant_detail::__assignment::__assignment(const std::__variant_detail::__assignment<…> &) variant:991
std::__variant_detail::__move_assignment::__move_assignment(const std::__variant_detail::__move_assignment<…> &) variant:1076
std::__variant_detail::__copy_assignment::__copy_assignment(const std::__variant_detail::__copy_assignment<…> &) variant:1117
std::__variant_detail::__impl::__impl(const std::__variant_detail::__impl<…> &) variant:1137
std::__variant_detail::__impl::__impl(const std::__variant_detail::__impl<…> &) variant:1137
std::variant::variant(const std::variant<…> &) variant:1305
std::variant::variant(const std::variant<…> &) variant:1305
realm::internal::bridge::obj::set_list_values<…>(const realm::internal::bridge::col_key &, const std::vector<…> &) obj.hpp:196
realm::experimental::accessor::set(realm::internal::bridge::obj &, realm::internal::bridge::col_key &&, const realm::internal::bridge::realm &, const std::vector<…> &) accessors.hpp:266
auto realm::experimental::accessor<TonalDBMapping*, void>::set(realm::internal::bridge::obj&, realm::internal::bridge::col_key&&, realm::internal::bridge::realm const&, TonalDBMapping*)::'lambda'(auto&&...)::operator()<realm::schemagen::property<&TonalDBMapping::customKeyMap, false> const&, realm::schemagen::property<&TonalDBMapping::noteLayout, false> const&, realm::schemagen::property<&TonalDBMapping::referenceNote, false> const&, realm::schemagen::property<&TonalDBMapping::referenceFrequency, false> const&, realm::schemagen::property<&TonalDBMapping::rootNote, false> const&, realm::schemagen::property<&TonalDBMapping::keyMap, false> const&>(auto&&...) const accessors.hpp:430
decltype(std::declval<realm::experimental::accessor<TonalDBMapping*, void>::set(realm::internal::bridge::obj&, realm::internal::bridge::col_key&&, realm::internal::bridge::realm const&, TonalDBMapping*)::'lambda'(auto&&...)>()(std::declval<realm::schemagen::property<&TonalDBMapping::customKeyMap, false> const&>(), std::declval<realm::schemagen::property<&TonalDBMapping::noteLayout, false> const&>(), std::declval<realm::schemagen::property<&TonalDBMapping::referenceNote, false> const&>(), std::declval<realm::schemagen::property<&TonalDBMapping::referenceFrequency, false> const&>(), std::declval<realm::schemagen::property<&TonalDBMapping::rootNote, false> const&>(), std::declval<realm::schemagen::property<&TonalDBMapping::keyMap, false> const&>())) std::__1::__invoke[abi:v15006]<realm::experimental::accessor<TonalDBMapping*, void>::set(realm::internal::bridge::obj&, realm::internal::bridge::col_key&&, realm::internal::bridge::realm const&, TonalDBMapping*)::'lambda'(auto&&...), realm::schemagen::property<&TonalDBMapping::customKeyMap, false> const&, realm::schemagen::property<&TonalDBMapping::noteLayout, false> const&, realm::schemagen::property<&TonalDBMapping::referenceNote, false> const&, realm::schemagen::property<&TonalDBMapping::referenceFrequency, false> const&, realm::schemagen::property<&TonalDBMapping::rootNote, false> const&, realm::schemagen::property<&TonalDBMapping::keyMap, false> const&>(realm::experimental::accessor<TonalDBMapping*, void>::set(realm::internal::bridge::obj&, realm::internal::bridge::col_key&&, realm::internal::bridge::realm const&, TonalDBMapping*)::'lambda'(auto&&...)&&, realm::schemagen::property<&TonalDBMapping::customKeyMap, false> const&, realm::schemagen::property<&TonalDBMapping::noteLayout, false> const&, realm::schemagen::property<&TonalDBMapping::referenceNote, false> const&, realm::schemagen::property<&TonalDBMapping::referenceFrequency, false> const&, realm::schemagen::property<&TonalDBMapping::rootNote, false> const&, realm::schemagen::property<&TonalDBMapping::keyMap, false> const&) invoke.h:394
decltype(auto) std::__1::__apply_tuple_impl[abi:v15006]<realm::experimental::accessor<TonalDBMapping*, void>::set(realm::internal::bridge::obj&, realm::internal::bridge::col_key&&, realm::internal::bridge::realm const&, TonalDBMapping*)::'lambda'(auto&&...), std::__1::tuple<realm::schemagen::property<&TonalDBMapping::customKeyMap, false>, realm::schemagen::property<&TonalDBMapping::noteLayout, false>, realm::schemagen::property<&TonalDBMapping::referenceNote, false>, realm::schemagen::property<&TonalDBMapping::referenceFrequency, false>, realm::schemagen::property<&TonalDBMapping::rootNote, false>, realm::schemagen::property<&TonalDBMapping::keyMap, false>> const&, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul>(realm::experimental::accessor<TonalDBMapping*, void>::set(realm::internal::bridge::obj&, realm::internal::bridge::col_key&&, realm::internal::bridge::realm const&, TonalDBMapping*)::'lambda'(auto&&...)&&, std::__1::tuple<realm::schemagen::property<&TonalDBMapping::customKeyMap, false>, realm::schemagen::property<&TonalDBMapping::noteLayout, false>, realm::schemagen::property<&TonalDBMapping::referenceNote, false>, realm::schemagen::property<&TonalDBMapping::referenceFrequency, false>, realm::schemagen::property<&TonalDBMapping::rootNote, false>, realm::schemagen::property<&TonalDBMapping::keyMap, false>> const&, std::__1::__tuple_indices<0ul, 1ul, 2ul, 3ul, 4ul, 5ul>) tuple:1789
decltype(auto) std::__1::apply[abi:v15006]<realm::experimental::accessor<TonalDBMapping*, void>::set(realm::internal::bridge::obj&, realm::internal::bridge::col_key&&, realm::internal::bridge::realm const&, TonalDBMapping*)::'lambda'(auto&&...), std::__1::tuple<realm::schemagen::property<&TonalDBMapping::customKeyMap, false>, realm::schemagen::property<&TonalDBMapping::noteLayout, false>, realm::schemagen::property<&TonalDBMapping::referenceNote, false>, realm::schemagen::property<&TonalDBMapping::referenceFrequency, false>, realm::schemagen::property<&TonalDBMapping::rootNote, false>, realm::schemagen::property<&TonalDBMapping::keyMap, false>> const&>(realm::experimental::accessor<TonalDBMapping*, void>::set(realm::internal::bridge::obj&, realm::internal::bridge::col_key&&, realm::internal::bridge::realm const&, TonalDBMapping*)::'lambda'(auto&&...)&&, std::__1::tuple<realm::schemagen::property<&TonalDBMapping::customKeyMap, false>, realm::schemagen::property<&TonalDBMapping::noteLayout, false>, realm::schemagen::property<&TonalDBMapping::referenceNote, false>, realm::schemagen::property<&TonalDBMapping::referenceFrequency, false>, realm::schemagen::property<&TonalDBMapping::rootNote, false>, realm::schemagen::property<&TonalDBMapping::keyMap, false>> const&) tuple:1798
realm::experimental::accessor::set(realm::internal::bridge::obj &, realm::internal::bridge::col_key &&, const realm::internal::bridge::realm &, TonalDBMapping *) accessors.hpp:429
auto realm::experimental::managed<std::__1::remove_const<TonalDBTuning>::type, void> realm::experimental::db::add<TonalDBTuning>(TonalDBTuning&&)::'lambda'(auto&&...)::operator()<realm::schemagen::property<&TonalDBTuning::_id, false> const&, realm::schemagen::property<&TonalDBTuning::title, false> const&, realm::schemagen::property<&TonalDBTuning::shortTitle, false> const&, realm::schemagen::property<&TonalDBTuning::description, false> const&, realm::schemagen::property<&TonalDBTuning::author, false> const&, realm::schemagen::property<&TonalDBTuning::period, false> const&, realm::schemagen::property<&TonalDBTuning::pitches, false> const&, realm::schemagen::property<&TonalDBTuning::mapping, false> const&, realm::schemagen::property<&TonalDBTuning::ownerId, false> const&>(auto&&...) const db.hpp:84
decltype(std::declval<TonalDBTuning>()(std::declval<realm::schemagen::property<&TonalDBTuning::_id, false> const&>(), std::declval<realm::schemagen::property<&TonalDBTuning::title, false> const&>(), std::declval<realm::schemagen::property<&TonalDBTuning::shortTitle, false> const&>(), std::declval<realm::schemagen::property<&TonalDBTuning::description, false> const&>(), std::declval<realm::schemagen::property<&TonalDBTuning::author, false> const&>(), std::declval<realm::schemagen::property<&TonalDBTuning::period, false> const&>(), std::declval<realm::schemagen::property<&TonalDBTuning::pitches, false> const&>(), std::declval<realm::schemagen::property<&TonalDBTuning::mapping, false> const&>(), std::declval<realm::schemagen::property<&TonalDBTuning::ownerId, false> const&>())) std::__1::__invoke[abi:v15006]<realm::experimental::managed<std::__1::remove_const<TonalDBTuning>::type, void> realm::experimental::db::add<TonalDBTuning>(TonalDBTuning&&)::'lambda'(auto&&...), realm::schemagen::property<&TonalDBTuning::_id, false> const&, realm::schemagen::property<&TonalDBTuning::title, false> const&, realm::schemagen::property<&TonalDBTuning::shortTitle, false> const&, realm::schemagen::property<&TonalDBTuning::description, false> const&, realm::schemagen::property<&TonalDBTuning::author, false> const&, realm::schemagen::property<&TonalDBTuning::period, false> const&, realm::schemagen::property<&TonalDBTuning::pitches, false> const&, realm::schemagen::property<&TonalDBTuning::mapping, false> const&, realm::schemagen::property<&TonalDBTuning::ownerId, false> const&>(TonalDBTuning&&, realm::schemagen::property<&TonalDBTuning::_id, false> const&, realm::schemagen::property<&TonalDBTuning::title, false> const&, realm::schemagen::property<&TonalDBTuning::shortTitle, false> const&, realm::schemagen::property<&TonalDBTuning::description, false> const&, realm::schemagen::property<&TonalDBTuning::author, false> const&, realm::schemagen::property<&TonalDBTuning::period, false> const&, realm::schemagen::property<&TonalDBTuning::pitches, false> const&, realm::schemagen::property<&TonalDBTuning::mapping, false> const&, realm::schemagen::property<&TonalDBTuning::ownerId, false> const&) invoke.h:394
decltype(auto) std::__1::__apply_tuple_impl[abi:v15006]<realm::experimental::managed<std::__1::remove_const<TonalDBTuning>::type, void> realm::experimental::db::add<TonalDBTuning>(TonalDBTuning&&)::'lambda'(auto&&...), std::__1::tuple<realm::schemagen::property<&TonalDBTuning::_id, false>, realm::schemagen::property<&TonalDBTuning::title, false>, realm::schemagen::property<&TonalDBTuning::shortTitle, false>, realm::schemagen::property<&TonalDBTuning::description, false>, realm::schemagen::property<&TonalDBTuning::author, false>, realm::schemagen::property<&TonalDBTuning::period, false>, realm::schemagen::property<&TonalDBTuning::pitches, false>, realm::schemagen::property<&TonalDBTuning::mapping, false>, realm::schemagen::property<&TonalDBTuning::ownerId, false>> const&, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul, 7ul, 8ul>(TonalDBTuning&&, std::__1::tuple<realm::schemagen::property<&TonalDBTuning::_id, false>, realm::schemagen::property<&TonalDBTuning::title, false>, realm::schemagen::property<&TonalDBTuning::shortTitle, false>, realm::schemagen::property<&TonalDBTuning::description, false>, realm::schemagen::property<&TonalDBTuning::author, false>, realm::schemagen::property<&TonalDBTuning::period, false>, realm::schemagen::property<&TonalDBTuning::pitches, false>, realm::schemagen::property<&TonalDBTuning::mapping, false>, realm::schemagen::property<&TonalDBTuning::ownerId, false>> const&, std::__1::__tuple_indices<0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul, 7ul, 8ul>) tuple:1789
decltype(auto) std::__1::apply[abi:v15006]<realm::experimental::managed<std::__1::remove_const<TonalDBTuning>::type, void> realm::experimental::db::add<TonalDBTuning>(TonalDBTuning&&)::'lambda'(auto&&...), std::__1::tuple<realm::schemagen::property<&TonalDBTuning::_id, false>, realm::schemagen::property<&TonalDBTuning::title, false>, realm::schemagen::property<&TonalDBTuning::shortTitle, false>, realm::schemagen::property<&TonalDBTuning::description, false>, realm::schemagen::property<&TonalDBTuning::author, false>, realm::schemagen::property<&TonalDBTuning::period, false>, realm::schemagen::property<&TonalDBTuning::pitches, false>, realm::schemagen::property<&TonalDBTuning::mapping, false>, realm::schemagen::property<&TonalDBTuning::ownerId, false>> const&>(TonalDBTuning&&, std::__1::tuple<realm::schemagen::property<&TonalDBTuning::_id, false>, realm::schemagen::property<&TonalDBTuning::title, false>, realm::schemagen::property<&TonalDBTuning::shortTitle, false>, realm::schemagen::property<&TonalDBTuning::description, false>, realm::schemagen::property<&TonalDBTuning::author, false>, realm::schemagen::property<&TonalDBTuning::period, false>, realm::schemagen::property<&TonalDBTuning::pitches, false>, realm::schemagen::property<&TonalDBTuning::mapping, false>, realm::schemagen::property<&TonalDBTuning::ownerId, false>> const&) tuple:1798
realm::experimental::db::add<…>(TonalDBTuning &&) db.hpp:83
<lambda>::operator()() const TonalDB.cpp:187
realm::experimental::db::write<…>(<lambda> &&) const db.hpp:66
...

So after refactoring to replace the realm::mixed type I don't think that is the problem. I think it's related to how I am creating Realm objects on the heap and adding pointers to a vector. For example
struct TonalDBKey
{
    // Note: Here degree is optional since we can't have a vector of optional types in Realm.
    // Instead we make it optional within the struct.
    std::optional<int64_t> degree = std::nullopt;
    int64_t                period = 0;
};
REALM_EMBEDDED_SCHEMA (TonalDBKey, degree, period)

//...

        for (const auto& key : publicTuning.mapping.keyMap)
        {
            TonalDBKey* dbKey;
            if (key.has_value())
            {
                dbKey = new TonalDBKey { static_cast<int64_t> (key.value().degree), static_cast<int64_t> (key.value().period) };
            }
            else
            {
                dbKey = new TonalDBKey { std::nullopt, 0 };
            }
            dbTuning.mapping->keyMap.push_back (dbKey);
        }

It seems that the nesting was the issue. If I remove the mapping object which contained the vector, and have everything flat in one object then I don't get the crash.

Related to #119

@adamski Can you try this so to not allocate on the heap. If this doesn't solve it can you attach a code sample that I can run that reproduces the issue which you see.
for (const auto& key : publicTuning.mapping.keyMap)
        {
            TonalDBKey dbKey;
            if (key.has_value())
            {
                dbKey = TonalDBKey { static_cast<int64_t> (key.value().degree), static_cast<int64_t> (key.value().period) };
            }
            else
            {
                dbKey = TonalDBKey { std::nullopt, 0 };
            }
            dbTuning.mapping->keyMap.push_back (&dbKey);
        }

I am closing the issue due to no reply back. Please create a new issue if you have new observations to share.

authors: adamski kneth leemaguire

repo: realm/realm-cpp


text:
MacOS Xcode Cloud missing .dylib

What happened?
Missing librealm_dart.dylib when compiling with Xcode Cloud
Repro steps
Steps to reproduce
1.Install a package like realm.
2.Archive with Xcode Cloud for MacOS
Expected results
On local machine when I Archive and upload to Appstore my package contains all the .dylib

Actual results
On Xcode Cloud when it archive the artifact is missing those dylib.

Code sample
Code sample
this is my ci_post_clone.sh
#!/bin/sh

# The default execution directory of this script is the ci_scripts directory.
cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo.
# Install Flutter using git.
git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter
export PATH="$PATH:$HOME/flutter/bin"

# Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms.
flutter precache --macos

# Install Flutter dependencies.
flutter pub get

# Install CocoaPods using Homebrew.
HOMEBREW_NO_AUTO_UPDATE=1 # disable homebrew's automatic updates.
brew install cocoapods

dart run realm install

cd macos && pod install

flutter build macos

exit 0

Version
1.6.1
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Flutter Application
Client OS and version
Mac OS Sonoma 14.2.1
Code snippets
No response
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response

Hi @nirinchev , Yes we use the realm package (Not realm_dart).
When we Archive and Upload with local Xcode its works, but when we use the Xcode Cloud CI its crash with this error:
Only on MacOS build we have errors.
Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/librealm_dart.dylib
Referenced from:  /Applications/XX.app/Contents/Frameworks/realm.framework/Versions/A/realm
Reason: tried: '/Applications/XX.app/Contents/Frameworks/librealm_dart.dylib' (no such file)

What are the contents of realm.framework in the XCode Cloud archived version?

Hm... we haven't been able to repro this, so do you think it'd be possible to create a small repro project (if it reproduces for you outside of your main project). One thing one of our Swift engineers pointed as interesting is that on the first screenshot, you have the swift libraries, whereas those are missing on the second - this likely means that the target OS between the Xcode Cloud and local builds is different. I believe starting with macOS 10.14.4, the swift libraries are part of the OS and won't be bundled, so it's worth checking to see if there's indeed a difference there and if so - what other differences there are.

I was able to reproduce this issue with one of realm demos (https://github.com/realm/realm-dart-samples/tree/main/flutter_flexible_sync).
I created the repo to include the CI code and connect it to Xcode Cloud: https://github.com/Bilonik/flutter_flexible_sync

Hi @nirinchev ,
Let me know if you need any more information.
Thank you

Hey @Bilonik,
I'm currently trying to reproduce the issue you describe. I haven't used Xcode Cloud before so it's taking me a while. I hope I can have an answer soon.

I've been able to reproduce this on Xcode Cloud, but also locally, even in a brand new app I made with flutter create. It seems that CocoaPods is ignoring the realm native library and not generating the right Xcode build phase to include it in the app bundle. What is the CocoaPods version you're running locally where the build correctly embeds the dylib?

In the mean time, a workaround is to manually add the Flutter/ephemeral/.symlinks/plugins/realm/macos/librealm_dart.dylib file in the macos folder in your project to the Link Binary with Libraries build phase of the Runner target in Runner.xcodeproj in Xcode.

@fealebenpae CocoaPod version 1.14.3 locally works.

Any updates on this topic?
I have the same issue on building macOS app with GitHub actions.

Hi,
Any updates on this issue?
My workaround is to copy the librealm_dart.dylib to this directory
./build/macos/Build/Products/Debug/app.app/Contents/Frameworks/realm.framework/Versions/A/Framework/

@dotjon0 No real solution so far, only a workaround. We execute the build steps twice (in the same GitHub job), then it works.
      - name: Restore dependencies
        working-directory: "src"
        run: |
          flutter pub get
          flutter precache --macos

      - name: Restore Pods
        working-directory: "src/macos"
        run: |
          pod --version
          pod repo update
          pod install

      - name: Build macOS App
        working-directory: "src"
        run: flutter build macos --release

      - name: Restore dependencies 2
        working-directory: "src"
        run: |
          flutter clean
          flutter pub get

      - name: Restore Pods 2
        working-directory: "src/macos"
        run: |
          pod install

      - name: Build macOS App 2
        working-directory: "src"
        run: flutter build macos --release

authors: Bilonik WebDucer fealebenpae lokalathlet nirinchev

repo: realm/realm-dart